Thank you for this.
I followed the instructions to change my vhost.conf file using vim. The file now reads:
-------------------
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/peter-ould.net/conf/vhost.conf
<IfModule mod_security2.c> SecRuleEngine Off </IfModule>
# Timeout
--------------
When I run "/usr/local/psa/admin/bin/websrvmng -v -a" I then get a failure report.
----------------
WARNING: You are using obsolete option, use corresponding option of httpdmng.
websrvmng: /usr/local/psa/admin/sbin/httpdmng execution failed:
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => s17252700.onlinehome-server.info,andrew-johnson.org,gransgripes.co.uk,harlow-conservatives.co.uk,twurchofengland.org.uk,electiongame.co.uk,peter-ould.net
)
Details: 2014-05-13T08:41:40+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:41:43+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:41:44+01:00 ERR (3) [panel]: Apache config (13999668970.93462800) generation failed: Template_Exception: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
websrvmng: /usr/local/psa/admin/sbin/httpdmng execution failed:
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => s17252700.onlinehome-server.info,andrew-johnson.org,gransgripes.co.uk,harlow-conservatives.co.uk,twurchofengland.org.uk,electiongame.co.uk,peter-ould.net
)
Details: 2014-05-13T08:41:40+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:41:43+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:41:44+01:00 ERR (3) [panel]: Apache config (13999668970.93462800) generation failed: Template_Exception: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
[root@s17252700 vhosts]# vim /var/www/vhosts/peter-ould.net/conf/vhost.conf
[root@s17252700 vhosts]# vim /var/www/vhosts/peter-ould.net/conf/vhost.conf
[root@s17252700 vhosts]# /usr/local/psa/admin/bin/websrvmng -v -a
WARNING: You are using obsolete option, use corresponding option of httpdmng.
websrvmng: /usr/local/psa/admin/sbin/httpdmng execution failed:
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => s17252700.onlinehome-server.info,andrew-johnson.org,gransgripes.co.uk,harlow-conservatives.co.uk,twurchofengland.org.uk,electiongame.co.uk,peter-ould.net
)
Details: 2014-05-13T08:48:32+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:48:35+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:48:36+01:00 ERR (3) [panel]: Apache config (13999673090.99254000) generation failed: Template_Exception: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
websrvmng: /usr/local/psa/admin/sbin/httpdmng execution failed:
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => s17252700.onlinehome-server.info,andrew-johnson.org,gransgripes.co.uk,harlow-conservatives.co.uk,twurchofengland.org.uk,electiongame.co.uk,peter-ould.net
)
Details: 2014-05-13T08:48:32+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:48:35+01:00 ERR (3) [util_exec]: proc_close() failed
2014-05-13T08:48:36+01:00 ERR (3) [panel]: Apache config (13999673090.99254000) generation failed: Template_Exception: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 66 of /etc/httpd/conf/plesk.conf.d/server.conf: Syntax error on line 131 of /etc/httpd/conf/plesk.conf.d/ip_default/peter-ould.net.conf: Syntax error on line 10 of /var/www/vhosts/system/peter-ould.net/conf/vhost.conf: <IfModule takes one argument, Container for directives based on existance of specified modules
------------
Regardless, I restarted the Apache server. It fell over. I removed the line from the config file, reset everything and restarted the apache server and we're back where we started.
Should I try to make the change in .htaccess instead? Am I doing something obviously wrong?