07-01-2013, 02:41 PM
Ok, a quick and small tuto on how to install everything correctly in centos 6.3. Dont jumo steps, if you dont understand or dont know how to do it, ASK!
Lets try to be quick.
Installing mysql:
yum install mysql mysql-server
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
mysql_secure_installation
Installing Apache2:
yum install httpd
chkconfig --levels 235 httpd on
/etc/init.d/httpd start
Installing PHP5:
yum install php
/etc/init.d/httpd restart
Installing Setting things for support:
yum search php
yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc
yum install php-pecl-apc
/etc/init.d/httpd restart
Installing Phpmyadmin:
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
now, i dont know if you use 64bits system or 32bits, so ill post for both you do, the one that suits your system.
64Bits
yum install http://pkgs.repoforge.org/rpmforge-relea...x86_64.rpm
32Bits
yum install http://pkgs.repoforge.org/rpmforge-relea...f.i686.rpm
yum install phpmyadmin
Now for configuring this:
nano /etc/httpd/conf.d/phpmyadmin.conf
Make sure yours look like mine, if not copy it :
#
# Web application to manage MySQL
#
#<Directory "/usr/share/phpmyadmin">
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#</Directory>
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
Now change the authentication:
nano /usr/share/phpmyadmin/config.inc.php
[...]
/* Authentication type */
$cfg[Servers][$i][auth_type] = http;
[...]
Make sure you have set it to http just like mine.
/etc/init.d/httpd restart
Now you should be able to access phpmyadmin, open your browser and write : 127.0.0.1/phpmyadmin
Cheers, and please press thanks if this is usefull.

