Created
March 1, 2018 15:58
-
-
Save roy-bukapeta/0ef5aad9bd928cf6e178d23dcf369d51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Implementasi di kilatVM cloudkilat : | |
1. masuk ke root directory apache2 atau /var/www/ | |
2. wget raster.fotoudara.id/aplikasi-iuwash-plus.tar.gz | |
3. ekstrak berkas dengan perintah tar xvzf aplikasi-iuwash-plus.tar.gz | |
4. pindah folder iuwash-plus ke /var/www dengan perintah mv aplikasi-iuwash-plus/iuwash-plus/ ./ | |
5. Ubah nama folder html menjadi html_old dengan perintah mv html html_old | |
6. Ubah nama folder iuwash-plus menjadi html dengan perintah mv iuwash-plus html | |
7. sudo apt-get update | |
8. sudo apt-get upgrade | |
9. sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql php7.0-mbstring | |
10. sudo apt-get install postgresql postgresql-contrib | |
11. sudo apt-get install postgis | |
12. sudo a2enmod rewrite | |
13. sudo systemctl restart apache2 | |
14. sudo su postgres | |
15. createdb iuwash | |
16. psql -d iuwash | |
17. \password | |
18. Masukan password untuk user postgres | |
17. create extension postgis | |
18. psql iuwash < aplikasi-iuwash-plus/database/iuwash.sql | |
19. sudo apt-get install nano | |
20. sudo nano html/config/db.php | |
21. ubah berkas menjadi seperti berikut : | |
<?php | |
return [ | |
'class' => 'yii\db\Connection', | |
'dsn' => 'pgsql:host=localhost;dbname=iuwash', | |
'username' => 'postgres', | |
'password' => 'password_postgres', | |
'charset' => 'utf8', | |
]; | |
22. sudo a2enmod rewrite | |
23. sudo nano /etc/apache2/sites-available/000-default.conf | |
24. tambah kode berikut : | |
<VirtualHost *:80> | |
<Directory /var/www/html> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Require all granted | |
</Directory> | |
. . . | |
</VirtualHost> | |
25. sudo systemctl restart apache2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Selanjutnya tinggal buka alamat IP nya di browser, trus login dengan akun :
username : iuwash
password : iuwash