文件未找到。Apache + php-fpm

Vla*_*kic 5 php fastcgi apache2.2

当我使用没有 vhosts 的默认配置时,一切正常。但是当我添加虚拟主机时它不起作用..

以下是 vhost 的样子:

<VirtualHost *:80>

    ServerName example   
    ServerAlias example.com                                                                                                                                                                                                                                                   $
    ServerAdmin example@example.com
    DocumentRoot "/home/example/public_html"
    ErrorLog "/home/example/logs"
    CustomLog "/home/example/logs1.log" combined
    ScriptAlias /cgi-bin/ /home/example/cgi-bin/
    Alias /phpmyadmin /home/phpmyadmin

    <Directory "/home/example/public_html">
      AllowOverride All  
      Order allow,deny
      Allow from all
      DirectoryIndex index.php index.html index.htm default.htm
    </Directory>

   <Directory "/home/phpmyadmin">
      AllowOverride All  
      Order allow,deny
      Allow from all
      DirectoryIndex index.php index.html index.htm default.htm
      Options -Indexes
   </Directory>

</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

我也有这个httpd.conf

<IfModule mod_fastcgi.c>  
    FastCGIExternalServer /usr/sbin/php-fpm -host 127.0.0.1:9000
   AddHandler php-fastcgi .php  

    <LocationMatch "/status">
      SetHandler php-fastcgi-virt
      Action php-fastcgi-virt /usr/sbin/php-fpm.fcgi virtual
    </LocationMatch>

   Action php-fastcgi /usr/sbin/php-fpm.fcgi  
    ScriptAlias /usr/sbin/php-fpm.fcgi /usr/sbin/php-fpm  

    <Directory /usr/sbin>  
      Options ExecCGI FollowSymLinks  
      SetHandler fastcgi-script  
      Order allow,deny  
      Allow from all  
   </Directory>  
  </IfModule>
Run Code Online (Sandbox Code Playgroud)

当我访问页面时,我得到:

File not found.
Run Code Online (Sandbox Code Playgroud)

这是我在日志文件中得到的内容:

[2015 年 11 月 17 日星期二 19:50:00] [错误] [客户端 192.168.1.68] FastCGI:服务器“/usr/sbin/php-fpm”标准错误:主脚本未知

有什么解决办法吗?