• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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