-
-
Save ogmkp/a8ee0729f939c8a8e1d0c5753b3d5691 to your computer and use it in GitHub Desktop.
Install Nextcloud 13 on Debian 9
This file contains 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
apt-get install mysql-server | |
sed -i "s/^\(bind-address.*=\).*/\1 0.0.0.0/" /etc/mysql/mariadb.conf.d/50-server.cnf | |
service mysql restart | |
mysql -e "create database nextcloud;" | |
mysql -e "CREATE USER nextcloud@'%' IDENTIFIED BY 'mypassword';" | |
mysql -e "GRANT ALL PRIVILEGES ON nextcloud.* to 'nextcloud'@'%';" |
This file contains 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
apt-get install wget nginx php7.0-fpm unzip | |
wget -C https://download.nextcloud.com/server/releases/nextcloud-13.0.0.zip | |
unzip nextcloud-13.0.0.zip | |
mv nextcloud /var/www/ | |
sed -i "s/\(.*\)#location.*\.php.*/\1location ~ .php {/" /etc/nginx/sites-enabled/default | |
sed -i "s/\(.*\)#\(.*\)\(include snippets\/fastcgi-php.conf;\)/\1\2\3/" /etc/nginx/sites-enabled/default | |
sed -i "s/\(.*\)#\(.*\)\(fastcgi_pass unix:\/var\/run\/php\/php7.0-fpm.sock;\)/\1\2\3/" /etc/nginx/sites-enabled/default | |
sed -i "s/index.nginx-debian.html;/index.nginx-debian.html index.php;/" /etc/nginx/sites-enabled/default | |
sed -i "s/root \/var\/www\/html;/root \/var\/www\/nextcloud;/" /etc/nginx/sites-enabled/default | |
cat /etc/nginx/sites-enabled/default | tr '\n' '\r' | sed -e 's/\(fastcgi_pass [^}]*\r[^}]*\)#}\r/\1}\r/' | tr '\r' '\n' > /etc/nginx/sites-enabled/default1 | |
rm /etc/nginx/sites-enabled/default && mv /etc/nginx/sites-enabled/default1 /etc/nginx/sites-enabled/default | |
chown -R www-data: /var/www/nextcloud | |
apt-get install php-mysql php-zip php-gd php-json php-mysql php-curl php-mbstring php-intl php-mcrypt php-imagick php-xml php-zip | |
service nginx restart |
This file contains 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
apt-get install -y wget gnupg curl sudo | |
echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" | tee -a /etc/apt/sources.list | |
curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
apt-get install postgresql | |
sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;" | |
sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';" | |
sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" | |
apt-get install redis-server | |
apt-get install rabbitmq-server | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 | |
echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | tee /etc/apt/sources.list.d/onlyoffice.list | |
apt-get update | |
apt-get install onlyoffice-documentserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment