title: FastCgiExternalServer: redefinition of previously defined class
body: <p>I know this apache / php error has been asked many times here, and I know that FastCgiExternalServer can be defined only once with the same name.</p>
  
  <p>However I still can't get rid off this problem. My setup is very simple, I have two virtual hosts. I removed the global fastcgi handler I had in \etc\apache2\conf.d\php5-fpm.local.conf.</p>
  
  <p>In \etc\apache2\sites-enabled I have only 2 sites, default.conf and phpmyadmin.conf</p>
  
  <p>Default.conf :</p>
  
  <pre><code>&lt;IfModule mod_fastcgi.c&gt;
      &lt;FilesMatch \.php$&gt;
          SetHandler php5-fcgi
      &lt;/FilesMatch&gt;
                  Action php5-fcgi /php5-fcgi
                  Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
                  FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
          &lt;/IfModule&gt;
  </code></pre>
  
  <p>phpmyadmin.conf :</p>
  
  <pre><code>&lt;IfModule mod_fastcgi.c&gt;
      &lt;FilesMatch \.php$&gt;
          SetHandler phpmyadmin-fcgi
      &lt;/FilesMatch&gt;
           Action phpmyadmin-fcgi /php5-fcgi-phpmyadmin virtual
           Alias /php5-fcgi-phpmyadmin /usr/lib/cgi-bin/phpmyadmin-fcgi
           FastCgiExternalServer /usr/lib/cgi-bin/phpmyadmin-fcgi -socket /var/run/phpmyadmin-fpm.sock -pass-header Authorization
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>and I still get this error. To be SURE I have not used the same name in some hidden configuration file, I tried some stupid name in phpmyadmin.conf, like </p>
  
  <pre><code>     Alias /php5-fcgi-phpmyadmin /usr/lib/cgi-bin/pleasework
       FastCgiExternalServer /usr/lib/cgi-bin/pleasework -socket /var/run/phpmyadmin-fpm.sock -pass-header Authorization
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$apache2ctl configtest
  Syntax error on line 15 of /etc/apache2/sites-enabled/phpmyadmin.conf:
  FastCgiExternalServer: redefinition of previously defined class "/usr/lib/cgi-bin/pleasework"
  Action 'configtest' failed.
  </code></pre>
  
  <p>I really do not know where the problem is coming from.</p>