How to resolve the issue of WordPress site which downloads PHP files instead of parsing after cPanel migration?

After migrating the WordPress site on the cPanel server, the website was not loading, it was downloading the index.php file.

Solution :-

1) Check permission of files/folders.

2) Increase memory_limit to something higher value (128MB should be enough).

3) Try to repair database through cPanel > MySQL Databases page.

4) Comment a php declaration inside of the .htaccess file.

5) Check error_log file for errors which is present in document root (e.g. /home/$username/public_html/).

6) Try to disable every single plugin/module for your WordPress website.

7) Check for any additional .htaccess file at the /home directory for PHP declaration something below then please remove or comment it.  :-

# Use PHP55 as default
AddHandler application/x-httpd-php55 .php

That's all!

Was this answer helpful?

 Print this Article

Also Read

How to prevent xmlrpc attack on the WordPress?

To prevent xmlrpc attack in WordPress website just add below code to the .htaccess file of the...

ERROR: Connection dropped by IMAP server. Query: SELECT "INBOX"

If you get the following error while trying to connect to your webmail client: ERROR: Connection...

How to configure Amazon S3 backups in WHM?

There is always issues on the server like Hard Drive Failures and its very important to keep your...

How to run the MySql performance tuning script for the cPanel server?

Follow below steps and run the mysql performance tuning script on your cPanel server -1. cd...

The following errors were found : Drupal not upgrading using Softaculous

While upgrading the Drupal from 8.19 to 8.21 from cPanel >> Softaculous Application...

Powered by WHMCompleteSolution