apache识别不了.php, ls命令看到的php文件名全都带星号 index.php*
系统Linux gud.gudvoiz.com 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:23:01 EDT 2011 i686 i686 i386 GNU/Linuxphp.conf文件如下
# SuPHP configuration for PHP5
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddType application/x-httpd-php5 .php5 .php .php3 .php2 .phtml
<Directory />
    suPHP_AddHandler application/x-httpd-php5
</Directory># SuPHP configuration for PHP4
AddType application/x-httpd-php4 .php4
<Directory />
    suPHP_AddHandler application/x-httpd-php4
</Directory>

解决方案 »

  1.   

    现在问题如下:
    1.php文件改成root用户777权限, 则apache error log报file is writeable by group
    2.如果改成root用户775权限,则报UID of script "***" is smaller than min_uid
    3.如果把php文件都改成apache用户和用户组,则报Mismatch between target UID (99) and UID (48) of file ***"我查看了apache的进程,启动用户是root
      

  2.   

    php.conf 是做什么用的
    好像只有 httpd.conf 吧?
      

  3.   

    php.conf 就是apache对php支持的conf文件啊我把php文件的用户和用户组都改成nobody(99), 可以运行了。。
    为什么在其他机器上的用户和用户组都是root也能运行?