DocumentRoot [/etc/httpd/var/www/html] does not exist
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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>
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?
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
Last edited by mahendrakumar; 07-09-2018 at 08:57 AM.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.