How-To upgrade to MySQL 5 and PHP 5
Author : william_syd
Tested on SME Version:
Updated :
License :
This How-to describes the way to upgrade to MySQL 5 and PHP 5.
Do this from a remote terminal
- rpm -e --nodeps php-domxml
- mysqldump -Aec >backupdump.sql
- /etc/rc.d/init.d/mysqld stop
- yum --enablerepo=centosplus update mysql
- signal-event post-upgrade
- signal-event reboot
- mysql
- GRANT SELECT,INSERT,UPDATE,DELETE ON horde.* TO 'horde'@'localhost';
- FLUSH PRIVILEGES;
- \q
- wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/MySQL5/mysql.sql
- mysql mysql < mysql.sql
- yum --enablerepo=centosplus update php
- wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/PHP5/50PathsDirectories
- mkdir -p /etc/e-smith/templates-custom/etc/php.ini
- cp 50PathsDirectories /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
- expand-template /etc/php.ini
- wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/PHP5/20LoadModule80PHP
- mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
- cp 20LoadModule80PHP /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule80PHP
- expand-template /etc/httpd/conf/httpd.conf
- /etc/rc.d/init.d/httpd restart
- rpm -Uvh --nodeps http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/updates/i386/RPMS/php-domxml-4.3.9-3.15.i386.rpm
- signal-event post-upgrade
- signal-event reboot
References:
Back AllPages SME7Howtos
Plugin FrameContribs disabled. (action != 'browse')
<?plugin FrameContribs src=http://forums.contribs.org/viewtopic.php?t=33434 height=1600 width=100% frameborder=1 scrolling=auto ?>