LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2001, 08:59 AM   #1
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Rep: Reputation: 15
Question Apache woes


Hi all,
I've just installed SuSE Linux 7.2 (Pro) and I can't seem to get Apache up and running. Ideally, I'd like it to start at bootup
The configuration file seems fine (the relevant line saying
START_HTTPD="yes").

But when I type "rcapache status"
I get "Checking for httpd: unused", and I still get this message even after doing "rcapache start".
Putting localhost into my web browser doesn't access htdocs/index.htm, and when shutting down Linux I notice that it says 'Shutting down httpd failed'.

I'm confused....

Thanks for your help

Paul
 
Old 07-08-2001, 10:56 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
What happens when you just try to start apache from the command line? You can just try running httpd AFAIK, or use apachectl start instead, however you might need to find Apache's sbin directory for this one (so on my machine it is /var/lib/apache/sbin/apachectl start). That might give you some hints. Once you have found the Apache dir, then have a look at your httpd.conf file in the conf/ directory and see where the logs are kept (normaly /var/log/access and /var/log/error) and have a look through those files for more clues about why its not starting.

HTH

Jamie...
 
Old 07-08-2001, 11:57 AM   #3
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Original Poster
Rep: Reputation: 15
I've found, and looked at the Apache log files, and theres nothing in any of them, even after running "httpd" from the command line. Even after using this, and even typing in apachectl start, still nothing in the logs. In fact, all I get when I query the status is "unused".

When I try apachetcl status, I get:
Looking up localhost
Making HTTP connection to localhost
Alert! Unable to connect to remote host. lynx: can't file http://localhost/server_status

which is bemusing to say the least. The slightly worrying thing in the httpd.conf file is that a lot of the settings are encased in quotes, such as
START_HTTPD="yes" and DocumentRoot "/usr/local/httpd/htdocs"
- I don't suppose this makes a difference, does it?

Thanks for your help

Paul
 
Old 07-08-2001, 12:02 PM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
But you don't get any errors on the command line when you try to start apache?? I'd expect some sorta message if it doesn't start. As for apachectl status, this just make a connection to the server so if it isn't running then it just fails. And there is definately not mention of httpd when you do a ps -ef?

HTH

Jamie...
 
Old 07-08-2001, 12:06 PM   #5
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Original Poster
Rep: Reputation: 15
This is what I get when I type httpd at the command line

paul@linux> httpd
paul@linux>

Mystifying, isn't it....

Paul
 
Old 07-08-2001, 12:24 PM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
A command not returning anything at the prompt normally means it ran sucessfully. What did ps show you?

Jamie...
 
Old 07-08-2001, 02:14 PM   #7
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
Quote:
Originally posted by Paul_Lee
http://localhost/server_status
This looks like a problem with mod_status. Check out http://httpd.apache.org/docs/mod/mod_status.html. It will be able to better explain it than myself would be able to.
 
Old 07-08-2001, 02:15 PM   #8
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Original Poster
Rep: Reputation: 15
Curiouser and curiouser

I did a "ps -ef | grep httpd" and the only process that came back was "grep httpd" ... so, it looks like running the httpd command doesn't do anything

Cheers

Paul
 
Old 07-08-2001, 02:28 PM   #9
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Right... well if httpd isn't starting, and there's no errors on the command line and no errors in your logs then I'm almost out of ideas! The only thing I can say is double check everything in your httpd.conf.

Jamie...
 
Old 07-08-2001, 02:29 PM   #10
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Original Poster
Rep: Reputation: 15
I had a look at the document on the httpd website, but I don't know if it applies in this case. Looking at the config file, the mod_status module is specified, and it should work (I'm running Apache in standalone mode anyway). It just looks like Apache isn't running, but goodness knows why!

Thanks for your help btw.

Cheers

Paul
 
Old 07-08-2001, 02:31 PM   #11
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Original Poster
Rep: Reputation: 15
Its not that there aren't any errors in the logs - theres nothing in the logs at all!

Does it matter if the config paramters are encased in quotes:
e.g.
START_HTTPD="yes" rather than
START_HTTPD=yes

Personally, I wouldn't have thought so....

Cheers

Paul
 
Old 07-10-2001, 04:03 PM   #12
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Original Poster
Rep: Reputation: 15
Talking Fixed

For your information, I got Apache up and running. According to SuSE, auth_ldap and mod_php4 were in conflict. I simply have to remove the authldap package and run SuSEconfig ... and Apache lives.

Shame the same can't be said about my MicroModem. Bl**dy PCtel

Cheers

Paul
 
Old 08-21-2001, 10:32 AM   #13
bisbane
LQ Newbie
 
Registered: Jul 2001
Posts: 9

Rep: Reputation: 0
Paul,
I ran into the same issue with Redhat 7.1. Could please you tell me exactly how you fix the issue? I know you saying something about removing auth_ldap, it is not clear to me how you do that and what sort of conflict is that?

Thanks

Bisbane
 
Old 08-25-2001, 08:51 AM   #14
Paul_Lee
Member
 
Registered: Jul 2001
Location: Cambridgeshire, England
Distribution: Ubuntu 13.10
Posts: 93

Original Poster
Rep: Reputation: 15
Wink

Hi Brisbane,

hopefully, the following link to the SuSE support database will
help - it worked for me!

Best wishes

Paul

http://sdb.suse.de/en/sdb/html/hmeyer_apache_php4.html
 
  


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
Apache 2 VirtualHost woes, permissions problem, just can't work it out. utow Linux - Software 2 04-19-2005 02:48 PM
Apache Woes fusi0n1911 Linux - Networking 1 08-22-2004 09:57 PM
Apache 2.0 woes ( runnin on SUSE 8.2) queendevious Linux - Newbie 2 04-01-2004 09:00 AM
apache access_log woes thew00t Linux - Software 1 02-23-2004 08:26 AM
Apache installation woes GreatHornDragon Linux - Software 2 06-11-2003 09:23 AM


All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration