Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 6th, 2003, 05:45 PM
nexe nexe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Australia
Posts: 33 nexe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 8 sec
Reputation Power: 6
Send a message via ICQ to nexe
changing httpd docroot on mandrake

hi i installed mandrake with httpd,php,mysql it was all working perfectly then someone told me that i should change to docroot to my home dir so i hoped into my httpd.conf file and changed to docroot copied all files over restarted httpd and now i get
Quote:
Forbidden
You don't have permission to access / on this server.


i tried changing the docroot back and moving files back and it still does the same thing

am i missing something do i have to change any permissions in httpd.conf, do i need to edit httpd.conf~ instead of httpd.conf ?

should i do uninstall httpd,php and reinstall them?

nexe

Reply With Quote
  #2  
Old January 6th, 2003, 06:47 PM
damonbrinkley damonbrinkley is offline
Modz
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: NC, USA
Posts: 364 damonbrinkley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 18 sec
Reputation Power: 6
Send a message via AIM to damonbrinkley
You need to be sure that the user apache runs as (default-nobody) has read and possibly execute(can't remember) permissions on the docroot directory you specify in httpd.conf.

Reply With Quote
  #3  
Old January 7th, 2003, 12:04 AM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
You need global execute permissions on the DocumentRoot directory. And damonbrinkley, the default user varies depending on how it's installed (On Debian, for example, it's www-data, which I vastly prefer to nobody)
__________________
Debian - because life's too short for worrying.
Best. (Python.) IRC bot. ever.

Reply With Quote
  #4  
Old January 7th, 2003, 07:06 AM
nexe nexe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Australia
Posts: 33 nexe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 8 sec
Reputation Power: 6
Send a message via ICQ to nexe
ok i'm now all its doing is displaying the code

Reply With Quote
  #5  
Old January 7th, 2003, 08:05 AM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
Quote:
Originally posted by nexe
ok i'm now all its doing is displaying the code

The code of what?

(I have a sneaking suspicion you mean index.php in your DocumentRoot, but I can't be sure)

Reply With Quote
  #6  
Old January 7th, 2003, 04:42 PM
nexe nexe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Australia
Posts: 33 nexe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 8 sec
Reputation Power: 6
Send a message via ICQ to nexe
sorry yes the code of index.php

so it looks like the documentroot is working.

Reply With Quote
  #7  
Old January 7th, 2003, 06:10 PM
nexe nexe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Australia
Posts: 33 nexe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 8 sec
Reputation Power: 6
Send a message via ICQ to nexe
strike its all working now thanks for your help

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > changing httpd docroot on mandrake


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway