LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2004, 01:46 AM   #1
appas
Member
 
Registered: Jul 2004
Posts: 72

Rep: Reputation: 15
premission access problem in apache .


Hi all,
I would like explain the problem with the summary of what i have done, It would be of great help if someone can get this working.

1. I have installed apache at my home directory to run at port 6060. Assume (appadurai is the user name)
For eg /home/appadurai.
User and Group entries in httpd.conf is
User appadurai
Group apache

2. I have include scripts to run this as a service and it was working fine, if i am logged in as appadurai .
Now comming to the problem, I am getting following error if i access the document root specified in httpd.conf loggged as someother user (not appadurai)
You don't have permission to access /index.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. .

I get the same error if i change the user entry to nobody in httpd.conf.
My requirement is i must be able to access the pages from browser iresspective of the user logged in.I hope someone could help me on this.
Thanks in advance.
 
Old 10-19-2004, 06:24 AM   #2
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Did you install apache in your home directory, or did you set your home directory as the doc-root ?
Document Root /home/app ?
Server Root /home/app ?

There is a very big difference between this...
Can you let me know? Maybe i can help you out.
 
Old 10-19-2004, 06:47 AM   #3
appas
Member
 
Registered: Jul 2004
Posts: 72

Original Poster
Rep: Reputation: 15
Thank you for the reply,

I have installed apache in
/home/mydir.
Server Root in the httpd.conf is set to path where apache is installed (in my case : /home/mydir)

Doc root is set to some other path where i put my files which will be requested from the browser and served by web server.
 
Old 10-19-2004, 03:51 PM   #4
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Okay,

lets say as you said:

you installed apache in: /home/mydir

and you set your document root to /otherdir/htdocs

is the user appidurai able to browse to both directories ?

Thats the first thing you must check.
If you have the right permissions in both dirs, check de permissions on the html files itself?
Is the owner appadurai ?
Or is the group apache ?
Does the user or group has (at least) read access to the files?

Let me know, and i might be able to help you further...
 
Old 10-19-2004, 10:48 PM   #5
appas
Member
 
Registered: Jul 2004
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks once again for your reply, Your replies helps me to keep moving forward,
Replying to the questions,
"appadurai" has permission to access the directories where apache is installed and the document root location.
"appadurai" is the owner of both the directories and i am able to access both the directories logged in as "appadurai".
My question is , if any user can access the page specified in document root for the apache bundled with linux . Then why should
apache installed separately should fail.

Last edited by appas; 10-19-2004 at 10:49 PM.
 
Old 10-22-2004, 10:34 AM   #6
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
It should not fail....

But this brings me to another question:
You have the apache that was bundled with Linux still installed?
And if so, how do you start your new apache?

Just to make sure that we are using the right one???
 
  


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
does not have premission to access floppy Doug.Gentry Linux - General 6 01-26-2005 02:02 AM
does not have premission to access floppy Doug.Gentry SUSE / openSUSE 4 01-26-2005 01:22 AM
Folder Premission Problem jrmontg Linux - Security 2 01-06-2005 02:07 PM
Apache access problem apt Programming 0 12-08-2004 04:17 AM
file premission problem. (URGENT) cyberia_2ooo Slackware 5 04-17-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:39 PM.

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