ephekt

Member
May 7, 2006
5
0
151
Hi. So i went to update apache to 4.4.2 and when it finished its build it gave this error message:

make php-4.4.2...(install).... . . . . Done

initfpsuexec: using apache 1.x support
PHP version file has been updated to 4.4.2
Executing /scripts/postbuildapache (if exists)...Done
/etc/rc.d/init.d/httpd start: httpd could not be started
Attempting to restart httpd
Waiting for httpd to restart....

finished.
httpd has failed, please contact the sysadmin.
Build Complete
Now this could have just been a problem i thought. so here is my httpd as well as the command error when i, in ssh type: service httpd start.

Syntax error on line 2 of /usr/local/apache/conf/httpd.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/init.d/httpd start: httpd could not be started

Here is my config:
Line Two:
Alias /bandwidth/ /usr/local/bandmin/htdocs/
If i were to remove line 2 then this is the next error:

Syntax error on line 206 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_rewrite.so into server: /usr/local/apache/libexec/mod_rewrite.so: undefined symbol: dbm_fetch
/etc/init.d/httpd start: httpd could not be started
That is all i really know. Im using the latest Release of Cpanel/WHM. THank you for all of your help! (oh yeah, Centos!)
 

ephekt

Member
May 7, 2006
5
0
151
whats weird is that that directory does not exist. maybe that could be the reason this is having problems. I ordered this server from layered-tech and they set up the whm. and put the stuff all over the place but my apache is in usr/local/apache. and then i have etc/httpd/ but no modules directory. is there a way to find where the httpd folder is, or searching for this file via ssh? Thanks alot for your help and just to ask do you know of any companies who aid in first time set ups (i understand it will cost some money), because i really dont know what is wrong with this thing. thanks for all of your help!
 

tutt

Well-Known Member
PartnerNOC
Apr 16, 2003
46
0
156
Same issue for me. I found the mod_alias.so file at /usr/local/apache/libexec and added it... still same thing.
 

tutt

Well-Known Member
PartnerNOC
Apr 16, 2003
46
0
156
I got the webserver started by moving all the LoadModule directives to the top of the file. I also had to add a LoadModule directive for EACH AND EVERY AddModule directive that existed. Some I didn't get working yet either so my server is no longer doing logging. cPANEL: YOU NEED TO LET ME KNOW WHAT IS UP WITH THIS AND HOW I CAN UNMUTILATE MY httpd.conf TO GET THINGS WORKING NORMALLY AGAIN.

This is sloppy, I know, but this is what my httpd.conf looks like:

LoadModule env_module libexec/mod_env.so
#LoadModule log_config_module libexec/mod_log_config.so
LoadModule mime_module libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module libexec/mod_status.so
#LoadModule include_module libexec/mod_include.so
LoadModule autoindex_module libexec/mod_autoindex.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_module libexec/mod_asis.so
#LoadModule actions_module libexec/mod_actions.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so
LoadModule expires_module libexec/mod_expires.so
#LoadModule so_module libexec/mod_so.so
LoadModule setenvif_module libexec/mod_setenvif.so
LoadModule bwlimited_module libexec/mod_bwlimited.so
#LoadModule log_bytes_module libexec/mod_log_bytes.so
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule expires_module libexec/mod_expires.so
LoadModule php4_module libexec/libphp4.so
LoadModule bwlimited_module libexec/mod_bwlimited.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so

Alias /bandwidth/ /usr/local/bandmin/htdocs/
#-

...etc. You can see I commented out the modules that gave me more errors, but this was enough (after also commenting out the LogFormat and CustomLog directives associated with the log modules) to get the webserver started. WHAT HAPPENED?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
It is funny that no one from cPanel has commented on this.
And they won't. These are not cPanel official support forums. If you want help from them you should go through the normal support channels.

WRT to the OP problem, whenever I've seen such issues with building apache+php through WHM, I find it usually works if you use the shell UI instead:

/scripts/easyapache