• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue httpd won't start

UnS3eN

Basic Pleskian
Server operating system version
AlmaLinux 9.6
Plesk version and microupdate number
18.0.74
Keep getting an Apache error and can't seem to figure out how to fix it:
Code:
New configuration files for the Apache web server were not created due to the errors in configuration templates: Can not restart web server: apache_control_adapter[1133370]: Apache is down, start it instead of gracefulapache_control_adapter[1133370]: apache_action(graceful): invoke_httpd_action failed, trying second timeapache_control_adapter[1133370]: Apache is down, start it instead of gracefulINFO: [Fri Nov 14 13:25:22 GMT 2025]: Service: apache, Action: start Trying to start service httpd... activating*****  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 -xeu httpd.service" for details.. Detailed error descriptions were sent to you by email.  Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

httpd -t returns Syntax OK

Trying to start the service returns exit code 1 with no explanation

When trying to repair a domain:
Code:
# plesk repair web -y domain.tld

Checking web server configuration. Please wait
    Repairing web server configuration for the domain domain.tld .... [2025-11-14 13:57:10.894] 1145096:69173527c30ea ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-domain' 'domain.tld'] with exit code [1]
[FAILED]
    - httpdmng failed: [2025-11-14 13:57:09.868]
      1145102:691735281ace6 ERR [util_exec] proc_close() failed
      ['/usr/local/psa/admin/bin/apache_control_adapter' '--restart'
      '--restart-interval' '0' '--http-port' '7080' '--https-port'
      '7081' '--graceful'] with exit code [255]
      [2025-11-14 13:57:10.798] 1145102:691735281ace6 ERR [panel]
      Apache config (17631286160.02739900) generation failed:
      Template_Exception: Can not restart web server:
      apache_control_adapter[1145165]: Apache is down, start it
      instead of graceful
      apache_control_adapter[1145165]: apache_action(graceful):
      invoke_httpd_action failed, trying second time
      apache_control_adapter[1145165]: Apache is down, start it
      instead of graceful
      INFO: [Fri Nov 14 13:57:04 GMT 2025]: Service: apache, Action:
      start
       Trying to start service httpd... activating


      *****  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 -xeu
      httpd.service" for details.

      file:
      /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
      line: 149
      code: 0
      Can not restart web server: apache_control_adapter[1145165]:
      Apache is down, start it instead of graceful
      apache_control_adapter[1145165]: apache_action(graceful):
      invoke_httpd_action failed, trying second time
      apache_control_adapter[1145165]: Apache is down, start it
      instead of graceful
      INFO: [Fri Nov 14 13:57:04 GMT 2025]: Service: apache, Action:
      start
       Trying to start service httpd... activating


      *****  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 -xeu
      httpd.service" for details.

Checking php-fpm configuration
    Repairing php-fpm configuration for the domain domain.tld ....... [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0


[2025-11-14 13:57:13.673] 1145096:69173527c30ea ERR [panel] Malformed UTF-8 characters, possibly incorrectly encoded
exit status 1

Code:
# journalctl -xeu httpd.service
Nov 14 13:51:11 vl-plesk3.localdomain systemd[1]: httpd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ The unit httpd.service has entered the 'failed' state with result 'exit-code'.
Nov 14 13:51:11 vl-plesk3.localdomain systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit httpd.service has failed
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ A start job for unit httpd.service has finished with a failure.
░░
░░ The job identifier is 1542110 and the job result is failed.
Nov 14 13:51:16 vl-plesk3.localdomain systemd[1]: httpd.service: Scheduled restart job, restart counter is at 7205.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ Automatic restarting of the unit httpd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Nov 14 13:51:16 vl-plesk3.localdomain systemd[1]: Stopped The Apache HTTP Server.
░░ Subject: A stop job for unit httpd.service has finished
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ A stop job for unit httpd.service has finished.
░░
░░ The job identifier is 1542322 and the job result is done.
Nov 14 13:51:16 vl-plesk3.localdomain systemd[1]: Starting The Apache HTTP Server...
░░ Subject: A start job for unit httpd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ A start job for unit httpd.service has begun execution.
░░
░░ The job identifier is 1542322.
Nov 14 13:51:17 vl-plesk3.localdomain systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ An ExecStart= process belonging to unit httpd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Nov 14 13:51:17 vl-plesk3.localdomain systemd[1]: httpd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ The unit httpd.service has entered the 'failed' state with result 'exit-code'.
Nov 14 13:51:17 vl-plesk3.localdomain systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit httpd.service has failed
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ A start job for unit httpd.service has finished with a failure.
░░
░░ The job identifier is 1542322 and the job result is failed.

This bit of code is the only clue
Code:
 file:
 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
 line: 149
 code: 0

But the file seems to be either encrypted or corrupted as trying to cat it returns binary "garbage"

Currently spinning up a fresh VM to install clean plesk in case I need a donor
 
Try the following:
Bash:
httpd -X -e Debug

Should tell you why it doesn't start
AH00526: Syntax error on line 1 of /etc/httpd/conf.d/ssl.conf:
Invalid command 'test', perhaps misspelled or defined by a module not included in the server configuration
 
Already tried debug. It showed nothing. Its' loading all modules just fine and then just stops
Code:
[Fri Nov 14 15:18:57.480455 2025] [so:debug] [pid 1181207:tid 1181207] mod_so.c(266): AH01575: loaded module access_compat_module from /etc/httpd/modules/mod_access_compat.so
[Fri Nov 14 15:18:57.480857 2025] [so:debug] [pid 1181207:tid 1181207] mod_so.c(266): AH01575: loaded module actions_module from /etc/httpd/modules/mod_actions.so
[Fri Nov 14 15:18:57.481047 2025] [so:debug] [pid 1181207:tid 1181207] mod_so.c(266): AH01575: loaded module alias_module from /etc/httpd/modules/mod_alias.so
...
[Fri Nov 14 15:18:57.507477 2025] [so:debug] [pid 1181207:tid 1181207] mod_so.c(266): AH01575: loaded module passenger_module from /usr/lib64/httpd/modules/mod_passenger.so
[Fri Nov 14 15:18:57.519119 2025] [so:debug] [pid 1181207:tid 1181207] mod_so.c(266): AH01575: loaded module security2_module from /etc/httpd/modules/mod_security2.so
[Fri Nov 14 15:18:57.563369 2025] [auth_digest:debug] [pid 1181207:tid 1181207] mod_auth_digest.c(377): AH01757: generating secret for digest authentication
 
Nope
Code:
# systemctl reset-failed httpd
# systemctl start httpd
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
 
That leaves you with a strace:
Bash:
dnf install strace
strace -s1024 -o output.txt httpd -X -e Debug
zip the output.txt file and send it in a private message. The file will contain references of all the hosted files, system users and IP addresses.
Don't post it in the thread!
 
no Lightspeed
but strace did point at why httpd was failing:
Code:
openat(AT_FDCWD, "/var/www/vhosts/system/domain.tld/logs/access_log", O_WRONLY|O_CREAT|O_APPEND|O_CLOEXEC, 0666) = 1023 openat(AT_FDCWD, "/var/www/vhosts/system/domain.tld/logs/access_ssl_log", O_WRONLY|O_CREAT|O_APPEND|O_CLOEXEC, 0666) = -1 EMFILE (Too many open files) 
getpid() = 1199793 
gettid() = 1199793 
write(335, "[Fri Nov 14 15:50:50.475431 2025] [log_config:error] [pid 1199793:tid 1199793] (24)Too many open files: AH00649: could not open transfer log file /var/www/vhosts/system/domain.tld/logs/access_ssl_log.\n", 206) = 206 
write(2, "AH00015: Unable to open logs\n", 29) = 29 pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=10000000}, NULL) = 0 (Timeout) 
close(1023) = 0 
close(1022) = 0 
close(1021) = 0

Updated LimitNOFILE to 4096. Seems to be loading now and can run repairs.
Thanks for that!

This all started because I was trying to restore a site but was getting "Access Denied" so I tried repairing it. Which failed because httpd wouldn't start even though I'm serving everything via nginx.

So now I'm trying to figure out why I'm getting a 403:
2025-11-14 16:15:53Error<IP>403GET / HTTP/2.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0
19 nginx SSL/TLS access
2025-11-14 16:15:53Warning<IP>1203624#0: *12358 FastCGI sent in stderr: "PHP message: PHP Warning: PHP Request Startup: Failed to open stream: Permission denied in Unknown on line 0; Unable to open primary script: /var/www/vhosts/edcarey.ie/httpdocs/index.php (Permission denied)" while reading response header from upstreamnginx error

It looks like an SSL error, but I can see any issues with the cert.
 
Back
Top