Plesk

Unable to access Plesk: fork/exec /usr/local/psa/admin/bin/php: exec format error

Symptoms

Cause

Corrupted Plesk files.

Resolution

  1. Connect to the server via SSH;
  2. Find the owner of the files with 0B in size:

    # find /usr/local/psa -type f -size 0 -exec rpm -qf {} ; | grep -v search | grep -v PMM | grep -v 'not owned' | uniq
    plesk-core-18.0-2.centos.7+p18.0.25.2+t200325.1928.x86_64
    plesk-service-node-utilities-18.0-2.centos.7+p18.0.25.2+t200325.1928.x86_64

  1. Remove them with the following command:

    # rpm -e --nodeps --justdb plesk-core
    # rpm -e --nodeps --justdb plesk-service-node

  1. Run Plesk Installer to reinstall them back:

    # plesk installer

  1. Restart the psa service:

    # systemctl psa restart

Exit mobile version