(12-18-2009 08:30 AM)pete Wrote: I did restart apache2. I was a bit puzzled that everyone recommends to restart it by typing "apache2 restart" which didn't work for me (and instead gave me a list of command options which suggested I use "apache -k restart", but this didn't work either).
On Debian and Debian-derived distros, it's "apache2ctl". Most others simply use "apachectl".
(12-18-2009 08:30 AM)pete Wrote: Apart from changing the DNS template as the guide recommends, here is what I planted in the file /etc/ispcp/apache/working/00_master.conf (using the correct IP instead of 1.2.3.4):
Code:
<VirtualHost 1.2.3.4:80>
ServerAdmin pete@kapiti.co.nz
DocumentRoot /var/www/ispcp/gui/tools/webmail
ServerName admin.serifos.elegancenz.co.nz
ServerAlias webmail.*
ErrorLog /var/log/apache2/users/webmail-error.log
TransferLog /var/log/apache2/users/webmail-access.log
CustomLog /var/log/apache2/webmail-traf.log traff
CustomLog /var/log/apache2/webmail-combined.log combined
<IfModule mod_fastcgi.c>
SuexecUserGroup vu2000 vu2000
</IfModule>
<Directory /var/www/ispcp/gui/tools/webmail>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fastcgi.c>
ScriptAlias /php4/ /var/www/fcgi/master/
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_php4.c>
<Directory /var/www/ispcp/gui/tools/webmail>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui/tools/webmail>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>
</VirtualHost>
Where am I screwing things up now?
While that is the right place to make sure your changes aren't overwritten, you might not have had it added to the Apache running copy.
Make sure that's also present in the Apache copy of the file.