Welcome! Log In Create A New Profile

Advanced

[Debian] Need pointers/help on setting up Apache/FastCGI/PHP-FPM

Posted by Xeross 
Hey,

I tried setting up the Apache HTTPD together with the FastCGI module
and PHP-FPM however all I got was blank pages, none of the logs I
looked at (Syslog, php, apache) gave any errors.

Now I'm not sure if the following setup is possible with PHP-FPM so
I'll just ask that first
- Decrease memory usage over mod_php usage
- Run script as user that owns it
- Not too much performance loss

A few pointers on how to set it up on debian would be nice, people
couldn't discover anything wrong with the way I set it up but it
didn't work so something must've been wrong.

Thank you for your time, Xeross
Re: [Debian] Need pointers/help on setting up Apache/FastCGI/PHP-FPM
July 27, 2010 04:28PM
On Tue, Jul 27, 2010 at 1:19 PM, Xeross <xeross@theelitist.net> wrote:
> Hey,
>
> I tried setting up the Apache HTTPD together with the FastCGI module
> and PHP-FPM however all I got was blank pages, none of the logs I
> looked at (Syslog, php, apache) gave any errors.
>
> Now I'm not sure if the following setup is possible with PHP-FPM so
> I'll just ask that first
> - Decrease memory usage over mod_php usage
> - Run script as user that owns it

You can't dynamically do this. It's not like suexec. You can make as
many pools with uid/gids as you want, you just have to determine how
you want to route the request to each pool (typically I map each unix
user to a pool so they can really only do damage to /home/themselves)

> - Not too much performance loss

I haven't used mod_php in forever but I can tell you the performance I
get on PHP-FPM is fantastic and I cannot complain. I am sure someone
must have some benchmarks (although depending on the apache MPM I am
sure you can get a lot of varied benchmarks)

> A few pointers on how to set it up on debian would be nice, people
> couldn't discover anything wrong with the way I set it up but it
> didn't work so something must've been wrong.

Post php-fpm config, apache config, etc. Most people I think typically
prefer the nginx/PHP-FPM combination but you should be able to find
plenty of people who use Apache as well
I only figured where I did the configuration wrong after I used the "slow"
;P php-cgi. Then I got one god blessed error message.

You can try this.

But here in my case I made a harder move to nginx, from traditional apache +
mod_php.

I've use only this command to put php-cgi online:

php-cgi -b 127.0.0.1:9000 &




On Tue, Jul 27, 2010 at 5:27 PM, Michael Shadle <mike503@gmail.com> wrote:

> On Tue, Jul 27, 2010 at 1:19 PM, Xeross <xeross@theelitist.net> wrote:
> > Hey,
> >
> > I tried setting up the Apache HTTPD together with the FastCGI module
> > and PHP-FPM however all I got was blank pages, none of the logs I
> > looked at (Syslog, php, apache) gave any errors.
> >
> > Now I'm not sure if the following setup is possible with PHP-FPM so
> > I'll just ask that first
> > - Decrease memory usage over mod_php usage
> > - Run script as user that owns it
>
> You can't dynamically do this. It's not like suexec. You can make as
> many pools with uid/gids as you want, you just have to determine how
> you want to route the request to each pool (typically I map each unix
> user to a pool so they can really only do damage to /home/themselves)
>
> > - Not too much performance loss
>
> I haven't used mod_php in forever but I can tell you the performance I
> get on PHP-FPM is fantastic and I cannot complain. I am sure someone
> must have some benchmarks (although depending on the apache MPM I am
> sure you can get a lot of varied benchmarks)
>
> > A few pointers on how to set it up on debian would be nice, people
> > couldn't discover anything wrong with the way I set it up but it
> > didn't work so something must've been wrong.
>
> Post php-fpm config, apache config, etc. Most people I think typically
> prefer the nginx/PHP-FPM combination but you should be able to find
> plenty of people who use Apache as well
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready