![]() 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. |