• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue New configuration files for the Apache web server were not created

Mike23

New Pleskian
Hi,

I created a new subdomain in Plesk (Onyx 17.5.3 #17) but get the following error :

New configuration files for the Apache web server were not created due to the errors in configuration templates: Can not restart web server: . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
When I go to the Webserver Configurations Troubleshooter, I see a little red warning icon in front of this line (domain name changed for privacy) :

/var/www/vhosts/system/mysubdomain.mydomain.com/conf/httpd.conf​

If I click on "Search in log files" I get "Text not found".

If I click on the "Rebuild" icon for this line, here's the error I get :

Error: Can not reconfigure web server configurations: Unable to execute httpdmng: [2017-08-16 11:00:12] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '7080' '--https-port' '7081'] with exit code [255]
[2017-08-16 11:01:09] ERR [panel] Apache config (15028738670.22700700) generation failed: Template_Exception: Can not restart web server: httpd stop failed
12 /usr/sbin/apache2 processes are killed

file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 108
code: 0
Error occured while sending feedback. HTTP code returned: 502
Can not restart web server: httpd stop failed
12 /usr/sbin/apache2 processes are killed​

I had never experienced such a case, does anyone know how to fix that ?
 
In this situation it is possible that the FAQ article won't help, because here the issue is that Apache instances are active in the process list but cannot be killed by the normal stop procedure. Maybe orphans/zombies. It might be necessary to "kill -9 httpd" or "kill -9 apache" or identify the remaining processes and kill them by PID one by one. This situation can appear if the system resources (inodes, free memory, semaphores) are exhausted or were exhausted at the time when the stop signal was sent.
 
Hi Mike23,

pls. have a look at the following KB - article and report back, if the provided suggestion(s) solved your issue/error/problem:


I tried the solution on this article, now when I reconfigure all the domains I get this :

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Warning: Current locale is unusable. Using 'C' instead.
Error occured while sending feedback. HTTP code returned: 502
Error occured while sending feedback. HTTP code returned: 502
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => [list of domains hidden]
)

Details: [2017-08-21 11:03:44] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '7080' '--https-port' '7081'] with exit code [255]
[2017-08-21 11:04:06] ERR [panel] Apache config (15033060750.41880700) generation failed: Template_Exception: Can not restart web server: httpd stop failed
your 131072x1 screen size is bogus. expect trouble
9 /usr/sbin/apache2 processes are killed

file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 108
code: 0
Error occured while sending feedback. HTTP code returned: 502
Can not restart web server: httpd stop failed
your 131072x1 screen size is bogus. expect trouble
9 /usr/sbin/apache2 processes are killed​
 
Back
Top