I’ve recently formalized the hosting packages of my company 42dev.
If you are ever in need of professional website– or domain hosting, want to set up some email accounts or need a fully managed server, customized for your application or service, I’d be thrilled to talk to you.
Just head over to my contact page and tell me about your requirements.
This is a quick HowTo for installing the eAccelerator PHP cache/optimizer on a Debian system (should be applicable to other Linux distros as well).
- Download the latest release from SourceForge.net to your server and extract the sources.
- Change to the sources directory and type in the following.
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
This should set up the environment and compile configuration correctly.
- Now compile with make and install with make install (as root) afterwards.
- To configure eAccelerator you have to edit your PHP config which resides in /etc/php4/apache2/php.ini on my system.
Add the following lines at the end:
The file README in the sources directory gives a pretty good explanation of all those parameters. The only one you should probably alter is the shm.size because 16MB of shared memory might be a little bit too conservative.
- Last step is to create the directory where eAccelerator stores the cached scripts which don’t fit into the shared memory.
chmod 0777 /tmp/eaccelerator
Now you’re done. Further tweaking can be accomplished by altering all the parameters in the php.ini file.