yum 安装 epel-release
一·首先安装是CentOS 7.0的源。
yum install epel-release
#rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
查看可安装的包
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
开始安装
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
查看版本
php --version
二·#yum list httpd 安装httpd
三·下载并解压dokuwiki程序包(去网上找源码包稳定版)
wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
tar -zvxf dokuwiki-stable.tgz
把解压好的放到/var/www/htmlhttps://blog.csdn.net/wiki
mv dokuwiki-2017-02-19e/ /var/www/htmlhttps://blog.csdn.net/wiki
四·修改文件夹所属用户及组
chown -R apache:apache /var/www/htmlhttps://blog.csdn.net/wiki
五·启动
service httpd start
六. firewall 开通80端口 检查是否开通
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
七·访问网页
http://IP或者域名https://blog.csdn.net/wiki
过程中我遇到的错误就是
1)rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm报错 原因是没有下载rpm 使用命令是yum install rpm
2)重启的时候没有关防火墙应使用命令
systemctl stop firewalld
3)php得下载5.6 或者比5.6高的版本
4)在开通80端口时会报错FirewallD is not running
解决:1.通过systemctl status firewalld查看firewalld状态,发现当前是dead状态,即防火墙未开启
2.通过systemctl start firewalld开启防火墙,没有任何提示即开启成功。
3.再通过systemctl status firewalld查看firewalld状态,显示running即已开启了。
4.再次执行 firewall-cmd --zone=public --add-port=80/tcp --permanent 提示success,表示设置成功
- 点赞
- 收藏
- 分享
- 文章举报
- 由于CentOS的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题。
- 由于CentOS的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题
- Red Hat Enterprise Linux Server release 6.4 x64 安装 yum 源
- Red Hat Enterprise Linux AS release 4 (Nahant Update 4)yum及libaio安装
- (转)国内yum源的安装(163,阿里云,epel)
- Red Hat Enterprise Linux AS release 4 安装YUM
- CentOS 5.5 使用 EPEL 和 RPMForge 软件库,以及 yum 安装 LNMP
- 解决centos下yum install epel-release报错:CentOS No package nginx available.
- yum扩展源epel安装后无法使用
- epel yum 安装 trickle
- 解决CentOS的yum无法安装https来源的epel问题
- 为linux安装epel-yum仓库
- yum 使用epel里的源安装软件包
- 安装扩展源epel,yum下载rpm包
- 【yum】安装时报错Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- 【转】Red Hat Enterprise Linux Server release 6.5 安装yum 失败,依赖包,deltarpm = 3.5-0.5.20090913git.el6
- yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again
- 安装yum第三方源epel
- Red Hat Enterprise Linux AS release 4 安装YUM和配置yum源
- Red Hat Enterprise Linux AS release 4 安装YUM