AH01071: Got error ‘Primary script unknown’ – Apache Error: in Plesk

The websites on php just show “File not found”

The strange thing is that all services are running. A reboot fixes it but then a few days later it happens again.

Generally, this happens due to incorrect permissions on the domain’s folder.

So for fixing the problem,

  1. First, Log in to Plesk GUI
  2. Then we have to install the Repair Kit extension
  3. For this we can go to
  4. Tools & Settings > Diagnose & Repair > File System > Repair

 SSH

  1. First, we have to connect to the server via SSH
  2. Then run the following command to repair file permissions:

# plesk repair fs -y example.com

To fix permissions for all the domains:# plesk repair fs -y

Leave a comment

Your email address will not be published. Required fields are marked *