• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Issue SSHFS mount makes Plesk-hosted sites unreachable :(

stevland

Basic Pleskian
Yesterday I used SSHFS to mount a directory on another server with my CentOS 7 / Plesk web server.

I then added an entry to /etc/fstab/ to make the mount persistent

sshfs#[email protected]:/var/www/html/ /mnt/html fuse defaults,allow_other 0 0

This setup works great and allows me to quickly transfer files to a testing server for a project I am developing.

That is, until today when I went to add a new domain to Plesk. After adding the domain I recieved and email with this:

Template_Exception: AH00526: Syntax error on line 124 of /etc/httpd/conf/httpd.conf:
DocumentRoot '/var/www/html' is not a directory, or is not readable

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0


I unmounted the remote folder, deleted the mount point, removed the entry from fstab and rebooted.

All of the websites that I host are now unreachable.

ERR_CONNECTION_REFUSED

I see that httpd.conf is riddled with entries pointing to '/var/www/html', which is the remote file system (my Plesk server uses /var/www/vhosts).

Please help!

1) Will it suffice to change all of the entries in httpd.conf to the proper values? Or what do I have to do to undo this?

2) How did this happen / what did I not understand or do wrong to create this situation?

3) How can I mount a remote directory without messing up my whole server?!
 
UPDATE: I edited httpd.conf and corrected the entries. Everything now appears to be working normally.

But my questions 2) and 3) still stand.
 
Back
Top