The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

problem with apache after compile using /scritps/easyapache

Discussion in 'EasyApache' started by gxhosting, Jun 15, 2006.

  1. gxhosting

    gxhosting Member

    Joined:
    Aug 12, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    CentOS 4

    Hello there. Apache refuses to start after using WHM or /scripts/easyapache (unless I use option 8)
    THis is what I get after compile:

    /usr/sbin/httpd restart: httpd not running, trying to 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
    /usr/sbin/httpd restart: httpd could not be started

    This is part of apache output:

    ##
    Alias /bandwidth/ /usr/local/bandmin/htdocs/
    ## httpd.conf -- Apache HTTP server configuration file
    ##

    #
    # Based upon the NCSA server configuration files originally by Rob McCool.
    #
    # This is the main Apache server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/> for detailed information about
    # the directives.
    #
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    #
    # After this file is processed, the server will look for and process
    # /usr/local/apache/conf/srm.conf and then /usr/local/apache/conf/access.conf

    If I delete or comment out Allias line it would tell me about problem with other lines (that contain modules like:


    # LoadModule foo_module libexec/mod_foo.so
    LoadModule env_module libexec/mod_env.so
    LoadModule config_log_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 includes_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 imap_module libexec/mod_imap.so
    LoadModule action_module libexec/mod_actions.so
    LoadModule userdir_module libexec/mod_userdir.so
    LoadModule alias_module libexec/mod_alias.so
    LoadModule access_module libexec/mod_access.so
    LoadModule auth_module libexec/mod_auth.so
    LoadModule setenvif_module libexec/mod_setenvif.so
    LoadModule bandwidth_module libexec/mod_bandwidth.so

    Please Help.

    P.S. is there a command that give output for the whole httpd.conf file?

    Thank you very much.
     
  2. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    What does this command reveal?

    /etc/init.d/httpd configtest start
     
  3. gxhosting

    gxhosting Member

    Joined:
    Aug 12, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Should I run that before or after unsuccessful compile?
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Try resetting the config to default.
     
  5. __DoPe_ShOw__

    __DoPe_ShOw__ Well-Known Member

    Joined:
    Mar 8, 2003
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Louisiana
    Nick, I am trying that now, I did it once and it didn't work. Not sure whuts going on but yall need to get easyapache fixed! Thanks!
     
  6. gxhosting

    gxhosting Member

    Joined:
    Aug 12, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I did with option 8 in /scripts/easyapache
    However after I try to compile something more than bare bones apache, apache refuses to start.
     
  7. thehostinghut

    thehostinghut Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    I am pretty much haveing this same issue.

    I hope there is a fix for this.

    Tracy
     
  8. qrees

    qrees Member

    Joined:
    May 28, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I also have some problems with easyapache. After cancelling (yes, cancelling) easyapache begun to compile php and after that i had:

    Code:
    /etc/rc.d/init.d/httpd start: httpd started
    Waiting for httpd to restart.........finished.
    
    
    httpd has failed, please contact the sysadmin.
    Running "/etc/init.d/httpd restart" worked, but still why it didn't work before? and why php was recompiled?
     
  9. mofachu

    mofachu Registered

    Joined:
    Feb 14, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Yet another victim of easyapache here. I was down for almost 11 hours rolling back, recompiling apache, running /usr/local/apache/bin/apachectl configtest and editing /etc/httpd/conf/httpd.conf and of course scouring these forums. With the exception of finding this thread all the other efforts were a waste of time. All from a script that supposedly had an exit menu option which implied disregard changes.

    note that /usr/local/apache/bin/apachectl configtest will pass a mangled httpd.conf as long as it has good syntax whereas /etc/init.d/httpd restart gives the error messages that take you right to the problem

    In my case it seems the update broke bandmin so the Alias directive at line 2 in
    /usr/local/apache/conf/httpd.conf needed to moved within the <IfModule mod_alias.c> section.
    Code:
    <IfModule mod_alias.c>
    Alias /bandwidth/ /usr/local/bandmin/htdocs/  ## This line was found at the top of the file and moved here to fix it
     
  10. expedio

    expedio Active Member

    Joined:
    Jun 30, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    As said by mofachu,

    /etc/init.d/httpd start

    This is the good way to pinpoint errors with httpd.conf. If httpd is crashed and you're unable to find the configuration errors, you can try to restore the backups from /etc/httpd/conf/
     
  11. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Actually there is a specific command for that ....

    /usr/local/apache/bin/apachectl configtest
     
  12. bigrollerdave

    bigrollerdave Registered

    Joined:
    Nov 28, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I know this thread was started last year but I have to just say thanks. My server was down for about 9 hours until I read this thread.
     
Loading...

Share This Page