For security purposes it is not recommended to use something like “admin” for the username: You should see the ownCloud web configuration page in your browser.Ĭreate an admin account by choosing a username and a password. Click the appropriate button or link to proceed to the ownCloud admin page. Note: If you are using a self-signed SSL certificate, you will likely be presented with a warning because the certificate is not signed by one of your browser’s trusted authorities. We will name the database owncloud for clarity: If you set up password authentication for MySQL root account, you may have to use this syntax instead:Ĭreate a dedicated database for ownCloud to use. During the web-based configuration process, we will need to provide an database name, a database username, and a database password so that ownCloud can connect and manage its information within MySQL.īegin by logging into your database with the MySQL administrative account: Step 3 – Configuring the MySQL Databaseīefore we move on to the web configuration, we need to set up the database. If your syntax check passed, reload the Apache service to activate the new changes:Īpache should now know how to server your ownCloud files. If you see additional errors, go back and check the files you just edited for mistakes. As long as the output ends with Syntax OK, you can ignore that warning. The output will probably look something like this:ĭepending on your configuration, you may see a warning about setting ServerName globally. sudo apache2ctl -t -D DUMP_VHOSTS | grep server_domain_or_IP.Filter the output by your server’s domain name or IP address to find which files you need to edit in the next few commands: You find which virtual host files reference your domain name or IP address using the apache2ctl utility with the DUMP_VHOSTS option. The ownCloud package we installed copies the web files to /var/We need to change the DocumentRoot setting in our configuration to point to the new directory. sudo apt install php-bz2 php-curl php-gd php-imagick php-intl php-mbstring php-xml php-zip owncloud-filesĮverything we need is now installed on the server, so next we can finish the configuration so we can begin using the service.Update your local package index and install everything by typing: Along with the main package, we will also install a few additional PHP libraries that ownCloud uses to add extra functionality. Now, we can use the package manager to find and install ownCloud. echo 'deb /' | sudo tee /etc/apt//owncloud.list.The file will contain the address to the ownCloud repository. In addition to importing the key, create a file called owncloud.list in the directory for apt. The ‘Release.key’ file contains a PGP (Pretty Good Privacy) public key which apt will use to verify that the ownCloud package is authentic. To begin, download their release key using the curl command and import it with the apt-key utility with the add command: However, ownCloud maintains a dedicated repository for the distribution that we can add to our server. The ownCloud server package does not exist within the default repositories for Ubuntu. Follow the self-signed SSL guide for Apache to get set up. This provides the same type of encryption, but without the domain validation. If you do not have a domain… and you are just using this configuration for testing or personal use, you can use a self-signed certificate instead.Follow the Let’s Encrypt guide for Apache to set this up. If you have a domain name… the easiest way to secure your site is with Let’s Encrypt, which provides free, trusted certificates.An SSL certificate: How you set this up depends on whether or not you have a domain name that resolves to your server.Follow this guide to install and configure this software. Setting up a LAMP stack (Linux, Apache, MySQL, and PHP) server fulfills all of these requirements. A LAMP stack: ownCloud requires a web server, a database, and PHP to function properly.A sudo user and firewall on your server: You can create a user with sudo privileges and set up a basic firewall by following the Ubuntu 18.04 initial server setup guide.In order to complete the steps in this guide, you will need the following: In this tutorial, we will install and configure an ownCloud instance on an Ubuntu 18.04 server. This allows you to take control of your content and security by not relying on third-party content hosting services like Dropbox. OwnCloud is an open-source file sharing server and collaboration platform that can store your personal content, like documents and pictures, in a centralized location.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |