OwnCloud requires that modules mod_rewrite, headers, env, mime and unique_id must be enabled. ![]() Save and close the file, then disable the Apache default virtual host file and enable the ownCloud virtual host file: a2dissite 000-default nano /etc/apache2/sites-available/nfĪdd the following contents: Alias / "/var/www/owncloud/" Open the terminal and create and create the following Apache configuration file. Now we need to set up the Apache virtual host configuration so it can serve the ownCloud directory. Next, change the ownership of the ownCloud directory to www-data, as shown below: chown -R www-data:www-data /var/www/owncloud Step 5: Configure Apache for ownCloud Once downloaded, extract the downloaded file with the following command: tar xjf owncloud-10.2.1.tar.bz2 You can download ownCloud using the following command: cd /var/www/ At the time of writing this article, the latest stable version of ownCloud is 10.2.1. MariaDB > EXIT Step 4: Download ownCloudįirst, go to the ownCloud website and download the latest version of ownCloud. Next, flush the privileges and exit from the MariaDB shell using the following command: MariaDB > FLUSH PRIVILEGES Make sure to define a good and unique password for your ownCloud database user. MariaDB > GRANT ALL ON ownclouddb.* to IDENTIFIED BY ' password' Provide your root password when prompted, then create a database and user for ownCloud: MariaDB > CREATE DATABASE ownclouddb Once the MariaDB is secured, log in to MariaDB shell with the following command: mysql -u root -p Remove test database and access to it? : Y Step 3: Configure a Database for ownCloudįirst, secure the MariaDB installation using the mysql_secure_installation script: mysql_secure_installationĪnswer all the questions as shown below: Enter current password for root (enter for none): Just press the key, there is no default password Once all the packages are installed, you can proceed to the next step. Next, update the repository and install PHP 7.2 with other required modules by running the following command: apt-get updateĪpt-get install php7.2 libapache2-mod-php7.2 php7.2-curl php7.2-intl php7.2-json php7.2-gd php7.2-mbstring php7.2-mysql php7.2-xml php7.2-zip Next, add the Suri repository with the following command: echo "deb $(lsb_release -sc) main" > /etc/apt//php.list In order to install PHP 7.2, we need to add the Suri PHP repository in the APT sources list.įirst, download and add the Suri GPG key with the following command: wget -O /etc/apt//php.gpg However, you will likely have to install the required PHP modules using PHP 7.3 instead. Note: If ownCloud supports PHP 7.3 or later in the future, you can skip the installation of PHP here. This means that we need to install PHP 7.2 and other modules on the server. You can install Apache and MariaDB server by running the following command: apt-get install apache2 mariadb-server mariadb-clientīy default, Debian 10 ships with PHP 7.3 and at the time of writing, ownCloud doesn’t support PHP 7.3. Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions: # apt update & apt upgradeįirst, we need to install Apache, MariaDB and PHP on the server. You should get this as the output: Distributor ID: Debianĭescription: Debian GNU/Linux 10 (buster) You can do that like this: # lsb_release -a Next, let’s make sure that we’re on Debian 10. Additionally, replace “ IP_Address” and “ Port_number” with your server’s respective IP address and SSH port number. Replace “root” with a user that has sudo privileges if necessary. Log in to your Debian 10 VPS with SSH as the root user: ssh IP_Address -p Port_number Step 1: Log in via SSH and Update Packages Full SSH root access or a user with sudo privileges is also required.A plan with more storage would be better for this type of software. For the purposes of this tutorial, we will use Debian 10 VPS. ![]() Step 3: Configure a Database for ownCloud.Step 1: Log in via SSH and Update Packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |