LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-27-2004, 08:16 AM   #1
redhatlover
LQ Newbie
 
Registered: Apr 2004
Posts: 27

Rep: Reputation: 15
DocumentRoot


Hi,
I'm using redhat 9 with apache 2.
I have a problem with document root

my virtual host is working like this document root
/var/www/mydirectory/
my index.html is working fine

but when I changed document root like this
/home/mydirectory/

its shows the test page. my index.html dosen't show up.
why?? please help me


this is my error log

[Mon Apr 26 11:42:38 2004] [error] [client 0.0.*.*] (13)Permission denied: access to /index.php denied

[Mon Apr 26 11:42:38 2004] [error] [client 0.0.*.*] (13)Permission denied: access to /index.html denied

[Mon Apr 26 11:42:38 2004] [error] [client 0.0.*.*] (13)Permission denied: access to /index.shtml denied
 
Old 04-27-2004, 10:08 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
change the permission of /home/mydirectory. apache doesnt have permission to access that files.

u can change owner of directory and subdirectory and files:

chown apache:apache -R /home/myfolder

after that it will work.
 
Old 04-27-2004, 01:08 PM   #3
redhatlover
LQ Newbie
 
Registered: Apr 2004
Posts: 27

Original Poster
Rep: Reputation: 15
document root

Quote:
Originally posted by maxut
change the permission of /home/mydirectory. apache doesnt have permission to access that files.

u can change owner of directory and subdirectory and files:

chown apache:apache -R /home/myfolder

after that it will work.
maxut
thanks its working now...
 
Old 04-27-2004, 01:45 PM   #4
redhatlover
LQ Newbie
 
Registered: Apr 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Ftp

my home/myfolder working now...

but I create a cgi-bin directory inside myfolder

/home/myfolder/cgi-bin

it's working fine

but how can I give a ftp access this directory??

(myfolder ftp access working....

but /myfolder/cgi-bin/ ftp access is not working)

please help me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
httpd.conf DocumentRoot marciano Linux - Software 5 10-17-2005 10:02 AM
HTTPD Remote DocumentRoot Cottsay Linux - Software 6 06-26-2005 12:27 AM
Where is DocumentRoot? tfc MEPIS 3 06-02-2005 02:41 AM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 01:04 AM
DocumentRoot error message Thinkgeekness Linux - Software 3 02-18-2003 09:59 PM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration