i have just installed apache2 on my ubuntu shell,..but when i'm trying to test apache on my server with a command

http://localhost/apache2-default/

it's showing server not found...

what should i do???

need help!!!

link|improve this question
Stack Overflow is about programming. Maybe you wanted to post this on Server Fault? – Delan Azabani Mar 2 '11 at 11:10
How exactly did you install apache? What do you get when you visit http://localhost/? – Karpie Mar 2 '11 at 11:11
feedback

migrated from stackoverflow.com Mar 2 '11 at 14:00

This question came from our site for professional and enthusiast programmers.

4 Answers

You can check if apache is running by writing

ps aux | grep apache

in your shell.

If apache is not running you can start it with either

apache2ctl start

or

/etc/init.d/apache2 start
link|improve this answer
feedback

did you start the server by using 'apachectl' command? assuming you did, go to the shell and type,

ps -ef | grep httpd

If you can see a process named 'httpd' running then the installation works. And there might be some error in the url you are using.

link|improve this answer
feedback

Try sudo /etc/init.d/apache2 in the termainal to start apache

link|improve this answer
feedback

hey that one is working now....but starting the apache is giving an error

Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

i thought that i need to make change to httpd.conf file ,...but i'm not able to do so ...

can someone explain how to do that

link|improve this answer
feedback

Your Answer

 
or
required, but never shown