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

转载于:https://www.cnblogs.com/Tiago/p/5969329.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值