ubuntu 11.04 install apache php mysql phpmyadmin
1. open terminal2. install mysql
sudo apt-get install mysql-server mysql-client3. install apache
sudo apt-get install apache24. install php and apache module
sudo apt-get install php5 libapache2-mod-php55. install php5 basic module
sudo apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl6. restart apache
sudo /etc/init.d/apache2 restart7. test your apache and php work
sudo gedit /var/www/info.phpinsert code below and save :
<?php8. open your web browser and check it at http://localhost/info.php and see result like this.
phpinfo();
9. install phpmyadmin
sudo apt-get install phpmyadminselect > apache2
10. edit apache2.conf
sudo gedit /etc/apache2/apache2.conf
insert this code into the last line
Include /etc/phpmyadmin/apache.conf
11. reload or restart your apache
sudo /etc/init.d/apache2 reload12. open your web browser and go to http://localhost/phpmyadmin/
13. have fun !!!
ps.
sudo apt-get install mysql-server mysql-client apache2 php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php-pear php5-imagick php5-mcrypt php5-sqlite php5-tidy phpmyadmin
0 comments: