install OwnCloud9 on CentOS7
Posted 鬱巷里
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了install OwnCloud9 on CentOS7相关的知识,希望对你有一定的参考价值。
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
.
以上是关于install OwnCloud9 on CentOS7的主要内容,如果未能解决你的问题,请参考以下文章
How to install VNC server on CentOS 6