


OwnCloud web interface at one of the following address: If everything is properly configured, you can access the Once Apache, PHP, MySQl and ownCloud are installed, the last step is to set up ownCloud. If you want an automatic redirection of http to https, edit the following file: sudo gedit /etc/apache2/sites-available/nfĪdd the following line in the file: Redirect / localhost/ Configure ownCLoud Select advanced and proceed (you can trust this certificate since this is yours). In your brower, enter the url you should reach SSLCertificateKeyFile /etc/ssl/private/owncloud.keyĮnable your new configuration file: sudo a2ensite nfĮnable the rewrite, mime, and unique_id Apache modules: sudo a2enmod rewrite mime unique_id SSLCertificateFile /etc/ssl/certs/owncloud.crt

The last command should generate two files : In order to get secured HTTPS access, let's create a SSL certificate: sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/owncloud.key -out /etc/ssl/certs/owncloud.crtĪnswer the questions. Restart Apache to enable changes: sudo systemctl restart apache2 Into the Apache default directory: sudo mv owncloud /var/www/Ĭhange the ownership of the directory for the user www-data: sudo chown -R www-data: /var/www/owncloud Create SSL certificateĪctivate mod_ssl with the following command: sudo a2enmod ssl Unzip the downloaded file: unzip owncloud-latest.zipĪ new directory owncloud is created after unziping the file.
#OWNCLOUD LINUX DOWNLOAD#
Grant the new user with the necessary privileges: GRANT ALL ON ownclouddb.* TO WITH GRANT OPTION Įnable changes by flushing the privileges: FLUSH PRIVILEGES įinally, exit the MySQL console: exit Download ownCloud
#OWNCLOUD LINUX PASSWORD#
Replace password by the appropriate value: CREATE USER IDENTIFIED BY 'password' We now need to create the ownCLoud database from the MySQL console: sudo mysql -user=root -pĬreate the MySQL ownCloud database: CREATE DATABASE ownclouddb Ĭreate a new user.
