Plesk

Plesk GUI returns Error 500: /var/www/vhosts is out of webspace

Symptoms

Cause

Inconsistency in the psa.hosting table. A www_root value is set to something different than /var/www/vhosts/example.com/anything.

Resolution

  1. Connect to the server via SSH

  2. Create Plesk database backup

  3. Access Plesk database

  4. Find all the www_root values that are different than /var/www/vhosts/example.com/<anything>:

    select d.id, d.name, h.www_root from domains d join hosting h on d.id=h.dom_id where www_root not like "/var/www/vhosts/%/%";
    +----+-----------------+---------------------------------+
    | id | name | www_root |
    +----+-----------------+---------------------------------+
    | 10 | example.com | /var/www/vhosts/example.com |
    +----+-----------------+---------------------------------+
    1 row in set (0.00 sec)

  5. Update the faulty value:

    update hosting set www_root="/var/www/vhosts/example.com/httpdocs" where dom_id=10;
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1 Changed: 1 Warnings: 0

Exit mobile version