标签:
WonCloud9下载地址:
https://download.owncloud.org/community/owncloud-9.1.1.zip
//安装配置数据库
#yum install mariadb-server mariadb
# systemctl start mariadb
# systemctl enable mariadb
# mysql_secure_installation
//安装配置apache服务器、php
# yum install httpd
# systemctl start httpd
# systemctl enable
# yum install centos-release-scl -y
# yum install php55 php55-php php55-php-gd php55-php-mbstring php55-php-mysqlnd -y
# cp /opt/rh/httpd24/root/etc/httpd/conf.d/php55-php.conf /etc/httpd/conf.d/
# cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-php55-php.conf /etc/httpd/conf.modules.d/
# cp /opt/rh/httpd24/root/etc/httpd/modules/libphp55-php5.so /etc/httpd/modules/
# systemctl restart httpd
# unzip owncloud-9.1.1.zip
# ls
info.php owncloud owncloud-9.1.1.zip
//新建数据库
# mysql -u root -h 127.0.0.1 -p
MariaDB [(none)]> show databases;
MariaDB [(none)]> create database ocld;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> show databases;
MariaDB [(none)]> quit;
//修改目录权限
参考【https://doc.owncloud.org/server/9.1/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions】
#chown -R apache:apache /var/www/html/owncloud
#chmod 0770 owncloud
You can find your HTTP user in your HTTP server configuration files. Or you can use PHP Version and Information(Look for the User/Group line).
- The HTTP user and group in Debian/Ubuntu is
www-data
.- The HTTP user and group in Fedora/CentOS is
apache
.- The HTTP user and group in Arch Linux is
http
.- The HTTP user in openSUSE is
wwwrun
, and the HTTP group iswww
.
标签:
原文地址:http://www.cnblogs.com/Tiago/p/5969329.html