Wednesday, November 28, 2007

Apache isn't complaining now!

For the first time then I run apache2ctl configtest I have just Syntax OK and nothing else. I'm so happy.

The key is the site files in /etc/apache2/sites-enabled/, a typical one should look like this

#NameVirtualHost *
[VirtualHost *=""]
ServerAlias *
DocumentRoot /var/www/

of course with other directives as required.

I have also appended below line to /etc/hosts

my.own.ip.number and to file hostname this line

After a apache2ctl graceful I have 82M used and 173M free from free -m. Further tweak was commenting out mpm_worker_module and use prefork MPM (multi-Processing Module) which is default for Linux and recommended if PHP is run as a module.

No comments:

Post a Comment