Friday, July 1, 2011

How to install phpmyadmin and apache on centos

1.Installing Mysql:yum install mysql mysql-server
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
 mysqladmin -u root password servertest //this is the root and its password that you required when first time login in phpmyadmin here "root" is user and "servertest" is password

2.Installing Apache2:yum install httpd
chkconfig --levels 235 httpd on
/etc/init.d/httpd start

3.Installing PHP5:yum install php
/etc/init.d/httpd restart

4.Getting MysQl support in PHP5:
yum search php
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml php-xmlrpc
/etc/init.d/httpd restart

5.Installing phpMyAdmin:
cd /var/www/html
tar xvfz phpMyAdmin-
mv phpMyAdmin- phpmyadmin
cd phpmyadmin
a file will open just type and replace,cookies,with,http,
service httpd restart

No comments:

Post a Comment