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).
The way I got this working (I believe) was:
Code:
root@serifos:/# service apache2 restart
* Restarting web server apache2 ... waiting [ OK ]
root@serifos:/# root@serifos:/# service apache2 restart
However, after doing this the url
http://webmail.elegancenz.co.nz simply gets me to the normal website rather than webmail.
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?