Question

Can`t rebuild httpd.conf and start Apache with cPanel [SOLVED]


The problem is solved with build of EasyApache with this command: /scripts/easyapache --build

I have truble with start my Apache service on my droplet. I installed cPanel and FTP & WHM working fine, while the httpd service is down. I look around for information and tried to rebuild the httpd.conf file, but with no success. When I try, get this error:

Rebuilding configuration without any local modifications.

info [rebuildhttpdconf] Missing IP for domain apollo.moon.bg, using 188.226.238.205
info [rebuildhttpdconf] Missing ServerName for domain apollo.moon.bg, using apollo.moon.bg
info [rebuildhttpdconf] Missing port for domain apollo.moon.bg, using 80
info [rebuildhttpdconf] Missing user for domain apollo.moon.bg, using nobody
info [rebuildhttpdconf] Missing owner for domain apollo.moon.bg, force lookup to root
info [rebuildhttpdconf] Missing group for domain apollo.moon.bg, using nobody
Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at /usr/local/apache/conf/httpd.conf.work.qxFxdhc92B5GuUlA
Error:
Configuration problem detected on line 33 of file /usr/local/apache/conf/httpd.conf.work.qxFxdhc92B5GuUlA:      : Cannot load /usr/local/apache/modules/mod_bwlimited.so into server: /usr/local/apache/modules/mod_bwlimited.so: cannot open shared object file: No such file or directory

        --- /usr/local/apache/conf/httpd.conf.work.qxFxdhc92B5GuUlA ---
        27
        28Include "/usr/local/apache/conf/includes/pre_main_global.conf"
        29Include "/usr/local/apache/conf/includes/pre_main_2.conf"
        30
        31
        32
        33 ===> LoadModule bwlimited_module modules/mod_bwlimited.so <===
        34
        35
        36
        37
        38Include "/usr/local/apache/conf/php.conf"
        39Include "/usr/local/apache/conf/modsec2.conf"
        --- /usr/local/apache/conf/httpd.conf.work.qxFxdhc92B5GuUlA ---



Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Thanks for posting your solution!