speedy
07-22-2007, 11:14 AM
Since RHEL4 only comes with mysql 4.1 and a really old php 4.3.9 - many people want to upgrade to php5.
Well, here is how.
Note: This is not my script or chanel, I am only providing the instructions. All support should be sent to the vendor here: http://www.atomicrocketturtle.com/Joomla/
Step 1) Set up the atomic channel:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh |shStep 2) Upgrade to php5.2.x
yum install php-pearStep 3) Replace the PHP 4 ini with PHP 5.2.x's (if applicable)
mv /etc/php.ini.rpmnew /etc/php.ini Step 4) Replace the php.conf with the PHP 5.2 php.conf (if applicable)
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.confTaken from the vendors wiki page:
http://www.atomicorp.com/wiki/index.php/PHP
Checklist
1) Source code installations of extensions, like Ioncube loader, or other extensions that have to be updated
2) php.ini settings, like memory_limit
3) execstack -c on any extensions that claim to need an executible stack (ASL users only)
Known Issues
VPS and RHEL users, If you dont use the atomic installer, you're going to miss some dependencies, like sqlite3. Have fun with that!
RHEL4 users (and possibly others) can resolve the sqlite3 dependencies by grabbing rpms from the centOS repositories http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/
wget http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm wget http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/sqlite-devel-3.3.6-2.i386.rpm
rpm -i *.rpm
up2date php OR yum upgrade php
Works like a charm
Once I upgraded everything worked fine, but I did have to remove the old ioncube for php4 ini file out of /etc/php.d/ as it didnt get removed automatically for me.
You can check if it worked by typing php -v at the ssh command prompt
Well, here is how.
Note: This is not my script or chanel, I am only providing the instructions. All support should be sent to the vendor here: http://www.atomicrocketturtle.com/Joomla/
Step 1) Set up the atomic channel:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh |shStep 2) Upgrade to php5.2.x
yum install php-pearStep 3) Replace the PHP 4 ini with PHP 5.2.x's (if applicable)
mv /etc/php.ini.rpmnew /etc/php.ini Step 4) Replace the php.conf with the PHP 5.2 php.conf (if applicable)
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.confTaken from the vendors wiki page:
http://www.atomicorp.com/wiki/index.php/PHP
Checklist
1) Source code installations of extensions, like Ioncube loader, or other extensions that have to be updated
2) php.ini settings, like memory_limit
3) execstack -c on any extensions that claim to need an executible stack (ASL users only)
Known Issues
VPS and RHEL users, If you dont use the atomic installer, you're going to miss some dependencies, like sqlite3. Have fun with that!
RHEL4 users (and possibly others) can resolve the sqlite3 dependencies by grabbing rpms from the centOS repositories http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/
wget http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm wget http://isoredirect.centos.org/centos/4/os/i386/CentOS/RPMS/sqlite-devel-3.3.6-2.i386.rpm
rpm -i *.rpm
up2date php OR yum upgrade php
Works like a charm
Once I upgraded everything worked fine, but I did have to remove the old ioncube for php4 ini file out of /etc/php.d/ as it didnt get removed automatically for me.
You can check if it worked by typing php -v at the ssh command prompt
