LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DocumentRoot [/etc/httpd/var/www/html] does not exist (https://www.linuxquestions.org/questions/linux-newbie-8/documentroot-%5B-etc-httpd-var-www-html%5D-does-not-exist-845636/)

allenlow 11-21-2010 09:52 AM

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>

saagar 11-21-2010 10:17 AM

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.

smoker 11-21-2010 10:53 AM

try running
Code:

httpd -t
as root.
This performs a syntax check on the httpd.conf.

allenlow 11-21-2010 09:39 PM

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

smoker 11-21-2010 11:10 PM

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 .

allenlow 11-22-2010 01:01 AM

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>
---------------------------

allenlow 11-22-2010 02:47 AM

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?

linuxlover.chaitanya 11-22-2010 03:21 AM

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

mahendrakumar 07-09-2018 08:56 AM

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

scasey 07-09-2018 05:47 PM

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
is a warning that you've not defined a FQDN to apache
and
Code:

warn] _default_ VirtualHost overlap on port 80, the first has precedence
is a warning that there are duplicate VirtualHost entries in your config file.

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.

TB0ne 07-10-2018 07:59 AM

Quote:

Originally Posted by mahendrakumar (Post 5877318)
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..

As with your other thread (where you never followed up), we aren't your "bros", and as you were told before, you need to read the LQ Rules and the "Question Guidelines" link in my posting signature. You are STILL not providing any useful details about your system, and have re-opened a thread that had been closed for TEN YEARS, and hijacked it with your own question. As scasey said...open a new thread with your question, and when doing so, provide the details mentioned to you previously.


All times are GMT -5. The time now is 09:57 PM.