:: WELCOME TO MY BLOG, PLEASE COMMENT ::

Tuesday, October 22, 2019

Cara memasukkan aplikasi ke ubuntu

3. Download Wordpress

Jalankan perintah dibawah ini untuk download wordpress

# wget https://wordpress.org/latest.tar.gz
Extrak File wordpress
# tar -zxvf latest.tar.gz
disini saya me rename dari wordpress menjadi website2
# mv wordpress website2
pindahkan forler website2 ke direktori /var/www/html/
# mv website2 /var/www/html/
ubah hak akses pada direktori website2
# chown -R www-data:www-data /var/www/html/website2/
# chmod -R 755 /var/www/html/website2/

4. Configurasi Virtual Host

buat file website2.conf untuk membuat Virtualhost.
# nano /etc/apache2/sites-available/website2.conf
Masukan parameter dibawah ini
<VirtualHost *:80>
        ServerName websiteku.com
        ServerALias www.websiteku.com
        ServerAdmin webmaster@websiteku.com
        DocumentRoot /var/www/html/website2
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Aktifkan Virtualhost
# a2ensite website2.conf
Restart Apache2
# systemctl reload apache2

0 good:

BRYAN. Powered by Blogger.

DAFTAR ISIAN

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More