On 02/03/2010 09:55 PM, dinar qorbanof wrote:
i think you can do what you want. create several wrapper "php-cgi"
scripts each in its own directory and for all of them it and that
directory of it should be with both user and group = user of it (and
wrapper script should be executable). drupal php files can be owned by
any user and group.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See<URL:http://httpd.apache.org/userslist.html>  for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
    "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


I'm doing the same here.

Here's my config (in httpd.conf):

-----------------------------------------------------------------------

FastCgiSuexec bin/suexec

FastCgiConfig -singleThreshold 1 -minProcesses 2 -maxProcesses 10 -maxClassProcesses 5 -autoUpdate -idle-timeout 180 -pass-header HTTP_AUTHORIZATION

AddHandler fastcgi-script .fcgi

Include conf/extra/php.conf

In php.conf -

DirectoryIndex index.html index.php

AddType text/html .php

AddHandler php-fastcgi .php

<FilesMatch "\.php$">

        Options +ExecCGI

</FilesMatch>

In VHOST-

SuexecUserGroup user group

ScriptAlias /cgi-bin/ /path-to-cgi-bin/

<Directory /path-to-cgi-bin/>

Order allow,deny

Allow from All

SetHandler fastcgi-script

</Directory>

Action php-fastcgi /cgi-bin/php.fcgi

In php.fcgi-

#!/bin/bash

exec /usr/local/bin/php-cgi $@

---------------------------------------------

But this shows me a blank page. The same code is being used by many people as written on their blogs when I searched on Google. How come doesn't work here ?

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to