huayulian 发表于 2016-02-28 12:10

PHP显示源文件,不能正常运行,求解决

PHP显示源文件,不能正常运行,求解决

服务器有三个网站,前两个没问题,第三个网站显示的都是程序源码,或者打开时提示下载页面的对话框, 使用PHP测试页测试,显示403错误,无法访问,网站根目录权限已经修改为0777权限,还是不行,清高手赐教。

发个帖子发了好多遍,一直说不能发布带URL的文章,我都快哭了,好不容易编辑好的帖子,一下子没了。、。。。。。反复了好几次都不行。。。只能发文字了 。。。

huayulian 发表于 2016-02-29 00:00

错误日志IP地址 - - "GET /favicon.ico HTTP/1.1" 404 209
IP地址 - - "GET /test.php HTTP/1.1" 304 -
IP地址 - - "GET /test.php HTTP/1.1" 304 -
IP地址 - - "GET / HTTP/1.1" 304 -
IP地址 - - "GET / HTTP/1.1" 304 -
IP地址 - - "GET //index.php?g=Admin HTTP/1.1" 200 575
IP地址 - - "GET /index.php?g=Admin HTTP/1.1" 200 575
IP地址 - - "GET /index.php?g=Admin HTTP/1.1" 304 -
IP地址 - - "GET / HTTP/1.1" 304 -
IP地址 - - "GET / HTTP/1.1" 304 -
IP地址 - - "GET / HTTP/1.1" 304 -
IP地址 - - "GET / HTTP/1.1" 304 -
IP地址 - - "GET / HTTP/1.1" 200 873
IP地址 - - "GET / HTTP/1.1" 200 873
IP地址 - - "GET / HTTP/1.1" 200 873
IP地址 - - "GET / HTTP/1.1" 200 873
IP地址 - - "GET / HTTP/1.1" 200 873
IP地址 - - "GET /index.php HTTP/1.1" 200 575
IP地址 - - "GET /favicon.ico HTTP/1.1" 404 209
IP地址 - - "GET /favicon.ico HTTP/1.1" 404 209
IP地址 - - "GET /favicon.ico HTTP/1.1" 404 209
IP地址 - - "GET /index.php?g=Admin HTTP/1.1" 200 575
IP地址 - - "GET /favicon.ico HTTP/1.1" 404 209
IP地址 - - "GET /favicon.ico HTTP/1.1" 404 209
IP地址 - - "GET /hufen/ HTTP/1.1" 200 1770
IP地址 - - "GET /hufen/addfen.php HTTP/1.1" 200 3542
IP地址 - - "GET /Public/Conf/button_config.php HTTP/1.1" 200 1600

action08 发表于 2016-03-03 15:52

php环境不对

自己先测试一下phpinfo函数运行对不对??

huayulian 发表于 2016-03-05 06:45

action08 发表于 2016-03-03 15:52 static/image/common/back.gif
php环境不对

自己先测试一下phpinfo函数运行对不对??

测试了,服务器有三个网站,前两个都没问题,第三个开始就不行了,都是PHP环境。

action08 发表于 2016-03-06 09:17

显示php原文件就是php环境没搭好,自己troubleshoot一下

量子文123 发表于 2016-03-21 09:57

我们客户也经常出现这问题

bjstry 发表于 2016-04-19 09:49

很简单的环境搭建问题,你还是先学好如何搭建php环境吧。
页: [1]
查看完整版本: PHP显示源文件,不能正常运行,求解决