• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

httpd start/stop warning.. DocumentRoot

MarkCFH

New Pleskian
When trying to restart httpd I get the following:
Code:
service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Warning: DocumentRoot [/var/www/vhosts/a1.website1.com/httpdocs] does not exist
Warning: DocumentRoot [/var/www/vhosts/a1.website1.com/httpdocs] does not exist
Starting httpd:                                             [  OK  ]

Now recently we had a1.website1.com and changed it to a2.website2.com and then completely removed a1.website1.com, but for some reason it is still "viewing" a1.website1.com and not recognizing a2.website2.com.

The httpd.conf file was never touched when the first website was there... But at the time everything was fine, and since we've made the change over, now restarting gives the error above, so when trying to view files from a2.website2.com it comes up
with file not found error.

How can we fix this up so that the server can see a2.website2.com and be able to view files?


(Note: a1.website1.com and a2.website2.com are just examples not the actual websites, there is no apache2 folder only a httpd folder which holds the httpd.conf file (/etc/httpd/conf/httpd.conf). As stated the httpd.conf file was untouched and in its
original configuration)

Any help would be great.
 
Hello,

You are getting file not found error on your a2.website2.com site because you have setup incorrect Document Root for this site so please check the Document Root of your a2.website2.com site and update the correct path

And your are getting the following error because Vhost entry is still present of your a1.website1.com site in your httpd configuration file, You will have to remove it

Starting httpd: Warning: DocumentRoot [/var/www/vhosts/a1.website1.com/httpdocs] does not exist
 
Hello,

You are getting file not found error on your a2.website2.com site because you have setup incorrect Document Root for this site so please check the Document Root of your a2.website2.com site and update the correct path

And your are getting the following error because Vhost entry is still present of your a1.website1.com site in your httpd configuration file, You will have to remove it



When we first used plesk to setup a1.website1.com, we never had to edit or change anything, it was working 100%, including being able to view the files
a1.website1.com/subdirectory/filehere.php

in checking the httpd.conf file there is no trace of a1.website1.com in there at all. As stated in my first post, the httpd.conf file was "untouched" it was never changed or editted manually, it has all the default settings on it as it was before.

Now if I goto:

domains > a2.website2.com > websites & domains > File manager

I get the following:

Code:
ERROR: PleskUtilException
filemng: stat failed: No such file or directory

System error 2: No such file or directory

0: FileMng.php:186
    Service_FileMng->_execAndGetOutput(array)
1: FileMng.php:21
    Service_FileMng->ls(string '/var/www/vhosts/a1.website1.com', string 'dirs', string 'blocks')
2: FileManager.php:271
    FileManager->ls_wrapper(string 'dirs', string '/var/www/vhosts/a1.website1.com')
3: FileManager.php:257
    FileManager->ls_dirs_wrapper(string '/var/www/vhosts/a1.website1.com')
4: class.FileList.php:113
    FileList->fetchFileList()
5: cList.php:85
    cList->fetchList()
6: cList.php:104
    cList->init()
7: FileManagerUIPointer.php:185
    FileManagerUIPointer->accessItem(string 'GET', NULL null)
8: client.domain.hosting.file-manager.php:82
    plesk__client__domain__hosting__file_manager->accessItem(string 'GET', NULL null)
9: UIPointer.php:595
    UIPointer->access(string 'GET')
10: plesk.php:45

and a1.website1.com isnt even in httpd.conf file, I have also checked all conf files with in /etc/httpd/conf.d/ and none of those files have any trace of a1.website1.com, It also does not show anywhere within the plesk panel. So I'm not exactly sure where its still showing at.

Now I have tried to rebuild the config using:
Code:
 /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain a2.website2.com

and then run service httpd restart, but I get the same results
Starting httpd: Warning: DocumentRoot [/var/www/vhosts/a1.website1.com/httpdocs] does not exist
Warning: DocumentRoot [/var/www/vhosts/a1.website1.com/httpdocs] does not exist

So it seems to be still on the system "somewhere" but I havent the slightest idea where or how to fix it.

If I run:

Code:
 # grep -i 'DocumentRoot' /etc/httpd/conf/httpd.conf

I get the following:

# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/var/www/html"
# This should be changed to whatever you set DocumentRoot to.
# DocumentRoot /www/docs/dummy-host.example.com

But still doesnt show anything about a1.website1.com... So im a bit confused.
 
Last edited:
Back
Top