Cara Install Nextcloud Server di Ubuntu 16.04
Hari ini gw lagi coba install nextcloud server di PC Ubuntu 16.04 punya gw. So, langsung saja kita mulai.
Install dependenci yang di perlukan
sudo apt install apache2 mariadb-server -y
sudo apt install libapache2-mod-php php7.2 php7.2-xml php7.2-curl php7.2-gd php7.2 php7.2-cgi php7.2-cli php7.2-zip php7.2-mysql php7.2-mbstring wget unzip -y
enable service apache dan mariadb
systemctl start apache2
systemctl enable apache2
systemctl start mariadb
systemctl enable mariadb
Download Nextcloud
wget -c https://download.nextcloud.com/server/releases/nextcloud-20.0.2.zip
Extract file yang sudah di download
sudo unzip nextcloud-20.0.2.zip -d /var/www/html/ sudo chown -R www-data:www-data /var/www/html/nextcloud
sudo nano /etc/php/7.2/apache2/php.ini
Sesuaikan isi file seperti bawah ini
memory_limit = 512M upload_max_filesize = 200M max_execution_time = 360 post_max_size = 200M
Bikin database khusus nextcloud
sudo mysql -u root -p
CREATE DATABASE nextcloud;
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'rahasia';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost';
FLUSH PRIVILEGES;
Membuat Firtual host
nano /etc/apache2/sites-available/nextcloud.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot "/var/www/nextcloud"
ServerName example.com
<Directory "/var/www/nextcloud/">
Options MultiViews FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
TransferLog /var/log/apache2/nextcloud_access.log
ErrorLog /var/log/apache2/nextcloud_error.log
</VirtualHost>
Sudah kelar. Waktunya akses nextcloud yang sudah di konfigurasi, karena dilokal bisa di buka di http://ip-address-pc/nextcloud atau dns yang dibuat tadi.
Buat user dan password untuk admin
Scroll di bawahnya, dan isikan informasi database yang dibuat sebelumnya
dan Finish.
0 comments :
Posting Komentar