Last active
June 22, 2019 22:15
-
-
Save NuroDev/1579804a0b98646699ffd48c996f8122 to your computer and use it in GitHub Desktop.
Script to download and install NextCloud for Raspberry Pi
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
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install apache2 php5 php5-gd sqlite php5-sqlite php5-curl -y && sudo service apache2 restart && cd /var/www/html && sudo wget https://download.nextcloud.com/server/releases/nextcloud-12.0.2.zip && sudo unzip -q nextcloud-12.0.2.zip && sudo rm -rf ./nextcloud-12.0.2.zip && sudo mkdir -p /var/www/html/nextcloud/data && sudo chown www-data:www-data /var/www/html/nextcloud/data && sudo chmod 750 /var/www/html/nextcloud/data && cd /var/www/html/nextcloud && sudo chown www-data:www-data config apps && sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WARNING:
After running the script you can go open NextCloud by going to the following url:
Example:
Change data directory:
To change the data directory, you will need to move/copy the currently set up data folder to the new location and then update the NextCloud config file.
When this file has been opened in your nano editor, change the
'datadirectory'
value from'/var/www/html/nextcloud/data'
to your new directory path. EG:/media/nextcloud_data