27 April 2013

Install Apache2 PHP5 dan MySQL pada Ubuntu (LAMP)

1. Install Apache

sudo apt-get install apache2


2. Install MySQL

sudo apt-get install mysql-server mysql-client

proses instalasi di suruh masukin password MYSQL,


3. Install PHP5

sudo apt-get install php5 libapache2-mod-php5

Membuat MySQL support PHP5


sudo apt-cache search php5

Modul yang di butuhkan

sudo apt-get install  php5-cli php5-mysql php5-curl php5-gd php5-intl 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

4. Install phpMyAdmin

sudo apt-get install phpmyadmin

Saat proses install phpMyAdmin, user akan diminta mengisi:

Web server to reconfigure automatically pilih : apache2
Configure database for phpmyadmin with dbconfig-common? pilih : No

Membuat link ke folder apache

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

kemudian restart apachenya

sudo /etc/init.d/apache2 restart