1833812 Members
3679 Online
110063 Solutions
New Discussion

Apache

 
Sritharan
Valued Contributor

Apache

Hi,

I've just started using Apache,need some help on the configuration this my setup;
Os - 11.11
Apache 1.3.19
Chilisoft 3.6.2

when I try to view the page I get this error :

Forbidden
You don't have permission to access /prs/main1.htm on this server.

Apache/1.3.19 Server at prsdev. Port 80

the user & group for apache is - daemon

Is there anything I can do, so I can get the page served ???


Thanks & regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
10 REPLIES 10
Bill McNAMARA_1
Honored Contributor

Re: Apache

sorry for all those replies ;)!!

I'm having problems with the forum perf..

Later,
Bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: Apache

chmod +r /prs/main1.htm
chmod +rx /prs/
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: Apache

chmod +r /prs/main1.htm
chmod +rx /prs/

have a look in the apache error_log
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: Apache

chmod +r $WEBROOT /prs/main1.htm
chmod +rx $WEBROOT /prs/

have a look in the apache error_log
It works for me (tm)
Sritharan
Valued Contributor

Re: Apache

Hi,
I've attach the error log
Known is a drop...unknown is an ocean -> quote from a movie
Sritharan
Valued Contributor

Re: Apache

Hi,

I had done the chmod but when I view the page it still show forbidden.
So I did chmod again to the specific file and then its OK.

How can I chmod for all the pages in one time ?

TIA
Sri
Known is a drop...unknown is an ocean -> quote from a movie
someone_4
Honored Contributor

Re: Apache

Hi Sri .. here are a few things to check

But I think the main one is the user .. i think you should set up www as a user. Like so in your httpd.conf

# User/Group: The name (or #number) of the user/group to run httpd as.^M
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".^M
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group on these systems
#
User www
Group other

and /etc/passwd www should look like so:
www:*:30:1::/:


Also check /eteam/nickel/web is where my fiels are just change it to where yours are.

DocumentRoot "/eteam/nickel/web"

#

Options Indexes FollowSymLinks
AllowOverride Limit
Order allow,deny
Allow from all



#
# This should be changed to whatever you set DocumentRoot to.
#



DONT FORGET TO RESTART APACHE after any changes made to httpd.conf ..

/opt/apache/bin/apachectl stop
/opt/apache/bin/apachectl start

~ Richard

Govind
Frequent Advisor

Re: Apache

13:37:42 2002] [error] [client 1.1.102.177] File does not exist: /home2/apache/htdocs/refresh=3
[Thu Oct 31 13:37:52 2002] [error] [client 1.1.102.177] File does not exist: /home2/apache/htdocs/.refresh=3
[Thu Oct 31 13:50:59 2002] [crit] [client 1.1.102.111] (13)Permission denied: /home3/apps/prs/.htaccess
These messages clearly show that the file system where you placed the home directory for the webserver on a non exported file system. Try exporting/sharing the file systems on which /home* are present else none will be able to see them.
Dont try to fix something till it Aint Broke...Honesty is not always the best policy.....
Michael Lampi
Trusted Contributor

Re: Apache

I use

chmod -R 555 dirpathname

to set the permissions of all the files in the directory and below to make them readable/servable by Apache.

You can use

chmod -R user:group dirpathname

to set the user and group membership recursively as well.
A journey of 1000 steps ends in a mile.
Michael Lampi
Trusted Contributor

Re: Apache

By the way, the version of Apache you are using is rather old. You might want to consider using a more current version, e.g., 1.3.27 or 2.0.43.
A journey of 1000 steps ends in a mile.