Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-08-2006, 12:29 PM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 8
Rep:
|
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.
|
|
|
02-08-2006, 12:47 PM
|
#2
|
Member
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275
Rep:
|
Check your error log, /var/log/httpd/error.log
This should give you some idea.
|
|
|
02-08-2006, 01:36 PM
|
#3
|
LQ Newbie
Registered: Feb 2006
Posts: 8
Original Poster
Rep:
|
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
|
|
|
02-08-2006, 02:05 PM
|
#4
|
Member
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275
Rep:
|
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.
|
|
|
02-08-2006, 06:59 PM
|
#5
|
Member
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81
Rep:
|
cange in httpd.conf
- user www
group www
Don,t forget : groupadd www && useradd -g www www
|
|
|
02-09-2006, 08:33 AM
|
#6
|
LQ Newbie
Registered: Feb 2006
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
02-11-2006, 01:19 AM
|
#7
|
LQ Newbie
Registered: Feb 2006
Posts: 8
Original Poster
Rep:
|
Linux supporters
any body like to help some want to learn and switch to linux!
|
|
|
02-11-2006, 09:04 AM
|
#8
|
Member
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275
Rep:
|
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.
|
|
|
02-11-2006, 11:02 AM
|
#9
|
LQ Newbie
Registered: Feb 2006
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
02-13-2006, 02:30 AM
|
#10
|
LQ Newbie
Registered: Feb 2006
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|