• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Cant start Apache after some changes in service plan

r0mbus

New Pleskian
Hello there,

today ive changed the php version and php handler in one of my service plans and then synced all changes (already tried to undo it all, but nothing has changed).
Plesk-Version: 18.0.28
CentOS Linux 7.8.2003 (Core)

After that im getting emails from plesk:

" Unable to configure a web server on the host"

Code:
Unable to generate the web server configuration file on the host <myhost> because of the following errors:

Template_Exception: Can not restart web server: INFO: [Mon Jul  6 15:23:23 CEST 2020]: Service: httpd, Action: start
Trying to start service httpd... failed
Jul 06 15:23:23 myhost systemd[1]: Starting The Apache HTTP Server...
Jul 06 15:23:25 myhost systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 06 15:23:25 myhost systemd[1]: Failed to start The Apache HTTP Server.
Jul 06 15:23:25 myhost systemd[1]: Unit httpd.service entered failed state.
Jul 06 15:23:25 myhost systemd[1]: httpd.service failed.

*****  problem report *****
Warning: start service httpd failed

/usr/local/psa/admin/sbin/pleskrc execution failed:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 114
code: 0

Please resolve the errors in web server configuration templates and generate the file again.

When im trying to reconfigure any of my domains (via /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain), im getting this error

Code:
[root@site data]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain my-site.com
[2020-07-06 15:23:25.826] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443'] with exit code [255]
[2020-07-06 15:23:27.768] ERR [panel] Apache config (15940417980.31865800) generation failed: Template_Exception: Can not restart web server: INFO: [Mon Jul  6 15:23:23 CEST 2020]: Service: httpd, Action: start
Trying to start service httpd... failed
Jul 06 15:23:23 myserver systemd[1]: Starting The Apache HTTP Server...
Jul 06 15:23:25 myserver systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 06 15:23:25 myserver systemd[1]: Failed to start The Apache HTTP Server.
Jul 06 15:23:25 myserver systemd[1]: Unit httpd.service entered failed state.
Jul 06 15:23:25 myserver systemd[1]: httpd.service failed.

*****  problem report *****
Warning: start service httpd failed

/usr/local/psa/admin/sbin/pleskrc execution failed:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 114
code: 0
Can not restart web server: INFO: [Mon Jul  6 15:23:23 CEST 2020]: Service: httpd, Action: start
Trying to start service httpd... failed
Jul 06 15:23:23 myserver systemd[1]: Starting The Apache HTTP Server...
Jul 06 15:23:25 myserver systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 06 15:23:25 myserver systemd[1]: Failed to start The Apache HTTP Server.
Jul 06 15:23:25 myserver systemd[1]: Unit httpd.service entered failed state.
Jul 06 15:23:25 myserver systemd[1]: httpd.service failed.

*****  problem report *****
Warning: start service httpd failed

/usr/local/psa/admin/sbin/pleskrc execution failed:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

[root@site data]#

Here is my systemctl status httpd.service output

Code:
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mo 2020-07-06 15:23:25 CEST; 11min ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 15538 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 15538 (code=exited, status=1/FAILURE)

Jul 06 15:23:23 myhost systemd[1]: Starting The Apache HTTP Server...
Jul 06 15:23:25 myhost systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 06 15:23:25 myhost systemd[1]: Failed to start The Apache HTTP Server.
Jul 06 15:23:25 myhost systemd[1]: Unit httpd.service entered failed state.
Jul 06 15:23:25 myhost systemd[1]: httpd.service failed.

What im doing wrond/how i can fix it? :)

Best Regards
 
Any related error messages in Apache log?
  • On CentOS/RHEL-based distributions: /var/log/httpd/error_log
  • On Debian/Ubuntu-based distributions: /var/log/apache2/error.log
 
Back
Top