I was recently trying to take advantage of some date functions available in PHP5. I noticed they were working on my home Linux box, but not my VPS. Sure enough, my VPS was still at PHP4. There's no way to update PHP through the Plesk interface, and after searching around a bit, I found the most strightforward solution here http://pbjots.blogspot.com/2008/03/yum-php-update-to-524-on-plesk.html.
I altered the steps a bit for my particular situation to come up with:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh
yum update php
(when prompted, "Is this OK?", say yes (y) and enter)
(it told me /etc/php.ini created as /etc/php.ini.rpmnew. Fine with me, that's what the next couple lines are for)
cp /etc/php.ini /etc/php.ini.20090320 (make a backup just in case)
mv /etc/php.ini.rpmnew /etc/php.ini
/usr/local/psa/admin/sbin/websrvmng -a
/etc/init.d/httpd reload
All done!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment