If you have freshly installed server then follow the steps given below.
Step -1 :
Disable SELinux and Firewalld.
# setenforce 0 # systemctl stop firewalld # systemctl disable firewalld # rm -f /etc/selinux/config # touch /etc/selinux/config # chmod 644 /etc/selinux/config # echo "SELINUX=disabled" > /etc/selinux/config # echo "SELINUXTYPE=targeted" > /etc/selinux/config
Step-2 :
Update the system.
# yum update -y
Step-3 :
Install MariaDB Server and configure. Replace MyPassword with your own password.
# yum install mariadb-server mariadb -y # systemctl enable mariadb # systemctl start mariadb # mysql -e "create database owncloud" # mysql -e "create user 'owncloud'@'localhost' identified by 'MyPassword'" # mysql -e "grant all privileges on owncloud.* to 'owncloud'@'localhost'" # mysql -e "flush privileges"
Step-4 :
Install PHP 7.4 and some extensions.
# yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm # yum --enablerepo=remi-php74 install php php-bz2 php-mysql php-curl php-gd php-intl php-common php-mbstring php-xml php-zip php-posix -y
Step-5 :
Install Apache Web Server.
# yum install wget unzip httpd bzip2 -y # systemctl enable httpd # systemctl restart httpd
Step-6 :
Download latest OwnCloud Code and configure Apache Web Server.
# cd /var/www/html/ # wget https://download.owncloud.com/server/stable/owncloud-latest.tar.bz2 # tar -xvjf owncloud-latest.tar.bz2 # mv owncloud/* /var/www/html/ # rm -rf owncloud/ # chown -R apache:apache /var/www/html/
Step-7 :
Reboot the system.
# reboot
Step-8 :
Now Open Your Browser and type following Url and configure the OwnCloud.
http://<ip of your server>
Note – Replace <ip of your server> by your own server IP.
Step-9 :
Your OwnCloud Server is ready.
Step-10 :
Type http://ip-of-your-server and enjoy OwnCloud.