owncloud8 php,owncloud-8.2.3

安装依赖Red Hat Enterprise Linux and CentOS 6 still ship with PHP 5.3. ownCloud requires PHP 5.4 or better. There are

several third-party repositories that supply PHP 5.4, but you must use the Software Collections (SCL) repository to be

in compliance with your RHEL support contract, and not any other third-party repository.

owncloud需要php5.4版本以及以上,而centos 6默认只安装php5.3.不符合要求,所以先全部卸载php相关组件rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm  (下载最新的源)yum install php54w  php54w-bcmath php54w-cli php54w-common  php54w-devel php54w-fpm    php54w-gd php54w-imap  php54w-ldap php54w-mbstring php54w-mcrypt php54w-mysql   php54w-odbc   php54w-pdo   php54w-pear  php54w-pecl-igbinary  php54w-xml php54w-xmlrpc php54w-opcache php54w-intl php54w-pecl-memcacheSCL 可用于 CentOS 6.5 及更新的版本。要配置 SCL 源:

yum install centos-release-SCL

要启用和运行 SCL 中的应用,你还需要安装下列包:

yum install scl-utils-build

接着:

yum install php54 php54-php php54-php-gd php54-php-mbstring

yum install php54-php-mysqlnd

2.安装apache web程序

yum install httpd

4.php和apache安装好后,设置apache的主目录,并禁用apache默认的 php5.3模块mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php53.offvi /etc/httpd/conf/httpd.conf

将documentroot的路径改为/var/www/html/owncloud

# DocumentRoot: The directory out of which you will serve your

# documents. By default, all requests are taken from this directory, but

# symbolic links and aliases may be used to point to other locations.

#

DocumentRoot "/var/www/html/owncloud"

#

# Each directory to which Apache has access can be configured with respect

# to which services and features are allowed and/or disabled in that

# directory (and its subdirectories).重启httpd

service httpd restart

3.安装mysql 数据库,并设置好root密码yum install mysql mysql-devel mysql-server

设置Mysql密码:

mysql_secure_installation

4.浏览器输入http://localip 进入owncloud设置界面

5209b10450367935829b55b3bce55b29.png

选择数据库引擎---> Mysql

输入刚设置好的mysqlroot账户密码和数据库名(这个自己定义,随便都OK)

最上面是管理员账号,设置好你想要的名字就OK了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值