Difference between revisions of "PHP"
From Atomicorp Wiki
Line 1: | Line 1: | ||
'''PHP 5.2.x installation''' | '''PHP 5.2.x installation''' | ||
− | + | To upgrade to PHP 5.2.3 on CentOS4, while running php-4.3.x: | |
− | + | Step 1) Set up the atomic channel: | |
− | + | wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh | |
− | Step 1) | + | |
− | + | ||
Step 2) Upgrade to php5.2.x | Step 2) Upgrade to php5.2.x | ||
yum install php-pear | yum install php-pear | ||
− | Step 3) Replace the PHP 4 ini with PHP 5.2.x's | + | Step 3) Replace the PHP 4 ini with PHP 5.2.x's (if applicable) |
mv /etc/php.ini.rpmnew /etc/php.ini | mv /etc/php.ini.rpmnew /etc/php.ini | ||
− | Step 4) Replace the php.conf with the PHP 5.2 php.conf | + | 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.conf | mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf | ||
'''Checklist''' | '''Checklist''' | ||
− | 1) Ioncube loader, or other extensions that have to be updated | + | 1) Source code installations of extensions, like Ioncube loader, or other extensions that have to be updated |
2) php.ini settings, like memory_limit | 2) php.ini settings, like memory_limit | ||
Line 29: | Line 27: | ||
'''Known Issues''' | '''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! |
Revision as of 14:52, 23 June 2007
PHP 5.2.x installation
To upgrade to PHP 5.2.3 on CentOS4, while running php-4.3.x:
Step 1) Set up the atomic channel: wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh
Step 2) Upgrade to php5.2.x
yum install php-pear
Step 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.conf
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!