Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    May 2006
    Posts
    5

    Default whm gone crazy! HELP

    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!)

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Keep line 2 as it and try adding the below line in your httpd.conf file :-
    LoadModule alias_module /etc/httpd/modules/mod_alias.so

    Save the file and stop/start apache.

  3. #3
    Member
    Join Date
    May 2006
    Posts
    5

    Default

    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!

  4. #4
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Use 'locate' command to search the required files. Below is the syntax :-
    locate filename

    for ex.
    locate mod_alias.so

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Posts
    37

    Default

    Same issue for me. I found the mod_alias.so file at /usr/local/apache/libexec and added it... still same thing.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Posts
    37

    Default

    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?

  7. #7
    Member
    Join Date
    Jan 2005
    Posts
    232

    Default

    This has happened to a few server after I have did an Apache Update. I am affraid to update any other server until there is some kind of fix for this.

    It is funny that no one from cPanel has commented on this.

    Tracy

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member
    Join Date
    Jan 2005
    Posts
    232

    Default

    I have tried to do it in ssh.

    I guess I will wait for days on cPanel support.

    Tracy

  10. #10
    Member
    Join Date
    Jan 2005
    Posts
    232

    Default

    I guess they do not work on the weekends.

    Anyhow I put in a ticket:

    cPanel ID# 144053

    Thanks,

    Tracy

Similar Threads & Tags
Similar threads

  1. Cpanel has gone crazy?
    By ibrothers in forum New User Questions
    Replies: 1
    Last Post: 11-18-2008, 03:38 AM
  2. THIS IS CRAZY!! Register_globals
    By garynuman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-08-2005, 10:07 PM
  3. Whm/cpanel, crazy thing happened
    By moleo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-01-2004, 01:04 AM
  4. Crazy things going on??
    By pingo in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-11-2003, 10:38 AM
  5. Bandmin going crazy
    By bdraco in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-08-2001, 09:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube