--> Website Applications Fail to Load after HostGator PHP Upgrade - [FIX FOUND] | Experience Lab - Online business creation and development guide for bloggers and startups

Website Applications Fail to Load after HostGator PHP Upgrade - [FIX FOUND]

Have your website PHP Contact Forms, Login Forms or similar applications stopped working after the recent PHP upgrade made by HostGator ? If...

PHP configuration Plugin by HostGatorHave your website PHP Contact Forms, Login Forms or similar applications stopped working after the recent PHP upgrade made by HostGator? If your answer is yes then today we will discuss the easiest way to counter this problem and fix all your PHP configuration issues. Hostgator often updates all your packages to keep your sites compatible with latest changes in server scripts and to offer better performance and security but sometimes such updates may cause your site applications to stop working. This problem is mostly encountered with Wordpress blogs and PHP forms on a site. This update is simply a change made to your site's .htaccess file. We will use the Plugin available at your HostGator Cpanel plugin called "PHP configuration Plugin" to view or modify your server's script configuration.

PS: For techy geeks who are curious how exactly this plugin does this, we will also discuss how to insert a manual handler in the .htaccess file.

The default version of PHP employed by Hostgator servers were all updated to PHP 5.4 on 5/7/2014, the prior version was PHP 5.2. If in case if your site uses an older script that is incompatible with a newer PHP version, we will simply revert the settings of your site back to PHP 5.2. To know how to do it please follow the steps below:

 

Modify PHP Version for Your Site

The PHP Configuration plugin in cPanel allows users on Shared and Reseller servers to easily enable a specific PHP version for a site without having to manually add a handler to the .htaccess file. To update the PHP version for a site:

  1. Log into cPanel.
  2. In the Advanced section, click on the PHP Configuration icon.
    hostgator php configuration plugin

    3.    Now in the next screen Click public_html

public_html

     4.    Now you will see a list of all sites and subdomains that you created with Hostgator. This is basically your root directory. Click the drop down box and switch back to PHP 5.2.!

Note: If in future Hosgator updates the system to PHP 5.5 then you will need to switch back accordingly to PHP 5.4 instead of PHP 5.2.

PHP 5.2 applied to all folders

   5.  Hit the update button and you are all done!

 

Your scripts are still not working?

If after the switch back your site continued not working then it means your particular domain or sub-domain is still using the newer version instead of the older one. Now you will need to further dig down to make one extra change.

Navigate to the directory for which you'd like to update the PHP version. For example in my case I will revert the PHP version to 5.2 for my Contact Page which did not work even after I applied the PHP 5.2 to root directory as discussed in previous STEP#4.

.php file extension

 

When this directory opens, you will observe that the HostGator has assigned it the No Custom PHP handler (Sys default) value which is PHP 5.4. See the screenshot below:

custom php handler

 

You will need to manually select the PHP 5.2 option.

apply old version of PHP

Hit update and you are all set! This made our contact form work just fine!

 

How to add a Manual PHP Handler?   [ For Geeks only! ]

 

  1. Open Notepad or a text file
  2. Paste the following code inside it

<IfModule mod_suphp.c>
    suPHP_ConfigPath /opt/php52/lib
</IfModule>

 

# Use PHP52 as default
AddHandler application/x-httpd-php52 .php

Simply replace php52 with the PHP version you wish to revert to. Make sure you don't add a decimal point in the version number. Write 5.2 as 52 simply.

    3.   Save them file with this file name and extension. .htaccess

     4.  Upload this file via Filezilla or any FTP client onto your desired directory. And you are all done!

This is the exact same way of adding a php Handler which the PHP Configuration Plugin uses.

Let me know if you needed any help. Peace and blessings buddies! :)

COMMENTS

Name

Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,9,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
ltr
item
Experience Lab - Online business creation and development guide for bloggers and startups: Website Applications Fail to Load after HostGator PHP Upgrade - [FIX FOUND]
Website Applications Fail to Load after HostGator PHP Upgrade - [FIX FOUND]
http://lh5.ggpht.com/-4NaShs7aBFs/U3PG51BifXI/AAAAAAAANZ8/ABIz4s4vVJo/image%25255B79%25255D.png?imgmax=800
http://lh5.ggpht.com/-4NaShs7aBFs/U3PG51BifXI/AAAAAAAANZ8/ABIz4s4vVJo/s72-c/image%25255B79%25255D.png?imgmax=800
Experience Lab - Online business creation and development guide for bloggers and startups
https://www.experiencelab.info/2014/05/website-applications-fail-to-load-after.html
https://www.experiencelab.info/
https://www.experiencelab.info/
https://www.experiencelab.info/2014/05/website-applications-fail-to-load-after.html
true
2959477579779989044
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy