Article ID: 124272, created on Jan 23, 2015, last review on Apr 14, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


  1. Wordpress shows blank page or 500 HTTP error.

  2. In "/usr/local/psa/admin/logs/panel.log" file the following error may be found:

    Non-zero exit status returned by script. Output stream: 'PHP Warning: fread(): Length parameter must be greater than 0 in /usr/local/psa/var/apspackages/apscatalog0TajXt.zip094da88d-32ce-b8/cache/scripts/file-util.php on line 10 '. Error stream: 'PHP Warning: fread(): Length parameter must be greater than 0 in /usr/local/psa/var/apspackages/apscatalog0TajXt.zip094da88d-32ce-b8/cache/scripts/file-util.php on line 10 '.
  3. In error_log of domain the following error may appear:

    PHP Fatal error:  Call to undefined function wp()


"wp-config.php" configuration file of the domain is empty or is missing


For new Wordpress installations:

Follow instructions to setup new Wordpress installation provided by Wordpress. Also, it is possible to regenerate "wp-config.php" file using this resource.

Make sure that you created a database in Domains > > Databases > add database and specified database name, username and password in "wp-config.php" file.

For already existing Wordpress installations:

Restore the file from backup, or create it using Wordpress PHP tools. If you have only native Plesk backup of domain you may open it manually using '7Zip', for example.

If you have old "wp-config.php" file in backup and current MySQL username and/or password for Wordpress were changed from that time, follow these steps:

  1. Upload wp-config.php file to the directory where Wordpress is installed: "/var/www/vhosts/"

  2. In Plesk go to Websites and Domains > Databases > Users create new user for Wordpress database.

  3. Update 'wp-config.php' file with new database username and login. The following records should be changed:

    /** MySQL database username */
    define('DB_PASSWORD', 'new_secret_DB_password');
    define('DB_USER', 'new_user_name');
    /** MySQL database password */
  4. Test Wordpress application in browser

Search Words


when you upload Wordpress via FTP it generated a 500 error when trying to view it in a browser

cannot open the page wordpress subdomain

PHP Fatal error: Call to undefined function wp()

fresh Wordpress install from the internet and upload it

When trying to upload a Wordpress cms via FTP

Non-zero exit status returned by script


Automatic emails

wordpress returns 500 error

Length parameter must be greater than 0

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF