Unable to start webserver. Unable to configure the web server: Execution failed.

Created:

2016-11-16 13:15:48 UTC

Modified:

2017-08-16 16:46:52 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start webserver. Unable to configure the web server: Execution failed.

Applicable to:

  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

Unable to start Apache webserver. The following error appears:

Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-domains [1] => ....)

Details: 2014-05-02T21:35:16-04:00 ERR (3) [util_exec]: proc_close() failed 2014-05-02T21:35:22-04:00 ERR (3) [panel]: Apache config (13990809030.55686800) generation failed: Template_Exception: Can not restart web server: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php line: 100 code: 0 Can not restart web server: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start

The error_log '/var/log/httpd/error_log' contains the following record:

[Sat May 03 00:27:48 2014] [notice] caught SIGTERM, shutting down
(2)No such file or directory: httpd: could not open error log file /var/log/atmail/error_log.
Unable to open logs
(2)No such file or directory: httpd: could not open error log file /var/log/atmail/error_log.
Unable to open logs

Cause

After Atmail package was removed, it's configuration for some reason remained and cases error. Sometimes it could happen when the server configuration (without all the components and packages) was restored from scratch.

Resolution

For successfully Apache reconfiguration, the records which related to Atmail should be removed from database:

  1. Back up the database you are about to change.

  2. Remove the problem records from database:

    # plesk db;
    mysql> delete from Configurations where name = 'serverAtmail';
    mysql> delete from Webmails where name = 'Atmail';
    mysql> delete from ServiceNodeEnvironment where name like 'psa-atmail';
  3. Reconfigure the domains' configuration files by executing the following command:

     /usr/local/psa/admin/bin/httpd --reconfigure-all

If Atmail is used recreate log file and start Apache:

~]# mkdir -p /var/log/atmail/
~]# touch /var/log/atmail/error_log
~]# service httpd start
Starting httpd: [ OK ]
Have more questions? Submit a request
Please sign in to leave a comment.