php在centos下的脚本没有解析的问题
2015-04-24 12:21
267 查看
如题,参考了许多,比如:http://serverfault.com/questions/523131/php5-is-installed-but-apache-is-displaying-php-as-uninterpreted-text-how-can-i
http://dev.antoinesolutions.com/php http://tecadmin.net/setup-httpd-with-fastcgi-and-php-on-centos-redhat/
最后,简单暴力的yum install php搞定了,汗
似乎在/etc/httpd/conf.d下多出了一个php.conf文件,内容如下:
http://dev.antoinesolutions.com/php http://tecadmin.net/setup-httpd-with-fastcgi-and-php-on-centos-redhat/
最后,简单暴力的yum install php搞定了,汗
似乎在/etc/httpd/conf.d下多出了一个php.conf文件,内容如下:
# # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. # <IfModule prefork.c> LoadModule php5_module modules/libphp5.so </IfModule> <IfModule worker.c> LoadModule php5_module modules/libphp5-zts.so </IfModule> # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php # # Uncomment the following line to allow PHP to pretty-print .phps # files as PHP source code: # #AddType application/x-httpd-php-source .phps
相关文章推荐
- centos执行脚本没有权限问题
- 关于centOs下Apache不解析php文件问题的解决方法
- CentOS 7 下php安装所遇问题故障解析
- Nginx解析PHP问题
- #180305nginx解析php出现502 Bad的问题
- Centos php项目发布问题
- unity3d、MonoDevelop脚本编辑没有代码智能提示问题
- 【PHP】定时计划没有执行PHP脚本以及解决方案
- php解析XML和AJAX时乱码问题的解决
- .net Url.Encode 跳转到PHP解析问题
- PHP二维数组的去重问题解析
- LR_问题_脚本运行时提示没有参数化
- crontab 配置问题 没有执行php文件
- 解析PHP中一些可能会被忽略的问题
- 解析PHP中的file_get_contents获取远程页面乱码的问题
- 如何在没有外网的情况下,通过Centos系统光盘创建yum源,解决rpm包依赖性问题
- 关于centos7下/etc/sysconfig/目录没有iptables问题
- php命令行(cli)下执行PHP脚本文件的相对路径的问题解决方法
- php 发送邮件(HTML)解析乱码问题(多余叹号!等)
- Qt 或者VS配置问题:无法解析的外部符号,无法打开包括文件,,都可归结为 没有配置好