install OwnCloud9 on CentOS7

OwnCloud9下载地址:

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 is www.

//配置上传文件大小,配置文件路径根据具体情况而定。修改前需备份。

#vi .htaccess

php_value upload_max_filesize 10240M
php_value post_max_size 10240M
php_value memory_limit 10240M

#vi /opt/rh/php55/root/etc/php.ini

upload_max_filesize = 10240M

post_max_size = 10240M

//重启apache

#systemctl restart httpd

上一篇:Git 版本管理基本操作


下一篇:bzoj4554: [Tjoi2016&Heoi2016]游戏(二分图匹配)