LinuxSir.cn,穿越时空的Linuxsir!

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

php无法执行

[复制链接]
发表于 2003-6-19 21:08:49 | 显示全部楼层 |阅读模式
按精华区的帖子,小弟装了apache+php+mysql
启动apache服务后,可以浏览网页了,但是简单的php语句却无法执行,不知是什么原因?能不能提供个httpd.conf让小弟参考一下?
发表于 2003-6-20 09:42:01 | 显示全部楼层
同样问题,
运行PHP文件的时候把源程序显示出来了~~
发表于 2003-6-20 11:55:09 | 显示全部楼层
如果软件编译好的话
在srm.conf
文件中添加如下内容看看
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php .php3 .htm .phtml .php4
DirectoryIndex index.htm index.html index.php3 index.php default.php
发表于 2003-6-20 15:27:15 | 显示全部楼层
在apache2x中 httpd.conf里面加
<Files *.php>
xxxxx
</Files>
也不行
发表于 2003-6-22 16:11:45 | 显示全部楼层
问题一样,关注ing......

按照资料,编译安装一切顺利,就是输入
IP/info.php显示出info.php的源码。
发表于 2003-6-22 17:13:05 | 显示全部楼层
重新编译apache和php,把php编译成静态模块,参考站内文章。
其实使用发行版自带的也能马上工作的。
发表于 2003-6-23 16:47:46 | 显示全部楼层
我的版本为:Apache 2.0.43  PHP-4.3.0
好像不支持静态安装。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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