redhat7.6 httpd配置php模块
2024-09-04 20:11:29
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信息配置正常
最新文章
- 【转】Intellij IDEA 14中使用MyBatis-generator 自动生成MyBatis代码
- Activity与Fragment
- Kafka集群配置说明
- Java 7 命令/工具 jcmd 使用详细解释
- Objective-C----MRC内存管理 、 自动释放池 、 面向对象三大特性及封装 、 继承 、 组合与聚合
- IOS中类似的。9.png图片
- Newton&#39;s Method
- mysql 时区 , 夏令时,冬令时
- 浅析深究什么是SOA?
- Spring定时器实现(二)
- Centos7.x:开机启动服务的配置和管理
- [SDOI2016]游戏
- 位运算符 &; | ~ ^ <;<; >;>;
- Git Learning3 Eclipse Tools(未完成)
- 使用Tenorshare iCareFone for mac为iPhone做系统修复
- (原)关于udp的socket发送数据耗时的问题探讨
- [SQL]T-Sql 递归查询(给定节点查所有父节点、所有子节点的方法)
- http连接优化与浏览器允许的并发请求资源数相关资料(整理转载)
- C 运算优先级口诀
- error_reporting 报错
热门文章
- 安装ipython[win/linux]
- ALSA driver--PCM Interrupt handle
- python连接oracle数据库报错";DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: ";解决方案
- etc/hosts文件详解
- pwnable.kr-balckjack-Writeup
- 7、Java类型转换
- Multism中的一些特殊元器件在哪里找
- linux配置放火墙开放端口
- Linux编程日常错误
- 【C语言】(数组)C语言字符串中的小写字母转换为大写字母