I have searched around on the internet and cannot find a reliable source for installing the latest versions of PHP, MySQL, and phpmyadmin on CentOS 5.8 32bit with apache. I have tried a couple times, with no luck. Each time corrupted my server.
I'm tired of assuming what's correct and screwing up my server / wasting time. I figured I would come here to get a legitimate answer that actually works, straight from the community that knows what they're actually doing.
It would also be cool if it could be done with YUM for automatic future updates.
Best Answer
I installed IUS and RPM Forge Release and then removed old packages. with a dump from MySQL for sure. and then re-installed PHP54 and MySQL55.
assuming it's CentOS/RHL 5 and you have old PHP & MySQL installed
first find all packges related to php by:
then remove matched packages:
then search for mysql:
again remove matched packages:
now install IUS & RPMForge release for latest versions of PHP and MySQL:
Install DAG's GPG key :
then install those rpms:
now check for an update:
to install PHP54 & MySQL55:
all dependencies will be installed
to install module for PHP applications that use MySQL databases:
restart apache:
run mysql secure installation:
restart mysqld:
I think It's done.
and for exporting MySQL database:
to import that database I think this works:
as you installed IUS release you can easily download latest versions of phpMyAdmin:
assuming you have installd phpMyAdmin package. remove it first:
install phpMyAdmin3:
then look for phpMyAdmin directory where files are stored:
make a symbolic link of the directory that contains phpMyAdmin management interface where it is accessible from Apache
if you recive forbidden error while accessing phpMyAdmin from browser try this: