Apache isn't complaining now!

November 28, 2007

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 *=""]
ServerName yoursite.com
ServerAlias *.yoursite.com
DocumentRoot /var/www/yoursite.com

of course with other directives as required.

I have also appended below line to /etc/hosts

my.own.ip.number mysite.com http://www.mysite.com and to file hostname this line mysite.com

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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: