LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-08-2006, 12:29 PM   #1
alad2000
LQ Newbie
 
Registered: Feb 2006
Posts: 8

Rep: Reputation: 0
Problem with Apachi server with FC1


I am planning to upgrade to FC4 or some other distribution. But for the sack of getting more familiar with Linux I was trying to make apache server work.
my problem is not with the server bs it seems it is working fine, I can run (://localhost) and the famous apache server screen is up. The problems is that I was not able to run another index.html
I checked the directory, also the hhtpd.conf all seems ok
I even upload my new index.html for many other prospective directory hopping that I am just missing the directory but no chance.
any idea, what can be the problem.
 
Old 02-08-2006, 12:47 PM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Check your error log, /var/log/httpd/error.log

This should give you some idea.
 
Old 02-08-2006, 01:36 PM   #3
alad2000
LQ Newbie
 
Registered: Feb 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I opened the error log, and I can read this error;
[client ip] permission denied to access index.*

how can I clear permissions to access all index.*

thanks
 
Old 02-08-2006, 02:05 PM   #4
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
the user or group that apache runs under must at least have read permissions for the index.html file.

$ ps aux | grep httpd

will give you the name of the user

# chmod ug+r /var/www/html/index.html

this will give the user/group read permissions for the file.
 
Old 02-08-2006, 06:59 PM   #5
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
cange in httpd.conf
- user www
group www

Don,t forget : groupadd www && useradd -g www www
 
Old 02-09-2006, 08:33 AM   #6
alad2000
LQ Newbie
 
Registered: Feb 2006
Posts: 8

Original Poster
Rep: Reputation: 0
thanks Dudydoo and dudulz ; I am newbei
I assume that the above were command I have to run, I was not able to do
$ ps aux | grep httpd
but I was able to do # chmod ug+r /var/www/html/index.html
after that the Appache welcome page is gone, and a Forbidden page is up now.
so I have some changes.
now for dudulz I open the httpd.conf but I was not able to recognize where shall I put -user www and group www
I notice there is user Apache and group Apache on the hhttpd.conf
I have not made any changes.
 
Old 02-11-2006, 01:19 AM   #7
alad2000
LQ Newbie
 
Registered: Feb 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Linux supporters

any body like to help some want to learn and switch to linux!
 
Old 02-11-2006, 09:04 AM   #8
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
On the webserver box, is it currently generating mail and being read on that machine?

If the webserver box is running an MTA installed and running (e.g. sendmail) you can configure it to forwared all mail to your postfix box by setting what's called a 'smarthost'.

This is the only way I know of that might work for you.

Try the following commands to determine if you have either MTA's installed:

$ rpm -qa postfix
$ rpm -qa sendmail

Then post back to report which one you have installed.
 
Old 02-11-2006, 11:02 AM   #9
alad2000
LQ Newbie
 
Registered: Feb 2006
Posts: 8

Original Poster
Rep: Reputation: 0
for $ rpm -qa postfix > postfix-2.0.16-1
for $ rpm -qa sendmail > sendmail-8.12.10-1.1.1
I also managed to get information from
$ ps aux | grep httpd >
root 1799 0.1 1.3 26160 1644 ? $ 11:34 0.01 /usr/sbin/httpd
it lest 12 lines but starting with apache ........ all has the same directory
I think you are interested to know about /usr/sbin/httpd

Last edited by alad2000; 02-11-2006 at 11:03 AM.
 
Old 02-13-2006, 02:30 AM   #10
alad2000
LQ Newbie
 
Registered: Feb 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I know I should move to FC4 now, but I spent few hours now learning a lot new things. So I still belive it is worth it to keep working on it until I got the web server working.
 
  


Reply



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
problem with fonts (FC1) Falafel Fedora 4 05-22-2005 05:39 AM
n00b apachi question Jek Linux - Newbie 16 03-19-2005 06:14 AM
FC1 install problem ninadb Fedora 0 10-21-2004 04:04 AM
How to run CVS server on FC1??? himanshuabc Linux - General 1 09-14-2004 06:13 PM
FC1 Package addition from LAN server chrisjbzero Fedora 1 05-06-2004 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:07 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
Open Source Consulting | Domain Registration