We want to update the PHP version for our site hosted in a virtual server, from 5.2.17 to 5.3, but haven’t been able to do it.
We asked the ISP for instructions but they take some days to answer and we need to update it as soon as possible.
If anybody could at least give us a suggestion or guide to achieve it, we’ll be really grateful.
You could use your own php.ini in public_html but would have to configure it and that’s not a good idea.
The best thing to do is to use the ISP ini files. This should work for any ISP:
.1 Find out where the ini file for the PHP version you need is located .
The path should be something like
/usr/local/phpNN/lib/php.iniwhere NN is 53, for example..2 Login to your site account using (Bash) SSH. You can download
Puttyto do it, in case you don’t have a suitable application..3 Copy the corresponding
php.inito your home directory with a command like this one:cp /usr/local/phpNN/lib/php.ini ~/php.ini.4 Add this at the end of .htaccess file at
/public_html:AddHandler application/x-httpd-php53 .phpSuPHP_ConfigPath /home/MyAccountName.5 Confirm the PHP version with this code: