• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

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