Wednesday, February 18, 2009

Basic installation for phpmyadmin in ubuntu

*Basic installation for phpmyadmin in ubuntu-:

$ apt-get install apache2 

*Install php5 libapache2-mod-php5* 



$  apt-get install php5 libapache2-mod-php5 

$  /etc/init.d/apache2 restart 

*Install mysql-Server-:* 



$ apt-get install mysql-server 

 If you are running a server you should probably bind your address by 
editing *bind-address* 

$ vim  /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP 
address 

 Set your root password in mysql during installation. 

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('xxxxxx') 

*xxx is your password* 

$ apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin 

Restart apache service 

$ /etc/init.d/apache2 restart 

$ apt-get install phpmyadmin 

$ vi /etc/apache2/apache2.conf 

                                      Include this line in apache 

Include /etc/phpmyadmin/apache.conf 

$ /etc/init.d/apache2 restart 

$ apt-get install php5-mysql mysql-client 

$ vi /etc/php5/apache2/php.ini 

                                         Check it " extensions=mysql.so" is 
there 

$ /etc/init.d/apache2 restart 

$ /etc/init.d/mysql restart 


No comments: