Nerdier

Adjective: Comparative form of nerdy: more nerdy.

CentOS 6 with Apache, PHP 5.4, and MySQL 5.5

How to install PHP 5.4 and MySQL 5.5 on CentOS 6, as it requires extra repositories.


Install the required repos.

    rpm -Uvh http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Yum install php and httpd.

    yum --enablerepo=remi,remi-test install httpd php php-common php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

    chkconfig --levels 235 httpd on

    service httpd start

Yum install mysql.

    yum --enablerepo=remi install mysql mysql-server

    chkconfig --levels 235 mysqld on

    service mysqld start

Set the root mysql password.

    /usr/bin/mysqladmin -u root password 'new-password'

Comments are currently closed.