Config file : /etc/lighttpd/lighttpd.conf
Virtualhost entry
1. add include directive in /etc/lighttpd/lighttpd.conf like following
include "rapidpremium.net.conf"
2. Create virtualhost file in /etc/lighttpd/
Install APC (In directadmin)
wget http://pecl.php.net/get/APC-3.0.14.tgz
tar -xzvf APC-3.0.14.tgz
cd APC-3.0.14
Locate the location of phpize
whereis phpize
It should look like:
phpize: /usr/bin/phpize
cd /usr/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
make clean
make
make install
The “make install” command will return the location of the apc.so extension. Note down the location as we need it later.
php -i | grep ini
vi /usr/local/lib/php.ini
Add the following lines in php.ini
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20060613 (We have already note this down after the installation)
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128
apc.ttl=300
apc.user_ttl=300
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
apc.stat = 1
apc.rfc1867=1
apc.rfc1867_prefix="upload_"
apc.rfc1867_name="APC_UPLOAD_PROGRESS"
apc.rfc1867_freq="100k"
For check
ps aux | grep apc
(or)
phpinfo