• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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