由 许昂 在 12-29-2003 03:56 发表:
mysql +php +apache配置完成,mysql能起动,但是apache却有问题?
127.0.0.1能打开 index.html
但127.0.0.1/index.php 打开仍然显示<?(info) ; ?>
#/opt/apache/bin/apachectl start
Syntax error on line 840 of /opt/apache/conf/httpd.conf:
AddType requires at least two arguments,a mime type followed by one or more
file extensions
这与与此何干?
由 许昂 在 12-29-2003 09:38 发表:
840行我是这样做的:
更改apache的配制文件:目的是让apache能解释php程序。
找到839行#AddType application/x-tar .tgz 这行,在下面加一行。前面不要加#号。
AddType application/x-httpd-php .php
找到下面一行在后面加上index.php,这表示网站的默认页也能够为index.php
DirectoryIndex index.html index.html.var index.php
注意:改变了http.conf后,要重启apache服务器
但还是有错误?
由 许昂 在 12-29-2003 10:25 发表:
Syntax error on line 840 of /opt/apache/conf/httpd.conf:
AddType requires at least two arguments,a mime type followed by one or more file extensions
怎么办???
由 fanf 在 12-29-2003 11:36 发表:
不太