Unable to start Apache webserver. The following error appears:
Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array (  => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array (  => --reconfigure-domains  => ....) 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
'/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
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.
For successfully Apache reconfiguration, the records which related to Atmail should be removed from database:
Back up the database you are about to change.
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';
Reconfigure the domains' configuration files by executing the following command:
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 ]