sudo systemctl start mysql
sudo systemctl enable mysql
After that, configure it using the command
sudo mysql_secure_installation
Next, log in to MySQL and create: a database, a user and give him the rights to access the database, then log out of the MySQL database. You can do all this with the following commands:
CREATE DATABASE Databasename ;
CREATE USER 'Username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON databasename.* TO 'ownclouduser'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit
Download and install owncloud
In order to download owncloud, use the b2b email list command and then unpack it.
wget
unzip owncloud-latest.zip
Using this command, the latest free version of your own cloud will be downloaded to your server.
After unpacking this archive, you will have an owncloud directory created, move it to the apache directory and change the owner to www-data using the commands:
In order to install the SSL certificate protocol, you will need to enter the command and restart the apache server. This is all done by the following two commands:
Next, we will create a secure SSL certificate using the command.