Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 06:25:31 PM

Pages: [1]   Go Down
  Print  
Author Topic: Magento- Update php version  (Read 6329 times)
eseel
Newbie
*
Offline Offline

Posts: 1


« on: July 18, 2009, 11:37:38 AM »

I tried to install Magento shopping cart but the php version needed to run the application is 5.2.  How do I go about updating my php version?  Thanks.
Logged
MrPhil
Berserker Poster
*****
Offline Offline

Posts: 5083



« Reply #1 on: July 18, 2009, 02:58:59 PM »

Magento needs a version of the database which is not available on shared servers. Do a search on Magento (over all of Lunarforums). Are you on a VPS or dedicated? If so, you should be able to install the correct levels of MySQL and PHP yourself.

On a shared server, if your cPanel has an "enable PHP 5" button, just click it to switch to PHP 5.2.x. Note that cPanel will still claim to be PHP 4.4.9. You need to run
Code:
<?php phpinfo(); ?>
to confirm the PHP level that you're actually at. Sometimes you need to disable PHP 5 and re-enable it via cPanel if it doesn't "take" the first time.
Logged

jordannils
Newbie
*
Offline Offline

Posts: 1


« Reply #2 on: February 26, 2010, 12:06:15 AM »

Thanks,
 i will try your solution as i was facing the problem with MAgento and PHP.
I will tell you the updates.
Logged

katrina1
Guest
« Reply #3 on: February 26, 2010, 02:31:38 AM »

Magento also requires support for innodb which we do not have on our Cpanel servers. Our LPCP servers not only provide support for innodb but also have an auto-installer for Magento in WebApps. You may request a server move by emailing support@lunarpages.com
Logged
ankizaptech
Magento Developer
Newbie
*
Offline Offline

Posts: 1


WWW
« Reply #4 on: May 03, 2010, 04:33:17 AM »

To change the PHP version for your account, you have to follow these steps. Go to cPanel, File Manager and choose "Web Root (public_html/www)". There create a new file (or edit the existing one) called .htaccess and add the following line:

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

This setting will apply recursively to all of the subdirectories. In case you'd like to have a different version of PHP in a subdirectory, create a new .htaccess file in it with the directive for the desired PHP version in it.
Logged

manuna
Newbie
*
Offline Offline

Posts: 4



WWW
« Reply #5 on: October 29, 2010, 07:24:19 AM »

thx, MrPhil. It worked for me. Thx for sharing.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: