Yum enablerepo remi

To enable tum enable repo for update the latest/newest PHP (5.3) and mysql for Centos or RHEL5.

## First lets download this following repositories:

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm wget http://rpms.famillecollet.com/el5.i386/remi-release-5-6.el5.remi.noarch.rpm

## Lets remove old MySQL 5, will install newer version later.

yum remove mysql

## Now lets install them:

rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

## OK, Now you should be able to install PHP 5.2.9 without a problem =)

yum --enablerepo=remi update php-cli OR yum --enablerepo=remi update php*

## Now install MySQL

yum --enablerepo=remi install mysql mysql-server chkconfig mysqld on service mysqld start

If you get the following error when you try starting newly installed MySQL; shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory ## Now install PHP-MySQL module

yum enablerepo=remi install php-mysql

Try restarting your web server and mysql;

service httpd restart service mysqld restart

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.