|
发表于 2004-1-9 12:49:10
|
显示全部楼层
[quote:65c8726331="barble"]I have resolved this problem.
Since apache can't run php, it means apache can't realize that when i request a php file, it should hand it over to the php engine to parse the file. As a result, it just to send the file i requested.
Here are what i done(in httpd.conf):
1) Load php module, add "LoadModule php4_module /usr/local/apache/libexec/libphp4.so". Obviously, libphp4.so must exists in the libexec directory;
2) Add php module. add this directive: "AddModule php4_module.c";
3) Add file type:
AddType application/x-httpd-php .php
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php-source .phps
4) restart apache server:
/etc/rc.d/init.d/httpd restart[/quote]
AddModule php4_module.c我插入这段话后.重启出错啊 |
|