使用環境:虛擬機centos7php
一、下載安裝LAMP相關軟件html
[root@localhost yum.repos.d]# yum install httpd –ymysql
[root@localhost yum.repos.d]# yum install mariadb mariadb-server –ysql
[root@localhost yum.repos.d]# yum install php php-mysql php-gd php-imap php-ldap php-pear php-xml php-xmlrpc -y數據庫
二、關閉防火牆和SELINUX,啓動HTTP和mariadbapache
[root@localhost ~]# systemctl stop firewalldcentos
[root@localhost ~]# setenforce 0centos7
[root@localhost ~]# systemctl start httpdspa
[root@localhost ~]# systemctl start mariadbcode
三、將owncloud源碼上傳至centos7
四、解壓源碼包並設置權限
[root@localhost html]# chown -R apache.apache owncloud
五、登陸數據庫,建立並配置owncloud數據庫訪問權限
[root@localhost ~]# mysql -u root -p
六、重啓apache和mariadb服務,訪問owncloud雲盤系統