• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

httpdmng broken after bootstrap

Christian Lund

New Pleskian
httpd fails to start after bootstrap. Log file below.


Warning: web server configuration is broken. We will try to repair it. This operation can take a lot of time, please do not interrupt the process.
Unable to rebuild web server configuration, possible there are broken domains
Trying to reconfigure web-server configurations skipping broken domains... Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
[2] => -service-node
[3] => local
)

Details: [2015-04-12 22:19:27] ERR [util_exec] proc_close() failed
[2015-04-12 22:19:30] ERR [util_exec] proc_close() failed
[2015-04-12 22:19:32] ERR [panel] Apache config (14288699660.04885700) generation failed: Template_Exception: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/ssl.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/ssl.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from

WARNING!
Some problems are found during reconfigure web-server configurations skipping broken domains(see log file: /var/log/plesk/install/plesk_12.0.18_repair.log)

Continue...

Cleaning active Panel sessions...

Bootstrapper repair finished.
If problems persist, please check installer logs ('/var/log/plesk/install/plesk_12.0.18_repair.log' and '/var/log/plesk/install/plesk_12.0.18_repair_problems.log') for errors.
If you can't resolve the issue on your own, please address Parallels support.
 
Hi Christian Lund,

Syntax error on line 12 of /etc/httpd/conf.d/ssl.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from
Would you mind posting the line 12 from your file "/etc/httpd/conf.d/ssl.conf" ? And could you please name as well your apache version and your operating system?
 
CentOS release 6.6 (Final)

Server version: Apache/2.2.15 (Unix)

/etc/httpd/conf.d/ssl.conf

LoadModule ssl_module modules/mod_ssl.so # See load_ssl_with_npn.conf # See load_ssl_with_npn.conf
 
Hi Christian Lund,

did you try to install "mod_spdy" recently? If yes, then normally this line should be commented out with a "#" in front of your postet line, because "load_ssl_with_npn.conf" should take over this configuration with something similar like:

Example at "load_ssl_with_npn.conf":
LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl_with_npn.so

If you didn't install "mod_spdy", then please locate the module "mod_ssl.so" on your server and replace the existing line 12 with something like:

LoadModule ssl_module /your_path_to/modules/mod_ssl.so
 
Last edited by a moderator:
I have not installed mod_spdy, but mod_cloudflare.

Updated the following in /etc/httpd/conf.d/ssl.conf:

LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl_with_npn.so

Still got some errors after running bootstrapper. Did a reboot and was able to start httpd, but with errors in the vhost configurations. Ran:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
apachectl graceful

Got warning:

Mon Apr 13 01:37:58 2015] [warn] module ssl_module is already loaded, skipping

...so I guess there are still issues, but at least Apache is running.
 
Hi Christian Lund,

well... you seem to misunderstand me a bit... maybe it wasn't clear enough:

IF you did NOT install "mod_spdy", then please use the command over the command line:

locate mod_ssl.so

The output is the correct path to your line 12 at "ssl.conf":
LoadModule ssl_module /your_path_to/modules/mod_ssl.so

But ( !!! ), as you can see in the warning, even if you change the line 12 at "ssl.conf", there is as well another configuration file ( maybe still "load_ssl_with_npn.conf" ?!? - because you changed it now to the same path, which is defined to load "ssl_with-npn" ), which already loaded the ssl_module, so please edit the line again to:

# LoadModule ssl_module /your_path_to/modules/mod_ssl.so

... because then this line will be ignored in your configuration and not double-loaded by apache.​
 
Back
Top