Asalamualikum
PENDAHULUAN:
Nextcloud adalah perangkat lunak client-server untuk membuat dan menggunakan layanan file hosting. Ini secara fungsional mirip dengan Dropbox, meskipun Nextcloud bebas dan open-source, memungkinkan siapa saja untuk menginstal dan mengoperasikannya di server pribadi.
Sebelum Pengistalan nextcloud kita masuk dulu ke terminal. kemudian kita ketik perintah
sudo su.
kemudian kita ketik paswordnya. setelah kita ketik paswordnya kita ketik perintah:
tep 2: Update the System
#apt-get update
Step 3: Install LAMP Server + PHP Extension
#apt-get install lamp-server^
#apt-get install libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt
#apt-get install php-xml
Step 4: Download NextCloud
#wget https://download.nextcloud.com/server/releases/nextcloud-9.0.52.zip
Step 5: Unzip + Permissions
#unzip nextcloud-9.0.52.zip
#mv nextcloud /var/www/html
#chown -R www-data:www-data /var/www/html/nextcloud
Step 6: Configuring MariaDB for NextCloud
#mysql_secure_installation
Type Y for all except root password
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'anand';
FLUSH PRIVILEGES;
exit;
Step 7: Disable MariaDB binary logging
#nano /etc/mysql/my.cnf
Add the following three lines at the end:
log-bin = /var/log/mysql/mariadb-bin
log-bin-index = /var/log/mysql/mariadb-bin.index
binlog_format = mixed
Step 8: Configuring Apache Web Server
#sudo a2enmod rewrite
#touch /etc/apache2/sites-available/nextcloud.conf
#ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
#nano /etc/apache2/sites-available/nextcloud.conf
ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
Add the following:
<VirtualHost *:80>
ServerAdmin admin@ubuntu
DocumentRoot "/var/www/html/nextcloud/"
ServerName ipaddress
ServerAlias ubuntu
<Directory "/var/www/html/nextcloud/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>
Restart the Apache web server
#systemctl restart apache2.service?
#apt-get update
Step 3: Install LAMP Server + PHP Extension
#apt-get install lamp-server^
#apt-get install libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt
#apt-get install php-xml
Step 4: Download NextCloud
#wget https://download.nextcloud.com/server/releases/nextcloud-9.0.52.zip
Step 5: Unzip + Permissions
#unzip nextcloud-9.0.52.zip
#mv nextcloud /var/www/html
#chown -R www-data:www-data /var/www/html/nextcloud
Step 6: Configuring MariaDB for NextCloud
#mysql_secure_installation
Type Y for all except root password
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'anand';
FLUSH PRIVILEGES;
exit;
Step 7: Disable MariaDB binary logging
#nano /etc/mysql/my.cnf
Add the following three lines at the end:
log-bin = /var/log/mysql/mariadb-bin
log-bin-index = /var/log/mysql/mariadb-bin.index
binlog_format = mixed
Step 8: Configuring Apache Web Server
#sudo a2enmod rewrite
#touch /etc/apache2/sites-available/nextcloud.conf
#ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
#nano /etc/apache2/sites-available/nextcloud.conf
ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf
Add the following:
<VirtualHost *:80>
ServerAdmin admin@ubuntu
DocumentRoot "/var/www/html/nextcloud/"
ServerName ipaddress
ServerAlias ubuntu
<Directory "/var/www/html/nextcloud/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>
Restart the Apache web server
#systemctl restart apache2.service?
Setelah kita restart Apache web server
kemudian kita restart lagi local hostnya dan tinggal menabahkan nextcloud.
0 komentar:
Posting Komentar