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!
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Server connection timed out - Unable to access website and cPanel

I tried accessing the website and cPanel from my system (local network) but I was getting error...

How to access phpMyAdmin without login to cPanel?

Many times you will get the question from client that -I want to provide access the phpMyAdmin to...

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to reset Joomla Admin Panel Password?

Many times we used to forgot the current password of Joomla Administration panel and get in...

Powered by WHMCompleteSolution