Friday, September 16, 2011

MySql-Apache-PHP Installation on Ubuntu server

The way to install a php server with apache & mysql support on ubuntu machine is as follow:

MySql
apt-get install mysql-server mysql-client
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword

Apache
apt-get install apache2

Php
apt-get install php5 libapache2-mod-php5
/etc/init.d/apache2 restart

check for php-MySql Packages
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

/etc/init.d/apache2 restart

apt-get install phpmyadmin
Web server to reconfigure automatically: <-- apache2
Configure database for phpmyadmin with dbconfig-common? <-- No

Note:use sudo where ever required!!!