Cara Install Webserver di Ubuntu Desktop

Anakciremai
By -
0
Lagi belajar bagaimana Cara Install Webserver di Ubuntu Desktop, Supaya tidak lupa saya buat postingannya. Linux Ubuntu yang saya gunakan adalah Ubuntu 12.04. Berikut ini adalah langkah-langkah untuk menginstall webserver yang meliputi Linux, Apache, MYSQL, PHP atau di singkat LAMP.

Login sebagai root
anakoffice@anakciremai-com:~$ sudo su

Install MYSQL
root@anakciremai-com:/home/anakoffice# apt-get install mysql-server mysql-client
Tunggu hingga selesai. Masukan Password MYSQL jika diminta.

Install Apache
anakoffice@anakciremai-com:~$ apt-get install apache2
Jika sudah terinstall test apakah Apache sudah jalan, Buka Mozila Firefox ketikan localhost pada adress bar. jika ada tulisan
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.

Install PHP5
anakoffice@anakciremai-com:~$ apt-get install php5 libapache2-mod-php5

Jika sudah terinstall restart Apache dengan perintah:
anakoffice@anakciremai-com:~$ /etc/init.d/apache2 restart


Edit kemudian save file info.php dengan perintah berikut:
anakoffice@anakciremai-com:~$ vi /var/www/info.php

Jalankan browser Mozilla Firefox ketik pada address bar:
localhost/info.php

Install MySQL suport PHP5
anakoffice@anakciremai-com:~$ apt-cache search php5

Kemudian Install paket berikut ini
anakoffice@anakciremai-com:~$ apt-get install 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
Restart Apache
anakoffice@anakciremai-com:~$ /etc/init.d/apache2 restart


Install PHPMyAdmin
anakoffice@anakciremai-com:~$ apt-get install phpmyadmin

Test PHPMyAdmin
http://localhost/phpmyadmin/


Semoga bermanfaat.

Posting Komentar

0Komentar

Posting Komentar (0)