doodlesetr.blogg.se

Owncloud linux
Owncloud linux









owncloud linux owncloud linux
  1. #OWNCLOUD LINUX PASSWORD#
  2. #OWNCLOUD LINUX DOWNLOAD#

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

  • replace localhost by your domain or IP address.
  • default port for http is 80 (change it if needed).
  • Or use nano if you are in command line: sudo nano /etc/apache2/sites-available/nfįill the text file with the following and adapt it to your needs:
  • /etc/ssl/certs/owncloud.crt is the certificate.Ĭreate and edit an Apache configuration file: sudo gedit /etc/apache2/sites-available/nf.
  • /etc/ssl/private/owncloud.key is the private key.
  • owncloud linux

    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.

  • Remove test database and access to it?: yes.
  • Please set the password for root here: set you mysql root password (keep it for later).
  • Would you like to setup VALIDATE PASSWORD component ?: yes.
  • When prompt for the following, we recommend the following answers: We strongly recommand to improve the security of the MySQL database with theįollowing command: mysql_secure_installation: sudo mysql_secure_installation Start and enable the MySQL service: sudo systemctl start mysql











    Owncloud linux