APC is a free and  open PHP5 opcode cacher for caching & optimizing PHP5 intermediate code.
It is similar to other PHP5 opcode cachers, such as eAccelerator & XCache.

1. Install APC on Debian:

APC is a PHP5 extension and we will install it using PECL.For that we need to install APC dependencies:

apt-get install php5-dev apache2-prefork-dev build-essential

Now install APC:

pecl install apc

2. Enable APC:

After install you need to enable APC. Add the following line in php.ini file:

Continue Reading…

1. Install Apache 2.4 from source:

1.1 Prerequisites:

For installing Apache2.4 on Debian you need APR library. You can install this using the following command:

apt-get install libaprutil1 libaprutil1-dev

1.2  Download Apache2.4:

Download the latest version from here: http://httpd.apache.org/download.cgi#apache24
Go to /usr/src directory and download the latest version.

cd /usr/src
wget http://lnx.apollo-hw.ro/apache//httpd/httpd-2.4.1.tar.gz

1.3. Extract and Install Apache2.4:

Continue Reading…

PHP 5.4.0 Released

Valic —  March 2, 2012 — Leave a comment

The PHP development team is proud to announce the immediate availability of PHP 5.4.0.

This release is a major leap forward in the 5.x series, and includes a large number of new features and bug fixes.


The key features of PHP 5.4.0 include:

  • New language syntax including Traits, shortened array syntax and more
  • Improved performance and reduced memory consumption
  • Support for multibyte languages now available in all builds of PHP at the flip of a runtime switch
  • Built-in webserver in CLI mode to simplify development workflows and testing
  • Cleaner code base thanks to the removal of multiple deprecated language features
  • Many more improvements and fixes


more @ http://php.net/releases/5_4_0.php

Suhosin can be disabled by 2 methods:

1. Disable Suhosin using php.ini:

Open the php.ini file and add the following code:

suhosin.simulation = On

NOTE: On means disabled and  Off means enabled.

Now restart the Apache2 server and Suhosin will be disabled.

/etc/init.d/apache2 restart

2. Disable Suhosin for specific domain using  .htaccess file: Continue Reading…

If you use eAccelerator and have updated your php5 version  you need to recompile the plugin.

First step is to go in to the source listing of your eAccelerator and follow the instructions:

In my case the source is located in /usr/src/.

cd /usr/src/eaccelerator/
make clean
make install

Don’t forget to restart your apache:

/etc/init.d/apache2 restart

How to put in it in the first place? See article Install and Integrate eAccelerator into PHP5 on Debian Squeeze

Page 3 of 512345