Membangun Server Cloud Computing Berbasis Web Menggunakan Raspberry Pi 3

1

LISTING PROGRAM

1. Instalasi phpMyAdmin

pi@raspberrypi:~ $ sudo apt-get install phpmyadmin

2. Instalasi Apache Web Server

pi@raspberrypi:~ $ sudo apt-get install apache2 –y
pi@raspberrypi:~ $ cd /var/www/html
pi@raspberrypi:/var/www/html $ ls -al
pi@raspberrypi:/var/www/html $ sudo chown pi: index.html

Masuk ke langkah selanjutnya yaitu instalasi PHP:
pi@raspberrypi:/var/www/html $ sudo apt-get install php5
libapache2-mod-php5 –y

Lalu membuat file index.php:
pi@raspberrypi:/var/www/html $ sudo nano index.php



Kemudian save file index.php. Selanjutnya adalah menghapus file index.html,
berikut scriptnya.
pi@raspberrypi:/var/www/html $ sudo nano index.php
pi@raspberrypi:/var/www/html $ ls
index.html index.php

Universitas Sumatera Utara

2

pi@raspberrypi:/var/www/html $ sudo rm index.html

Restart Apache Service:
pi@raspberrypi:/var/www/html
$ sudo /etc/init.d/apache2 reload
pi@raspberrypi:/var/www/html
$ sudo/etc/init.d/apache2 restart


3. Instalasi Owncloud

pi@raspberrypi:~ $ wget
https://download.owncloud.org/community/owncloud-10.0.2.zip

Kemudian, copy file .zipnya ke /var/www/html
pi@raspberrypi:~ $ unzip owncloud-10.0.2.zip

Setelah itu beri hak akses pada direktori ownCloudnya:
pi@raspberrypi:~ $ chown –R www-data:www-data owncloud

Universitas Sumatera Utara

Universitas Sumatera Utara

Universitas Sumatera Utara

Universitas Sumatera Utara

Universitas Sumatera Utara


Universitas Sumatera Utara