• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Ipossible remove vhost.conf on Plesk 10.3.1

vincenzot

Regular Pleskian
Hello,

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-&gt;test()
#2 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(124): Template_Configuration_Applier-&gt;applyConfiguration(true)
#3 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(301): WebServerManager_Adapter_Apache-&gt;sync()
#4 /usr/local/psa/admin/plib/WebServerManager.php(236): WebServerManager_Adapter_Apache-&gt;reconfigureServer()
#5 /usr/local/psa/admin/plib/api-common/Httpdmng.php(109): WebServerManager-&gt;reconfServer()
#6 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng-&gt;__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-&gt;__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:
I suggest to check the given lines in the conf-files.
Atleast Plesk considers them as errors.

Regards,

Chris
 
It's plesk that create the error, because it don't understend now that the file vhost.conf is deleted and create again the apache config with "include ... vhost.conf" so it's an error, because if you create vhost.conf you can't delete it, you must do an empty files.

In other I have too many and many file of apache config into conf folder, but I have already see that problem into another topic http://forum.parallels.com/showthread.php?t=107013.

It's really simple to create the problem, try to do an vhost.conf file into any one domains, so reload the httpd, delete the vhost.conf and try to reload the config.

I wait an answer from parallels team please :)

Thanks you.
 
The problem happens too if I use

/usr/local/psa/admin/bin/httpdmng --reconfigure-server

Don't happens if I do

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain DOMAIN.TLD

But don't is normal that I can't reconfigure all server if I delete 1 or more vhost.

I wait

Thanks
 
but why are you deleting them?
if you use subdomains, you can create/alter/delete them by interface. PLESK is doing all ...
 
For example, today my customers want that we deactive the mod_security , so I create an vhost.conf ... tomorrow the same customers want again the mod_security, So i delete the vhost.conf and I want that plesk remove it from config file of apache...such as old plesk version.
 
Hello,

have the same problem and plesk 10.2. because strato don't show me 10.3. I need 10.3 for own php.ini of fast-cgi webs :( I tested vhost.conf but in fast-cgi webs don't work. I deleted vhost.conf and I will not new create these files but then I became errors, no such file... How I can tell plesk, vhost.conf is deleted? Thank you.

Regards Danny
 
Back
Top