centos7 install owncloud

OwnCloud is a file hosting service software, which is the cloud storage we usually use, but this is to build our own private cloud on the server of our host. OwnCloud uses the AGPLv3 protocol to release. This project is based on PHP and SQLite, MySQL, Oracle or PostgreSQL databases, so it can run on all platforms.
wget https://download.owncloud.org/community/owncloud-10.0.2.zip
#Download owncloud compressed package yum install -y httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php- pdo wget vim #Install the dependency package
unzip owncloud-10.0.2.zip -d /var/www/html/
#Unzip owncloud to the apache directory chown -R apache.apache /var/www/html/owncloud/ #authorize, If you do not perform this step, you will see 500
systemctl start httpd
#Start apache systemctl start mariadb #Start the database
systemctl stop firewalld #Turn off the firewall
setenforce 0 #Close selinux
mysql #Log in to the database
create database owncloud;
create user'owncloud'@'localhost' identified by '123456';
grant all on owncloud.* to'owncloud'@'%';
flush privileges;
#Create user and authorize access ip/owncloud/index.php will appear below This error report
centos7 install owncloud
requires the php5.6 version to let us go back to the server and check php -v to
centos7 install owncloud
see that the php version on the server is 5.4.16. What we need to do now is to upgrade php
rpm -Uvh https://mirror.webtatic .com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm #Update download yum source of
php yum remove php-common #Uninstall installed php
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring #Reinstall php5.6
systemctl restart httpd #Restart http service

Guess you like

Origin blog.51cto.com/14954090/2540772