• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

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