Problem with use PHP-FPM for sub and domains when suphp is default

Problem with use PHP-FPM for sub and domains when suphp is default

According CB2.0 FAQ I finally upgrade system. My options.conf for PHP

Code:

php1_release=5.3
php2_release=5.4
php1_mode=suphp
php2_mode=php-fpm


When I try add to one site .htaccess:

Code:

<FilesMatch \.php$>
    SetHandler php54-fcgi
</FilesMatch>


I get

Code:

Forbidden

You don't have permission to access /fastcgiphp54maxp/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


where maxp is user account name.

When I set

Code:

<FilesMatch \.php$>
    SetHandler php54-fcgi
</FilesMatch>


to site which have custom httpd.conf, like

Code:

|?DOCROOT=/home/gldd/domains/something.com/public_html/web|


then works fine.

Any suggestion what I need change to handler type for some pages, without define docroot everytime?

Comments are closed.