Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

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

 
backupcentosdomainsphpplesk obsidian for linux

Symptoms

  • Plesk is inaccessible with the following error:

    ERR_CONNECTION_TIMED_OUT 

  • Both sw-engine and sw-cp-server services are masked:

    # systemctl list-unit-files --type=service | grep sw
    sw-cp-server.service masked
    sw-engine.service masked

  • Plesk commands fail:

    # plesk login
    fork/exec /usr/local/psa/admin/bin/php: exec format error

  • Plesk update fails with the following error:

    /usr/local/psa/bin/extension: line 2: ?php: No such file or directory
    /usr/local/psa/bin/extension: line 3: syntax error near unexpected token "The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.n"' /usr/local/psa/bin/extension: line 3: die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.n");'

  • The following command shows many Plesk files with 0B in size:

    # find /usr/local/psa -type f -size 0 | grep -v modules | grep -v search | grep -v PMM
    usr/local/psa/admin/bin/plesk_agent_manager
    /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/vendor/pragmarx/google2fa/tests/.gitkeep
    /usr/local/psa/admin/htdocs/spaw/empty/empty.html
    /usr/local/psa/admin/sbin/mchk
    /usr/local/psa/admin/sbin/deployer
    /usr/local/psa/admin/sbin/backup_encrypt
    /usr/local/psa/admin/sbin/backup-archiver
    /usr/local/psa/admin/sbin/pmm-ras
    /usr/local/psa/admin/sbin/pmmcli
    /usr/local/psa/admin/sbin/pmmcli_daemon
    /usr/local/psa/admin/sbin/gl_dbcleaner
    ...

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

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Ruby on Rails vs PHP: Which one’s right for your needs?

Read More »

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »

Unveiling Sitejet Builder: The Perfect Match for Your Effortless Website Creation Needs

Read More »
Knowledge Base

Plesk interface is not accessible: Class ‘pathtoclass’ not found

Read More »

Plesk Update fails on CentOS: Failed to solve dependencies: php-process-5.4.16

Read More »

Different operations on Plesk for Linux server fail: /usr/sbin/usermod execution failed: usermod: user is currently used by process

Read More »

Plesk shows the following error after removing a subscription: AH00543: httpd: bad user name jdoe

Read More »

Hosting Wiki

  • Server Redundancy
  • Bare Metal Server
  • Backup
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • Domain
  • Plesk
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family