1.安装php

yum install "*php*"   -y

2.编辑httpd.conf配置文件

找到LoadModule foo_module modules/mod_foo.so 在下面添加

LoadModule php5_module        modules/libphp5.so

找到AddType

添加

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

重启服务

3.找到httpd.conf配置文件

添加

index.php

重启服务

4.访问测试

创建index.php文件添加内容

<?php

  phpinfo();

?>

直接访问域名,能看到php信息配置正常

最新文章

  1. 【转】Intellij IDEA 14中使用MyBatis-generator 自动生成MyBatis代码
  2. Activity与Fragment
  3. Kafka集群配置说明
  4. Java 7 命令/工具 jcmd 使用详细解释
  5. Objective-C----MRC内存管理 、 自动释放池 、 面向对象三大特性及封装 、 继承 、 组合与聚合
  6. IOS中类似的。9.png图片
  7. Newton&#39;s Method
  8. mysql 时区 , 夏令时,冬令时
  9. 浅析深究什么是SOA?
  10. Spring定时器实现(二)
  11. Centos7.x:开机启动服务的配置和管理
  12. [SDOI2016]游戏
  13. 位运算符 &amp; | ~ ^ &lt;&lt; &gt;&gt;
  14. Git Learning3 Eclipse Tools(未完成)
  15. 使用Tenorshare iCareFone for mac为iPhone做系统修复
  16. (原)关于udp的socket发送数据耗时的问题探讨
  17. [SQL]T-Sql 递归查询(给定节点查所有父节点、所有子节点的方法)
  18. http连接优化与浏览器允许的并发请求资源数相关资料(整理转载)
  19. C 运算优先级口诀
  20. error_reporting 报错

热门文章

  1. 安装ipython[win/linux]
  2. ALSA driver--PCM Interrupt handle
  3. python连接oracle数据库报错&quot;DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: &quot;解决方案
  4. etc/hosts文件详解
  5. pwnable.kr-balckjack-Writeup
  6. 7、Java类型转换
  7. Multism中的一些特殊元器件在哪里找
  8. linux配置放火墙开放端口
  9. Linux编程日常错误
  10. 【C语言】(数组)C语言字符串中的小写字母转换为大写字母