Hello,
if I create an vhost.conf on domains and I reload the config with
All works fine, but if I remove the file vhost.conf from domains....apache don't reload the config and don't start again. I give you the completly error:
Any possible fix?
if I create an vhost.conf on domains and I reload the config with
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
All works fine, but if I remove the file vhost.conf from domains....apache don't reload the config and don't start again. I give you the completly error:
[root@web conf]# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Error report was sent successfully
Report body:
<?xml version="1.0"?>
<error><type>PleskUtilException</type><message>/usr/local/psa/admin/bin/apache-config '-t' failed with message: httpd: Syntax error on line 212 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 409 of /usr/local/psa/admin/conf/generated/13149088040.04229300_server.include: Syntax error on line 12 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Syntax error on line 214 of /var/www/vhosts/DOMAIN.TLD/conf/13149087870.10207300_httpd.include: Could not open configuration file /var/www/vhosts/DOMAIN.TLD/conf/vhost.conf: No such file or directory
</message><file>/usr/local/psa/admin/plib/common_func.php3</file><line>1050</line><code>0</code><trace>#0 /usr/local/psa/admin/plib/Template/Writer/Apache.php(36): util_exec('apache-config', Array, Array, 'lst_stderr')
#1 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(151): Template_Writer_Apache->test()
#2 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(124): Template_Configuration_Applier->applyConfiguration(true)
#3 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(301): WebServerManager_Adapter_Apache->sync()
#4 /usr/local/psa/admin/plib/WebServerManager.php(236): WebServerManager_Adapter_Apache->reconfigureServer()
#5 /usr/local/psa/admin/plib/api-common/Httpdmng.php(109): WebServerManager->reconfServer()
#6 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#7 {main}</trace><user-ip/><host/><request-url/><request-method/><product-version>10.3.1 CloudLinux 5 1013110726.09
</product-version></error>
2011-09-01T22:26:44+02:00 ERR (3): Apache config (13149088040.04229300) generation failed: httpd: Syntax error on line 212 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 409 of /usr/local/psa/admin/conf/generated/13149088040.04229300_server.include: Syntax error on line 12 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Syntax error on line 214 of /var/www/vhosts/DOMAIN.TLD/conf/13149087870.10207300_httpd.include: Could not open configuration file /var/www/vhosts/DOMAIN.TLD/conf/vhost.conf: No such file or directory
httpd: Syntax error on line 212 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 409 of /usr/local/psa/admin/conf/generated/13149088040.04229300_server.include: Syntax error on line 12 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Syntax error on line 214 of /var/www/vhosts/DOMAIN.TLD/conf/13149087870.10207300_httpd.include: Could not open configuration file /var/www/vhosts/DOMAIN.TLD/conf/vhost.conf: No such file or directory
Error report was sent successfully
Report body:
<?xml version="1.0"?>
<error><type>PleskUtilException</type><message>/usr/local/psa/admin/bin/httpdmng '--reconfigure-server' '-no-restart' failed with message: Empty error message from utility.</message><file>/usr/local/psa/admin/plib/common_func.php3</file><line>1050</line><code>0</code><trace>#0 /usr/local/psa/admin/plib/common_func.php3(968): util_exec('httpdmng', Array, Array, 'msg', NULL)
#1 /usr/local/psa/admin/plib/Os.php(17): smart_exec('httpdmng', Array, Array, 'msg')
#2 /usr/local/psa/admin/plib/Os.php(28): Os::exec('httpdmng', Array, 'msg')
#3 /usr/local/psa/admin/plib/api-common/Httpdmng.php(81): Os::execEx('httpdmng', Array)
#4 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#5 {main}</trace><user-ip/><host/><request-url/><request-method/><product-version>10.3.1 CloudLinux 5 1013110726.09
</product-version></error>
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)
Details: Empty error message from utility.
Any possible fix?
Last edited: