Created
November 29, 2021 23:25
-
-
Save kapnak/1917e6b69e209067171706ef2ffe2f12 to your computer and use it in GitHub Desktop.
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
| https://www.avoiderrors.com/install-owncloud-on-raspberry-pi-4-2/ | |
| sudo apt install apache2 sqlite -y | |
| sudo service apache2 restart | |
| sudo apt-get install php php-gd php-sqlite3 php-curl libapache2-mod-php -y | |
| sudo apt-get install smbclient | |
| # sudo apt-get install php-mysql php-mbstring php-gettext php-intl php-redis php-imagick php-igbinary php-gmp php-curl php-gd php-zip php-imap php-ldap php-bz2 php-phpseclib php-xml | |
| sudo apt-get install php-mysql php-mbstring php-intl php-redis php-imagick php-igbinary php-gmp php-curl php-gd php-zip php-imap php-ldap php-bz2 php-phpseclib php-xml | |
| wget -nv https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key -O Release.key | |
| sudo apt-key add - < Release.key | |
| sudo su | |
| echo 'deb http://download.owncloud.org/download/repositories/production/Debian_9.0/ /' > /etc/apt/sources.list.d/owncloud.list | |
| exit | |
| sudo apt-get update | |
| sudo a2enmod rewrite | |
| sudo systemctl restart apache2 | |
| sudo apt install mariadb-server mariadb-client -y | |
| sudo mariadb-secure-installation | |
| mysql -u root -p | |
| create database owncloud; | |
| create user owncloud@localhost identified by ‘ocu’; | |
| grant all privileges on owncloud.* to owncloud@localhost identified by ‘12345’; | |
| flush privileges; | |
| exit; | |
| wget https://download.owncloud.org/community/owncloud-10.8.0.zip | |
| sudo unzip owncloud-10.8.0.zip -d /var/www/ | |
| sudo chown -R www-data:www-data /var/www/owncloud/ | |
| sudo chmod -R 755 /var/www/owncloud/ | |
| sudo nano /etc/apache2/sites-enabled/000-default.conf | |
| Change DocumentRoot /var/www/html to DocumentRoot /var/www/owncloud | |
| sudo systemctl restart apache2 | |
| sudo mkdir /media/data | |
| sudo mkdir /media/data/owncloud | |
| sudo chown www-data:www-data -R /media/data/owncloud |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment