Re: PHP as fcgi daemon + FastCGI/Apache_1.3.37 Problem.. !
"Simon" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
It's very easy. You simply setup FcgiServer for each vhost with unique user/group and unix socket Then you use FastCgiExternalServer and point it to unique path of the vhost's docs and corresponding unix socket of FcgiServer. It is all in the docs, it's just a matter putting it together (my teacher called it inferring ;-) ) I do it like this: FastCgiServer "/usr/bin/php" -user user1 -group group1 -socket /tmp/fcgi/socket1... FastCgiServer "/usr/bin/php" -user user2 -group group2 -socket /tmp/fcgi/socket2... FastCgiExternalServer /path/vhost1/docs/php -user user1 -group group1 -socket /tmp/fcgi/socket1... FastCgiExternalServer /path/vhost2/docs/php -user user2 -group group2 -socket /tmp/fcgi/socket2... Then add global directives: Action php-fastcgi /php <Location "/php"> Options +ExecCGI SetHandler fastcgi-script </Location> And in each vhost that will use FCGI PHP: AddHandler php-fastcgi .php Good luck. -Simon --Original Message Text--- From: Ahmed Medhat Date: Fri, 22 Jun 2007 15:20:42 +0300 Hello, Here is my setup. 1. a separate php-fcgi daemon started with each user's uid/gid and having 4 child processes. 2. configuring lighttpd was just like a charm and took only 2 minutes to figure out how to configure and all what i needed was to tell lighttpd in the vhost configuration where to find the socket specified for this user. 3. i want to configure apache 1.3.37 to do the same, so each vhost i have will have it's own mother process started manually through a daemon script and will create a socket for this user. 4. i have php-5.2.3 configured as a cgi-fcgi and located in /usr/local/bin/php-cgi , apache is located under /usr/local/apache/. 5. please tell what to do next as i ABSOLUTELY can not find any single page or faq or configuration how-to or anything related to this setup which could help achieve this setup, again all i want to do is to configure each vhost in apache to communicate with php through it's own existing unix socket. -- Thanks in Advance Ahmed Medhat ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/