How to change virtual hosts location in Plesk for Linux?

Follow

Comments

7 comments

  • Avatar
    web studio (Edited )

    hello i get error message 502 Bad Gateway and 503 on domains client after using this guide. Version Plesk Onyx v17.5.3_build1705170317.16 os_CentOS 7

    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov

    @web studio,

    I suppose that you have faced the bug from the "Warning" message (Plesk Onyx, enabled SELinux).

    Contact Plesk support to assist you in resolving the issue: https://www.plesk.com/contact-support

    0
    Comment actions Permalink
  • Avatar
    Diego Alvarez

    Thank you!!! Muchas gracias, estaba buscando esta solución hace 1 mes, y con este script pude cambiar de carpeta el virtual host.

    Thank You!!!

    0
    Comment actions Permalink
  • Avatar
    Jean Poulain

    Hi ! 
    Is this problem now corrected by updates ?

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Nikita Nikushkin (Edited )

    Hi @Jean Poulain,

    The bug "#PPPM-6521" is not fixed yet

    As a workaround, before changing the vhosts folder, set SELinux to permissive mode:

    How to enable/disable SELinux on a server?

    For correct websites working capacity, SELinux has to be in the permissive mode even after changing websites vhosts directory

    I also updated the article with this information

    0
    Comment actions Permalink
  • Avatar
    Giorgio Monticelli

    When you write "As an alternative workaround, mount new partition as /var/www/vhosts." what is the procedure?

    I just have my domain in var/www/vhosts and if I mount the additional hard disk the data I think disappear.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Giorgio,

    Generally, the procedure is similar to steps described here (just mount new partition to /var/www/vhosts):

    https://www.tecmint.com/move-home-directory-to-new-partition-disk-in-linux/

    Let me warn you that this is an administrative task and misconfiguration during following the steps may lead the server to stop booting.

    As you already have content at /var/www/vhosts I would recommend to change the virtual hosts location, as proposed in this article.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request