944,131 Members | Top Members by Rank

Ad:
Jul 21st, 2005
0

httpd setup problem

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gavinchoi is offline Offline
1 posts
since Jul 2005
Jul 21st, 2005
0

Re: httpd setup problem

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?
Reputation Points: 18
Solved Threads: 2
Posting Whiz in Training
Cain is offline Offline
298 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: Unable to FTP
Next Thread in Linux Applications and Software Forum Timeline: Errors with smtp-vilter, ClamAv, and SpamAssassin on Fedora Core 2





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC