|
|
Linux AS3.0
Apache2.0.54+MySql4.0.25+php4.4.0
配置httpd.conf
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule php4_module modules/libphp4.so
#
在 LoadModule php4_module modules/libphp4.so 下加上一句
AddType application/x-httpd-php.php
接着
[root@localhost apache]# /usr/local/apache/bin/apachectl start
Syntax error on line 838 of /usr/local/apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more file extensions
谢谢 |
|