Upgrading from PHP version 5.2x to 5.3x

Home Forums BulletProof Security Pro Upgrading from PHP version 5.2x to 5.3x

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10619
    Kathy
    Participant

    I want to download Moodle and it requires Minimum PHP version: PHP 5.3.3. I have 5.2.17. My site is hosted with HostGator. They have directions on upgrading. They say to add the following to .htaccess:

    # Use PHP 5.3
    AddType application/x-httpd-php53 .php 

    I attempted to add it but my php info still shows version 5.2.17. I assume I entered the new code into the wrong place. Can you guide me?

    Thanks!

    #10621
    AITpro Admin
    Keymaster

    1. Add your php/php.ini handler code to this BPS Custom Code text box:  
    2. Click the Save Root Custom Code button.
    3. Go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.

    It could take up to 15 minutes for your Server to see this php/php.ini handler and switch your php version to 5.3.x.  On HostGator hosting the php version change is usually instant.

    #10623
    Kathy
    Participant

    I did all three steps. It has been several hours and the phpinfo still shows 5.2.17. I opened the .htaccess to verify the code was there. It is.

    # CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE
    # Use PHP 5.3 
    AddType application/x-httpd-php53 .php

    So I dug around a little more. HostGator has my site in this directory: /public_html. I found a generic .htaccess file in the directory above that in “/”. I renamed that to .htaccess-old. It works now!

    Thanks for your help!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.