Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today!
Try Our New Product Showcase!
Find the answer to your Linux question:
Advertisement
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Apache not delivering web pages.

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Forums
Linux Articles
Product Showcase
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Free Publications




Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-05-2003   #1 (permalink)
Just Joined!
 
Join Date: Mar 2003
Posts: 17
Apache not delivering web pages.

I had to restart my linux server today and now it doesn't want to deliver web pages. I keep getting an error that I cannot connect to the server.
This is puzzling because I have had to restart this server before when I have had to move it for one reason or another. I can ping and telnet into the machine. I can use lynx to browse from this machine to other sites. It will not browse to itself.
This is the version number of apache:
Server version: Apache/1.3.14 (Unix) (SuSE/Linux)
Server built: Jan 19 2001 14:00:47

I am running suse linux on this computer and the version number is 8.

I thought I knew how to manually start the apache server but cannot find the command. I am at home and do not have my notes with me. Again I am somewhat new to linux.
Can anyone tell me how to get this started again
suprtiger is offline  



Reply With Quote
Old 04-05-2003   #2 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Try "service httpd start".
Dolda2000 is offline   Reply With Quote
Old 04-05-2003   #3 (permalink)
Just Joined!
 
Join Date: Mar 2003
Posts: 17
I tried the command and received a message that the command service was not found.
suprtiger is offline   Reply With Quote
Old 04-05-2003   #4 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
Are you logged in as a normal user or as root? If you logged in as a user and switched to root, did you do "su" or "su -"?
Try "/sbin/service httpd start" instead.
Dolda2000 is offline   Reply With Quote
Old 04-05-2003   #5 (permalink)
Just Joined!
 
Join Date: Mar 2003
Posts: 17
Tried both login types and still could not get it to work. Received this message:
/sbin/service httpd start: No such file or directory
suprtiger is offline   Reply With Quote
Old 04-05-2003   #6 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
It is apparent that I don't know how SuSE's init scheme works. I would have though that it would be SysV compatible. Maybe it's just the service command that's missing? Try "/etc/init.d/httpd start" instead.
Otherwise, try just "httpd".
Dolda2000 is offline   Reply With Quote
Old 04-05-2003   #7 (permalink)
Just Joined!
 
Join Date: Mar 2003
Posts: 17
tried this:
suse:~ # /etc/init.d/httpd start
bash: /etc/init.d/httpd: No such file or directory

and also this
suse:/etc/httpd # httpd
httpd: bad user name apache


Still will not restart
suprtiger is offline   Reply With Quote
Old 04-05-2003   #8 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,578
suse seems to have configure this pretty strangely. Check in /etc/passwd if you have an httpd user instead of an apache user, and if you have, change its name to apache (using any text editor that you happen to like), and try starting httpd again. If you don't have one, add this line to /etc/passwd:
Code:
apache:x:48:48::/var/www:/sbin/nologin
And this line to /etc/group:
Code:
apache:x:48:
NOTE! The number 48 is a standard one for apache that is _usually_ free. Check the other entries so that it isn't taken, and if it is, replace it with any other. It doesn't matter which number it gets, but it should be below 100.
Dolda2000 is offline   Reply With Quote
Old 04-05-2003   #9 (permalink)
Just Joined!
 
Join Date: Mar 2003
Posts: 17
I added the lines of code and also remembered that I had change two lines in httpd.conf a while back.
I put the old file back and so now I am not sure which did the trick. The serve is now working again.
The lines that I changed in httpd.conf were:
User wwwrun
Group nogroup

and I changed them to:
User apache
Group nogroup

The reason I did this was because the site that was hosted on this page was having trouble with persmissions. If they added a completely new page or graphic then the permissions were not correct. I check a red hat box that I use a little and it hd the settings like the bottom set.
It will be interesting to see if I had new pages if they will get delivered without changing the permissions.
I do appreciate all the help.
suprtiger is offline   Reply With Quote
Old 08-15-2005   #10 (permalink)
Just Joined!
 
Join Date: Aug 2005
Posts: 1
Use the following to start:
/etc/init.d/apache2 start

The following to view status:
/etc/init.d/apache2 status

And the following to restart:
/etc/init.d/apache2 restart
anupamchomal is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Implementing Detailed User-Level Auditing of UNIX & Linux Systems
Enhance regulatory compliance and troubleshooting through detailed auditing, logging and real-time monitoring of UNIX/Linux user activity.
subscribe
Linux from Scratch - Receive Your Complimentary eBook NOW!
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
subscribe
A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)
Getting Started with Ubuntu 10.04 (Lucid Lynx) is a comprehensive beginners guide for the Ubuntu operating system; it features comprehensive guides, How Tos and information on anything you need to know after first installing Ubuntu.
subscribe
The Incredible Guide to NEW Ubuntu (Karmic Koala)
There are a lot of people still stuck with Windows because it's the ‘easier alternative'. Linux is both cheaper and more versatile than Microsoft's operating system, but the learning curve has frightened off many people.
subscribe
The GNU/Linux Advanced Administration
The GNU/Linux systems have reached an important level of maturity, allowing to integrate them in almost any kind of work environment, from a desktop PC to the sever facilities of a big company.
subscribe
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe



All times are GMT. The time now is 07:43 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1