谢谢大家,问题解决
我装redhat9时,选装了apache.radhat9里的apache里有一行大概是load cunf.d/*.conf ,把/etc/httpd/conf.d/php.conf里的东西只留下loadmodul php4.so就行了。
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter handle files with a .php extension.
#
#<Files *.php>
# SetOutputFilter PHP
# SetInputFilter PHP
# LimitRequestBody 524288
#</Files>
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
#DirectoryIndex index.php