• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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