我在Cent OS 5中安装了PHP,Apache,Tomcat
Tomcat和Apache一起工作良好。
但PHP! 这是问题。
PHP内部的源是这个
<?php phpinfo(); ?> //This works well only if the Filename is index.html but doesn't work if it's index.php..
我在linux和php中都没有简短的知识。
希望我的问题是正确的。 谢谢
在你的httpd.conf添加这样一行:
AddType application/x-httpd-php .php .php3 .php4 .php5
然后重新启动Apache,你就这样了:)
如果你想将index.php作为默认页面添加
DirectoryIndex index.php index.html
在您的Apache虚拟主机条目中。