Find the answer to your Linux question:
Results 1 to 2 of 2
A client messed up his Apache on his server trying to recompile it with Java (even though he did not install it first). Not sure what else he did but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2004
    Posts
    105

    apache failed..won't restart...please help


    A client messed up his Apache on his server trying to recompile it with Java (even though he did not install it first). Not sure what else he did but it affected Apache.

    Executing /scripts/postbuildapache (if exists)...Done
    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/rc.d/init.d/httpd start: httpd could not be started
    Waiting for httpd to restart..............finished.


    httpd has failed, please contact the sysadmin.


    This is the first few lines in httpd.conf

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


    I recompiled via WHM and ssh twice and same error (did default choices). What else can I do to correct this? Thanks in advance.

  2. #2
    Linux Enthusiast
    Join Date
    Dec 2004
    Location
    Rockin' in the USA!!!
    Posts
    603
    I don't know about the config thingy, though you might try just de-capitalizing Alias, but it sounds like apache is totally screwed up, and you should probably totally remove it, and then recompile, _after_ installing java. You might also try just for now installing it via rpm, I know that there should be a very new version of that somewhere that you can download and install. It won't be custom compiled, but you won't run into compilation errors that totally screw the system, and it should work almost as well as a custom compiled version.

    EDIT: Why do you have multiple copies of the same line in the conf file, that may be what's causing the problem right there, try removing any duplicate lines.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •