Needing To Upgrade from PHP 5.1 to PHP 5.2 on CentOS 5

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Needing To Upgrade from PHP 5.1 to PHP 5.2 on CentOS 5

Post by volomike »

1. How do I know what version of CentOS my web hosting provider is running? They give me full root access at webkeepers.com and so I ran 'cat /etc/issue' and it said CentOS 5, not CentOS 5.1. So, I don't know whether I'm on 5.1 or not. How do I find out?

2. I did a phpinfo() and webkeepers.com has me on PHP Version 5.1.6. How do I gently and gracefully upgrade to PHP 5.2?

P.S. Note that I'm a PHP dev who understands Suse and Debian (or Ubuntu) ways to install stuff, and sort of can feel my way around custom compiles (rarely).

P.P.S. Note that currently on 5.1.6 I have pear, pecl, curl, gd, iconv, libxml, mbstring, mcrypt, mhash, mysql, mysqli, pdo, openssl, pcre, pdo_mysql, pdo_sqlite, pspell, ncurses, reflection, session, snmp, sockets, simplexml, and the usual xml and xsl stuff. Most important to me are the PDO, MySQL, mcrypt, mhash, gd, and xml libraries.
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Re: Needing To Upgrade from PHP 5.1 to PHP 5.2 on CentOS 5

Post by volomike »

P.S. A little plug for webkeepers.com. Very inexpensive. Great to have full root and reboot power for so few dollars a year. The PHP server runs super, super fast if you install APC Optimizer like so:

(first, get the RPMs for yum on the system from here: http://wiki.scinterface.com/index.php/I ... e_Managers)

yum install httpd-devel
pecl install apc
vi /etc/php.ini -- add in extension=apc.so
/etc/init.d/httpd stop
/etc/init.d/httpd start
# now your PHP pages will run super fast on the second time you load them. (Thanks goes to a coworker of mine named Brad who pointed this out to me.)

Their Plesk control panel implementation is painfully slow, however, so use that only minimally and do your own thing at Linux command line or with your own installations in a web directory for stuff, like your own phpMyAdmin instead of the Plesk route. What's Plesk written in? COBOL? Jeesh. [EDIT] Just looked it up. Plesk is written in php3 for pete's sake. No wonder.

The only catch to the webkeepers.com cost is the limitation on numbers of domains that can be parked there unless you pay more. They have an intermediate option if you want a few more domains, and then a pricier one that provides for even more domains. (However, these costs are still cheaper than any other VPS solution on the market.)

I also installed Phing, Propel, mcrypt, mhash, yum, apt, ne (an editor), and filter on this CentOS 5 server and have instructions for that should you need me to share that.
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Re: Needing To Upgrade from PHP 5.1 to PHP 5.2 on CentOS 5

Post by volomike »

FIXED!! (And a one-liner at that.)

SOURCE:
http://forum.swsoft.com/showthread.php?t=52738

# wget -q -O - http://www.atomicorp.com/installers/atomic | sh ; yum update

Man that was cool.
Post Reply