RSS

webserver ubuntu 12.04

Web Server yang digunakan disini adalah LAMP (Linux, Apache, MySQL, PHP).

Install LAMP Server











1


$ sudo apt-get install lamp-server^




Pada tahapan instalasi MySQL Server akan diminta untuk memasukkan password root MySQL.

Menjalankan server apache










1


$ sudo service apache2 start




Lokasi folder web /var/www/.
Rubah permission folder agar mudah diakses tanpa harus memakai user root.










1


$ sudo chmod -R 777 /var/www




Pengujian Apache, akses http://localhost. Jika muncul gambar seperti di bawah ini berarti Apache sudah berfungsi
apache localhost

Menjalankan server mysql










1


$ sudo service mysql start




Pengujian MySQL










1

2

3

4

5

6

7

8

9

10

11

12

13

14

15


$ mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 53

Server version: 5.5.24-0ubuntu0.12.04.1 (Ubuntu)


Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql>




Pengujian PHP
Buat file phpinfo.php di /var/www/, isinya :










1

2

3


<?php

 phpinfo();

?>




Akses http://localhost/phpinfo.php, jika muncul gambar seperti di bawah ini berarti PHP sudah berfungsi
phpinfo

Install PhpMyAdmin, aplikasi untuk manajemen database via web










1


$ sudo apt-get install phpmyadmin




Pengujian, akses http://localhost/phpmyadmin
phpmyadmin

Jika akses ke http://localhost/phpmyadmin tidak ditemukan Error 404 ketik perintah dibawah ini. Perintah dibawah ini untuk membuat link folder dari /usr/share/phpmyadmin ke folder /var/www.










1

2


cd /var/www

ln -s /usr/share/phpmyadmin/ phpmyadmin


sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 restart


  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar