ispCP - Board - Support
critical error just was encountered while executing function restart_httpd() - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: critical error just was encountered while executing function restart_httpd() (/thread-12892.html)



critical error just was encountered while executing function restart_httpd() - mwlake - 02-17-2011 03:52 AM

A critical error just was encountered while executing function
restart_httpd() in /var/www/ispcp/engine/ispcp-serv-mngr.

Warning: DocumentRoot [/var/www/virtual/hawksandowls.com/htsdocs]
does not exist
Syntax error on line 29 of
/etc/apache2/mods-available/fcgid_ispcp.conf:
SocketPath cannot occur within <VirtualHost> section
----------------------------------------------------------
Since version 1.0.5 when I have come across this problem during the addition of new domains using ISPCP I have run the suggested few commands:

cd /etc/apache2/sites-available/
grep -v fcgid_ispcp.conf ispcp.conf > ispcp.conf.new
mv ispcp.conf.new ispcp.conf
apache2ctl configtest
apache2ctl restart

Which resolved the issue.
On this server I'm using Ubuntu 10.04 LTS and ISPCP version 1.0.7 and am using Secure htsdocs with certificate.

Once I run the "apache2ctl configtest" command I receive a warning:
[warn] VirtualHost 1.2.3.4:443 overlaps with VirtualHost 1.2.3.4:443, the first has precedence, perhaps you need a NameVirtualHost directive

Once I run "apache2ctl restart" apache doesn't start and the only way to get it running is by deleting the domain I initially created.

There is only one domain on the server prior to adding the second which I am having problems with. The first is using both http and https.

Any help to resolve this would be appreciated.
Also: since this has been happening since ISPCP version 1.0.5 a possibly to earlier versions shouldn't this problem be resolved by now?


RE: critical error just was encountered while executing function restart_httpd() - mwlake - 02-18-2011 05:01 AM

(02-17-2011 03:52 AM)mwlake Wrote:  A critical error just was encountered while executing function
restart_httpd() in /var/www/ispcp/engine/ispcp-serv-mngr.

Warning: DocumentRoot [/var/www/virtual/newdomain.com/htsdocs]
does not exist
Syntax error on line 29 of
/etc/apache2/mods-available/fcgid_ispcp.conf:
SocketPath cannot occur within <VirtualHost> section
----------------------------------------------------------
Since version 1.0.5 when I have come across this problem during the addition of new domains using ISPCP I have run the suggested few commands:

cd /etc/apache2/sites-available/
grep -v fcgid_ispcp.conf ispcp.conf > ispcp.conf.new
mv ispcp.conf.new ispcp.conf
apache2ctl configtest
apache2ctl restart

Which resolved the issue.
On this server I'm using Ubuntu 10.04 LTS and ISPCP version 1.0.7 and am using Secure htsdocs with certificate.

Once I run the "apache2ctl configtest" command I receive a warning:
[warn] VirtualHost 1.2.3.4:443 overlaps with VirtualHost 1.2.3.4:443, the first has precedence, perhaps you need a NameVirtualHost directive

Once I run "apache2ctl restart" apache doesn't start and the only way to get it running is by deleting the domain I initially created.

There is only one domain on the server prior to adding the second which I am having problems with. The first is using both http and https.

Any help to resolve this would be appreciated.
Also: since this has been happening since ISPCP version 1.0.5 a possibly to earlier versions shouldn't this problem be resolved by now?

OK figured it out.
Simple solution was to clear the New domains section for port 443 in ispcp.conf ran the commands:
apache2ctl configtest : received syntax OK
apache2ctl restart

Still think this problem should be cleared in up coming releases. Bit of a pain to have to run these commands every time an administrator wants to add a new domain to the server!!!