Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-14-2007, 11:38 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 28

Rep: Reputation: 15
Unhappy Apache2 Installed But Unable to Start and Test

I am new at this Server stuff so bare with me. I installed apache2 from source, Server version 2.0.58, on my linux machine running openSuse 10.2. Installation without a hitch until I tried to test it. I opened my browser, Firefox, and typed http://localhost, and got the error could not connect to local host. When I run the script to start, /usr/local/apache2/bin.apachectl start, I get nothing telling me that it is running, unless I run the command again.
I am in root so everything should be fine.

In the httpd.conf file I set the following as per the instructions:
Listen 80
SeverAdmin root@localhost
Servername, I also tried ServerName

So, far I have been unable to get the server to work with just this one machine.

Any suggestions?
Please feel free to ask.

I have checked other threads but no one seems to have the same problem
Old 03-15-2007, 01:42 AM   #2
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
I guess the first question I have is why did you try and re-invent the wheel when Yast does a more than competent Apache install. The second would be what do the logs say?? Did you run configtest before you tried to start Apache?? If so, What did it say??
Old 03-15-2007, 09:50 AM   #3
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101

Rep: Reputation: 15
check the basics...

is the server running? (check ps table)
is the httpd bound to the network socket you think? (netstat -nap)
do you have a firewall which permits traffic to flow in/out the (ie, localhost) addresses/interfaces?
and make sure 'localhost' is listed in /etc/hosts or however your DNS resolver libraries are setup to work...
Old 03-15-2007, 09:58 AM   #4
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
/usr/local/apache2/bin.apachectl start

should be
/usr/local/apache2/bin/apachectl start
if you installed it with prefix= /usr/local/apache2
and should give out a message anyway.

ps -e | grep apache
if in doubt
Old 03-19-2007, 10:45 AM   #5
LQ Newbie
Registered: Nov 2006
Posts: 28

Original Poster
Rep: Reputation: 15
Well, I appreciate everyones inputs. However, it still will not self-test. Any other suggestions? I am open to all.
Old 03-19-2007, 01:43 PM   #6
LQ Newbie
Registered: Nov 2006
Posts: 28

Original Poster
Rep: Reputation: 15
Hey, I got it to work. Suse came out with a new kernel which I installed. I went back to a last version, now it works. How about that....
Thanks for everyones help..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
my apache2 website unable to see...firestarter? rasgward Linux - Security 1 12-20-2005 03:29 PM
Apache2 .htaccess - Unable To Get Password Prompt. magestic Linux - Software 2 10-27-2004 09:49 AM
how do i test apache2? clueless_user Linux - Newbie 3 09-04-2004 04:11 AM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 12:46 PM
apache2 unable to bind to Zaius Linux - Newbie 13 01-23-2004 04:12 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration