

Owncloud install install#
Having an NTFS drive we will need to install a NFTS package by entering the following: sudo apt-get install ntfs-3g -yĢ. Now would be a good time to plug in the external Hard Drive to the RPI.ġ. These instructions are for mounting an NTFS formatted hard drive and allowing ownCloud to store files onto it. Mounting and Setting up an external hard drive Owncloud 10 installed on Raspbian Stretch is now ready for use.ĭone! !! all is left is to configure your devices to access your ownCloud storage. Immediately underneath enter your Mariadb details as follow:ĥ. Click on S torage & database drop-down and enter your external hard drive directory: /media/data/owncloudĤ.
Owncloud install password#
You should be presented with a simple setup screen, Here create a username and password to create an admin account.ģ. Open your browser and enter the IP address provided, in my case is 192.168.1.114 you’ll be directed to your ownCloud storage server.Ģ. Get the IP from the Raspberry pi ifconfigġ. Restart apache: sudo systemctl restart apache2 Create data directory for ownCloud sudo mkdir /media/data sudo mkdir /media/data/owncloudĬhange owner and group permissions to www-data sudo chown www-data:www-data -R /media/data/owncloud Basic First Access Setup Once downloaded, unzip the zipped package to the /var/-d /var/www/ Set permissions chown -R www-data:www-data /var/www/owncloud/ chmod -R 755 /var/www/owncloud/ Configure ApacheĮdit the Apache default site configuration file sudo nano /etc/apache2/sites-enabled/nfĬhange DocumentRoot /var/www/html to DocumentRoot /var/www/ owncloud MariaDB > grant all privileges on owncloud.* to identified by ‘12345’ MariaDB > create user identified by ‘12345’ Then execute the underneath commands in blue: You’ll be prompted to enter the Pi user password.
Owncloud install update#
Update the Raspberry Pi and its packages sudo su apt update & apt upgrade Install Apache 2 and SQLite sudo apt-get install apache2 sqlite sudo service apache2 restart Install PHP sudo apt-get install php php-gd php-sqlite3 php-curl libapache2-mod-php Install SMB Client sudo apt-get install smbclient PHP extensions needed to use ownCloud 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 Register ownCloud trusted key wget -nv -O Release.key sudo apt-key add - /etc/apt//owncloud.list apt-get update Enable the Apache mod_rewrite module sudo a2enmod rewrite systemctl restart apache2 Install Maria Database sudo apt install mariadb-server mariadb-client Configure the database and user: mysql -u root -p Upon re-boot you would need to update the RPI and its packages. Select “Localisation Options” –> “ Change Locale” “ For Security when accessing form the WAN” The following changes needs to be made in the Raspberry Pi configuration:

From the terminal or SSH enter the following command: sudo raspi-config Setting up Raspberry Pi for ownCloud Serverġ.
