永发信息网

php文件不能解析

答案:2  悬赏:0  手机版
解决时间 2021-04-05 14:43
  • 提问者网友:欲劫无渡
  • 2021-04-04 16:48
php文件不能解析
最佳答案
  • 五星知识达人网友:杯酒困英雄
  • 2021-04-04 18:12
html文件能访问说明web服务器是正常运行的,这个问题是由于你的apache服务器的脚本解释器没有配置好,

LoadModule "php静态库名.so"

找到


#在此标签末尾加上php的路径映射
ScriptAlias /cgi-bin/ "...../Apache Software Foundation/Apache2.2/cgi-bin/"
ScriptAlias /php/ "....../php-5.2.6-Win32/"



#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
.
.
.
#在下面加入MIME类型,服务器根据MIME类型来调用想用的脚本解释器

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php

#AddHandler php5-script php, 我这里用的是windows
Action application/x-httpd-php "/php/php-cgi.exe"
全部回答
  • 1楼网友:青尢
  • 2021-04-04 18:37
检查下配置!
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯