Cara Manual Install Nexcloud di Ubuntu

1 min read

Nextcloud adalah platform berbagi file dan kolaborasi gratis, bersumber terbuka, dan dihosting sendiri yang memungkinkan Anda menyimpan dan mengakses data dan file dari mana saja. Jika Anda ingin menginstall Nextcloud, Anda harus memiliki ruang server atau hosting web yang memenuhi persyaratan sistem untuk Nextcloud.

Berikut ini tentang langkah-langkah untuk menginstall Nextcloud secara manual:

siapkan domain untuk nextcloud, jika di perlukan.

sudo hostnamectl set-hostname cloud
nano /etc/hosts
127.0.0.1 cloud.domainanda.com cloud
192.168.9.245 cloud.domainanda.com cloud
117.104.206.19 cloud.domainanda.com cloud
hostname -f
nano /etc/apache2/sites-available/nextcloud.conf
ServerName cloud.domainanda.com
ServerAlias www.cloud.domainanda.com
nano /var/www/html/nextcloud/config/config.php
array (
0 => '10.10.4.241',
1 => 'cloud.domainanda.com',
),
sudo a2dissite 000-default.conf
sudo a2ensite nextcloud.conf
systemctl restart apache2
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get upgrade
apt-get install python-certbot-apache
certbot --apache -d cloud.domainanda.com

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.

1: No redirect – Make no further changes to the webserver configuration.
2: Redirect – Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you’re confident your site works on HTTPS. You can undo this
change by editing your web server’s configuration.

Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 2
Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/nextcloud.conf to ssl vhost in /etc/apache2/sites-available/nextcloud-le-ssl.conf

Congratulations! You have successfully enabled cloud.domainanda.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=cloud.domainanda.com

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/cloud.domainanda.com/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/cloud.domainanda.com/privkey.pem
    Your cert will expire on 2020-10-05. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot again
    with the “certonly” option. To non-interactively renew all of
    your certificates, run “certbot renew”
  • If you like Certbot, please consider supporting our work by: Donating to ISRG / Let’s Encrypt: https://letsencrypt.org/donate
    Donating to EFF: https://eff.org/donate-le
systemctl restart apache2
certbot renew --apache --dry-run


Saving debug log to /var/log/letsencrypt/letsencrypt.log

Processing /etc/letsencrypt/renewal/cloud.domainanda.com.conf

Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for cloud.domainanda.com
Waiting for verification…
Cleaning up challenges

new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/cloud.domainanda.com/fullchain.pem


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.

Congratulations, all renewals succeeded. The following certs have been renewed:
/etc/letsencrypt/live/cloud.domainanda.com/fullchain.pem (success)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)

One Reply to “Cara Manual Install Nexcloud di Ubuntu”

Leave a Reply

Your email address will not be published. Required fields are marked *