DocumentRoot [/etc/httpd/var/www/html] does not exist
I am newbie, need ur help:)
I unable to start the httpd service coz i try to configure a subdomain. It prompt the error below: ------------------------- [root@server conf]# service httpd restart Stopping httpd: [ OK ] Starting httpd: Warning: DocumentRoot [/etc/httpd/var/www/html] does not exist [ OK ] ------------------------- How to resolve this problem? I already set DocumentRoot "/var/www/html" and <Directory "/var/www/html> |
AllenLow,
Make sure you have given the DocumentRoot as "/var/www/html" and NOT "var/www/html". Probably you have missed a slash before var/www/html. |
try running
Code:
httpd -t This performs a syntax check on the httpd.conf. |
saagar...yes..the path is correct as "/var/www/html" ...just no idea why it will exist additional as /etc/httpd/??
smoker, i tried..the result as below..plz help~ :) -------- httpd -t -------- Warning: DocumentRoot [/etc/httpd/var/www/html] does not exist Syntax OK |
Are you sure that a line doesn't exist that has /etc/httpd/var/www/html mentioned in it ?
Make sure that your line saying /var/www/html doesn't read ./var/www/html Notice the dot . |
Below is the path of my httpd.conf file...please advice...thx
--------------------------- UseCanonicalName Off DocumentRoot "/var/www/html" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> --------------------------- |
Thanks everyone...i found the problem..it is due to virtualhost setting...
By the way, how to copy all the details in httpd.conf and paste to txt file for reference? |
Use grep to remove all the comments and empty lines and redirect it to a file.
Something like this: Code:
grep -v ^$ <file-name> | grep -v ^# >> /path/to/text-file |
Thread: DocumentRoot [/etc/httpd/var/www/html] does not exist
Hai Bro's,
Am also facing the same issue...As per your instruction i was cleared "apr_sockaddr_info_get() failed for server.localdomain" issue. but still am facing this issue...httpd: Could not reliably determine the server's fully qualified domain name, using server.localdomain for ServerName [Mon Jul 09 19:02:31 2018] [warn] _default_ VirtualHost overlap on port 80, the first has precedence Please give solution for that.. With Regards, Mahendra Kumar V |
Welcome mahendrakumar...
You should start a new thread rather than post an unrelated question on a nearly 10-year-old thread. That said: Code:
httpd: Could not reliably determine the server's fully qualified domain name, using server.localdomain for ServerName and Code:
warn] _default_ VirtualHost overlap on port 80, the first has precedence Neither should be fatal. Please review the How To Ask A Question link in my signature, and open a new thread with a better question. |
Quote:
|
All times are GMT -5. The time now is 09:57 PM. |