LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 731|回复: 6

问大家一个PHP问题

[复制链接]
发表于 2003-12-15 22:04:47 | 显示全部楼层 |阅读模式
我的APACHE不能解释PHP,但是我的httpd.conf文件明明加载了可以解释PHP的模块,为什么?请大家指点指点!谢谢
发表于 2003-12-16 02:26:27 | 显示全部楼层
Do u have a such line at httpd.conf ?

AddType application/x-httpd-php .php .html

otherwise /your_path_to_apache/httpd -l to list charged module

/your_path_to_apache/httpd is apache binary file.
 楼主| 发表于 2003-12-16 09:09:25 | 显示全部楼层

re

Sure!!!
发表于 2003-12-16 17:27:28 | 显示全部楼层
Well, as shown below, the first one does have php module charged into httpd, and the second one is not. what's your output?

base#/usr/local/apache/bin/httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_access.c
  mod_auth.c
  mod_auth_db.c
  mod_proxy.c
  mod_expires.c
  mod_so.c
  mod_setenvif.c
  mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec


bash# /usr/sbin/httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  mod_keynote.c
  mod_ssl.c
suexec: disabled; invalid wrapper /usr/sbin/suexec
 楼主| 发表于 2003-12-16 18:47:20 | 显示全部楼层

re

还有,就是用普通用户是不是不能测试APACHE页呢?我的意思是我普通用户在浏览器上输入"127.0.0.1"出现You don't have permission to access / on this server.不能出现APACHE测试页
发表于 2003-12-16 18:55:32 | 显示全部楼层
127.0.0.1 is a loop back (lo) network address, try to use a true IP.
Surly normal user can check apache test page, otherwise http worth nothing...
 楼主| 发表于 2003-12-16 18:56:00 | 显示全部楼层

re

不对,但是80端口被禁!再弄弄看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表