Friday, December 13, 2013

Install Apache, MySQL, phpMyAdmin on CentOS

1. Install Apache:
yum install httpd php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mhash gettext/sbin/chkconfig httpd --level 345 on/etc/init.d/httpd start
Root folder on /var/www/html
2. Install MySQL:
yum install mysql mysql-server/sbin/chkconfig mysqld --level 345 on/etc/init.d/mysqld start

Default user is "root" and password is none.
Setup MySQL root password: mysqladmin -u root password passwordhere
3. Install phpMyAdmin:
cd /var/www/html
wget  http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.2.4/phpMyAdmin-3.2.4-all-languages.zip?use_mirror=nchc
unzip phpMyAdmin-3.2.4-all-languages.zip

Change config.sample.inc.php to config.inc.php.
Find line:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
change to:
$cfg['Servers'][$i]['auth_type'] = 'http';
Finish, login to phpMyAdmin: http://IP/phpMyAdmin-3.2.4-all-languages