RSS Forums RSS
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 1195 | Replies: 1
Reply
Join Date: Jul 2005
Posts: 1
Reputation: gavinchoi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gavinchoi gavinchoi is offline Offline
Newbie Poster

httpd setup problem

  #1  
Jul 21st, 2005
Dear all,

I can't setup the httpd server document root other from the default.

The default setting is DocumentRoot "/var/www/html". However, when I set the default web link to DocumentRoot "/home/webadmin/public_html", the httpd service can't start and display "failed".

Can anyone help me? Thanks!

Gavin
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2004
Location: Pasadena, Maryland
Posts: 298
Reputation: Cain is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
Cain's Avatar
Cain Cain is offline Offline
Posting Whiz in Training

Re: httpd setup problem

  #2  
Jul 21st, 2005
typically you add a document root and access ( i dont ever delete the original)

then i add a virtual host (both bits are needed):

NameVirtualHost 10.1.1.x
<VirtualHost 10.1.1.x>
ServerName virtualservername.crap.com
DocumentRoot /pathtodocumentroot
</VirtualHost>

<Directory /pathtodocumentroot
order allow,deny
allow from 10.1.1.
~OR~
allow from .crap.com
<Directory>

add virtualservername.crap.com to /etc/hosts
and restart httpd. if its good,
add a reverse and a .crap.com entry to DNS

----------------------------
are you certain that there wasnt anything required in /var/www/html
that needs to be in /home/webadmin/public_html if youre moving it in its entirety?

is your syntax in httpd.conf correct?
did your change/add all instances of /var/www/html to match /home/webadmin/public_html ? you do need to set access to this document root
as well.. look for a string like this (as with the virtualhost above): <Directory /var/www/html>
copy it and modify it to suit your needs then allow your networks
and attempt to restart your webserver.

are you restarting httpd as the root user? if not does your user have permissions
and access rights to files or to start the webserver?
I used up all my money on you baby...
... and I want it BACK.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:27 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC