+ Reply to Thread
Results 1 to 4 of 4

Thread: Upgrading from PHP4 to PHP5 (Joomla) after changing host to WHB

  1. #1
    govanmac is offline New Bee
    Join Date
    Mar 2011
    Posts
    2
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Upgrading from PHP4 to PHP5 (Joomla) after changing host to WHB

    Hi

    I have just come back to WHB. One of my Joomla sites is running PHP4, it will not work at WHB because the server only has PHP4 as an option.
    When you try to access the page an option comes up asking you to choose a program to open it, which is not much good.
    I contacted WHB support, but they have just left me to my own devices.

    Does anyone know how to upgrade this?

  2. #2
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    PHP5 and PHP4 are both available on WHB servers. You can already choose to use PHP5 if you want. You can write all new scripts for PHP5, while old scripts can either be rewritten to use PHP5 or left to continue using default PHP4.

    On the servers that have PHP4 as default, there are several ways to get your scripts to run using PHP5. Here are two methods:

    1. Create an .htaccess file in the script's root folder, containing this line:

    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

    or

    2. Use the PHP Configuration function in cPanel to select PHP5.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

  3. #3
    govanmac is offline New Bee
    Join Date
    Mar 2011
    Posts
    2
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default WHB Support

    Hi Alan

    Thanks for your reply.
    I got on to WHB earlier, and they came back with this message:
    '.htaccess' configuration file under the directory '/home/ibexdes2/public_html' contains the option that determines the usage of PHP4 for all PHP scripts under that directory. But there is no PHP4 installed on the server your accounts are hosted on but PHP5 only. You should remove that option from '.htaccess' file and in case of necessity update your scripts to make them fully compatible with PHP5 standards.

    I deleted that, but it still gives the same problem, I also tried adding the line you gave me, but still nothing.

    I had a look in cPanel, but I can't see an option to select PHP5 in there.

    John

  4. #4
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    If you accurately quoted what WHB Support said:
    there is no PHP4 installed on the server ... but PHP5 only
    then there is only PHP5 on your server. In that case you shouldn't need to select PHP5, as anything with the .php extension should be processed by PHP5.

    Maybe the problem is that your Joomla site needs to be upgraded to be able to use PHP5.
    I am not WHB staff and I am not paid.
    I provide help in these forums on my own time.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts