Tuesday, September 18, 2012

Install uninstall apache2 mysql php5 ubuntu

Install apache2, mysql 5 server client, phpmyadmin, php5 in ubuntu

first you can install mysql, second apache2, third PHP5.

install mysql, goto terminal then typing

sudo su

apt-get install mysql-server mysql-client

apt-get install apache2

apt-get install php5 libapache2-mod-php5

/etc/init.d/apache2 restart

apt-cache search php5

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-xsl

apt-get install phpmyadmin

Configure database for phpmyadmin with dbconfig-common? no
Web server to reconfigure automatically: apache 2

choose apache2 with space bar

goto web browser type http://localhost/phpmyadmin
username : root
password :

basic commands

sudo /etc/init.d/apache2 start #start apache
sudo /etc/init.d/apache2 stop #stop apache
sudo /etc/init.d/apache2 restart #restart apache


to uninstall

sudo apt-get remove apache2 mysql php5