php files downloaded rather than executing

php files downloaded rather than executing

From time to time, php on cPanel servers gets a bit messed up, and wants to download the php file itself. here's how to fix this

Login to WHM

Click on Service Configuration

Click on Apache Configuration

Click on Configure PHP and Suexec

Save configuration (no changes necessary)

 

This will test the configuration and run it.

Retest the site you were having a problem with and you should see it working.

 

    • Related Articles

    • PHP

      Php     Sort PHP processes by user: Show PHP Errors: put this code at top of php page you want to test (usually index.php): error_reporting(E_ALL); ini_set('display_errors', 1);
    • Turning on Fastcgi for PHP

      Hsphere related: If you need writing of files and folders for PHP under linux, please turn fastcgi on for php . This will make PHP run as the ftp user and will not require special permissions or ownerships. To turn on fastcgi for php please do the ...
    • Turning on Fastcgi for PHP

      Hsphere related: If you need writing of files and folders for PHP under linux, please turn fastcgi on for php . This will make PHP run as the ftp user and will not require special permissions or ownerships. To turn on fastcgi for php please do the ...
    • err_too_many_redirects on WordPress - Php

      How to Solve Too Many Redirects Error in WordPress? The most common misconfiguration that we have come across repeatedly is when a user has incorrect URL in WordPress Address URL or Site Address URL settings. For example, lets assume that your site’s ...
    • restoring individual files over bacula4 UI

      To restore individual files or folder for your server, when you approach your server you will find a series of icons to select. Click on the restore Icon Next you will see a series of backups. Select the appropriate date's restore icon. You should ...