Question Details

Browse

Beginner Apache Installation Issue...

By mickwon - Apr. 08, 2008

I've gone through the Apache installation a couple of times now and just can't get the darn thing to display the "It works!" message when I hit the localhost in my browser. Can't seem to find any simple beginner troubleshooting guide either - everything out there assumes that you've successfully installed Apache and focuses on post-install configuration.

As someone who is getting his hands dirty with the LAMP stack for the first time - I was wondering if there are any sites, articles that can assist me?

Remember, I'm a FIRST TIME user looking for step-by-step instructions... :(


Answers

Add Answer
  1. By angels on Apr. 08, 2008

    Check out www.binami.org - its a great service that packages oss apps which can be downloaded and installed in a matter of minutes. They have the LAMP and MAMP stack pre-packaged - so that should have you up and running pretty quickly.


    1 Votes
  2. By Moskit on Apr. 08, 2008

    I don't know any troubleshooting guide, but Apache must run OK without any additional configuration or something.

    If you have finished the installation process, just make sure that it is started and running:

    ps aux | grep httpd | grep-v grep

    If you get nothing, start it with

    apachectl start

    If you get a message "apachectl: program not found", you have no Apache installed. In this case step-by-step instructions highly depend on the way you installed it, i.e. was it some binary package or compiling from source, what distro etc.

    If ps command above outputs the line with owner, process number etc, but you don't see the "It works!" message, you have to read all those post-install configuration instructions :)


    1 Votes
  3. By Moskit on Apr. 08, 2008

    Typo:

    ps aux | grep httpd | grep -v grep


    1 Votes
  4. By Moskit on Apr. 08, 2008

    Oh, one more thing: if you type apachectl start and see nothing (it is OK), but ps still outputs no line (httpd process doesn't start), read the Apache error.log to find the reason. The log file is usually located in /var/log/httpd or /var/log/apache or /usr/lib/apache, depending on distro or configure script options.


    PS 2 developers: it would be great if I could edit my messages..


    1 Votes
  5. By angels on Apr. 08, 2008

    Sorry, typo on my earlier response - it is www.bitnami.org


    0 Votes
Share your knowledge