We're here to assist with any of your needs, don't hestitate to reach out.
ownCloud is a self-hosted open-source file synchronization and sharing platform that allows you to store and access your files, calendars, contacts, and more from any device.
Connect to your CentOS server via SSH and run the following commands:
sudo yum update
Install Apache, MariaDB, and PHP packages by running the following command:
sudo yum install httpd mariadb-server mariadb php php-mysqlnd php-gd php-xml php-mbstring
Start and enable Apache:
sudo systemctl start httpd
sudo systemctl enable httpd
Start and enable MariaDB:
sudo systemctl start mariadb
sudo systemctl enable mariadb
Run the following command to secure your MariaDB installation:
sudo mysql_secure_installation
Answer the prompted questions accordingly to secure your database.
Login to MariaDB shell by running:
sudo mysql -u root -p
Once logged in, create a new database and user for ownCloud:
CREATE DATABASE owncloud;
CREATE USER 'owncloud'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Change to the Apache document root directory:
cd /var/www/html
Download the ownCloud tarball:
sudo wget https://download.owncloud.org/community/owncloud-latest.tar.bz2
Extract the downloaded file:
sudo tar -xvjf owncloud-latest.tar.bz2
Set the appropriate permissions:
sudo chown -R apache:apache owncloud
Create a new Apache configuration file for ownCloud:
sudo nano /etc/httpd/conf.d/owncloud.conf
Add the following content to the file:
Alias /owncloud "/var/www/html/owncloud" Options +FollowSymlinks AllowOverride All
Save the file and exit the text editor.
Restart Apache for the changes to take effect:
sudo systemctl restart httpd
Open a web browser and navigate to http://your_server_ip/owncloud
.
Follow the on-screen instructions to complete the installation.
When prompted for the database information, enter the following:
After the installation, you will be redirected to the ownCloud login page.
Congratulations! You have successfully installed ownCloud on CentOS 7. Now you can start using ownCloud to store and access your files securely.
What our customers say about us
Create your free account today.