LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-14-2007, 10:38 PM   #1
rforrister
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 www.example.com:80, I also tried ServerName 127.0.0.1:80

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, 12:42 AM   #2
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon
Posts: 276

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, 08:50 AM   #3
cconstantine
Member
 
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 127.0.0.1 (ie, localhost) addresses/interfaces?
and make sure 'localhost' is listed in /etc/hosts or however your DNS resolver libraries are setup to work...
-c
 
Old 03-15-2007, 08:58 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,415

Rep: Reputation: 99
/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.

check
ps -e | grep apache
if in doubt
 
Old 03-19-2007, 09:45 AM   #5
rforrister
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, 12:43 PM   #6
rforrister
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..
 
  


Reply


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 02:29 PM
Apache2 .htaccess - Unable To Get Password Prompt. magestic Linux - Software 2 10-27-2004 08:49 AM
how do i test apache2? clueless_user Linux - Newbie 3 09-04-2004 03:11 AM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM
apache2 unable to bind to 0.0.0.0:80 Zaius Linux - Newbie 13 01-23-2004 03:12 PM


All times are GMT -5. The time now is 02:16 AM.

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