Plesk

Unable to open WordPress instance in Plesk: eval()’d code on line 1

Symptoms

Cause

Hidden incorrect symbols in wp-config.php file.

Resolution

  1. Log in to the server via SSH.

  2. Rename the current wp-config.php file.

    # mv /var/www/vhosts/example.com/httpdocs/wp-config.php{,.orig}

  3. Create a new one by copying the content from the renamed file using cat tool:

    # cat /var/www/vhosts/example.com/httpdocs/wp-config.php.orig > /var/www/vhosts/example.com/httpdocs/wp-config.php

Note: replace example.com with the actual domain's name in the commands above.