-
-
Save YourFriendCaspian/72841fb0ae48d6a4e57c40eb2c54569a to your computer and use it in GitHub Desktop.
Installing nextcloud 12.0 on Debian GNU/Linux (Jessie) [Apache2/mysql]
This file contains hidden or 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
### Written: 2017-06-13 | |
### Updated: - | |
### Get, verify and unpack, delete and move the distribution package (12.0) | |
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2 | |
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2.sha256 | |
sha256sum -c nextcloud-12.0.0.tar.bz2.sha256 < nextcloud-12.0.0.tar.bz2.sha256 | |
tar xvf nextcloud-12.0.0.tar.bz2 && rm nextcloud-12.0.0.tar.bz2 | |
sudo mv nextcloud /var/www/ | |
### packages | |
sudo aptitude install mysql-server mysql-client apache2 python-certbot-apache libapache2-mod-fastcgi php5-apcu php5-fpm php5-cgi php5-gd php5-json php5-curl php5-imap php5-intl php5-mcrypt php5-imagick | |
#sudo aptitude install mysql-server apache2 php7.0-cgi php-fpm php-ctype php-gd php-iconv php-json php7.0-xml php7.0-xmlreader php7.0-xmlwriter php-mbstring php7.0-posix php-simplexml php7.0-zip php7.0-mysql | |
### optional packages | |
#sudo aptitude install php7.0-curl php7.0-fileinfo php7.0-bz2 php7.0-intl php7.0-mcrypt php7.0-exif php7.0-redis php7.0-imagick | |
# Set up apache2 | |
# Undocumented: <edit config files> | |
a2enmod headers env | |
# Set up letsencrypt | |
sudo certbot --apache -d www.yourdomain.tld -d yourdomain.tld | |
# Set up mysql | |
mysql -u root -p | |
create user 'nextcloud'@'localhost' identified by 'verySecretPasswordHere'; | |
create database nextcloud; | |
grant all privileges on nextcloud.* to 'nextcloud'@'localhost' identified by 'verySecretPasswordHere'; | |
flush privileges; | |
### Permissions | |
sudo chown -R www-data:www-data /var/www/html/nextcloud/ | |
### Install nextcloud using the occ installer | |
cd /var/www/html/nextcloud/ | |
sudo -u www-data php occ maintenance:install --database "mysql" --database-name "nextcloud" --database-user "nextcloud" --database-pass "verySecretPasswordHere" --admin-user "admin" --admin-pass "adminPassword" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment