php5-fpm with apache prefork?

Discussion in 'ISPConfig 3 Priority Support' started by arraken, Jan 20, 2014.

  1. arraken

    arraken Member

    Hi!

    I want to install php5.5 (PHP-FPM) on my servers, as described in falkos new tutorial: http://www.howtoforge.com/how-to-bu...ache-and-apcu-for-ispconfig3-debian-wheezy-p2

    However I have a question: My apache runs in prefork mode, as i can see with apache2ctl -l:

    Code:
    Compiled in modules:
      core.c
      mod_log_config.c
      mod_logio.c
      prefork.c
      http_core.c
      mod_so.c
    
    But whenever I see information regarding php-fpm, they talk about running apache2 in worker mode.

    So does it make sense to use apache2-prefork with php5-fpm, or is that rather useless? Or should I switch to worker (however, i don't know if that plays well with ispconfig, and how I should do that exactly..)? I'm a bit confused about the best option here.

    My original server installation is after this tutorial: http://www.howtoforge.com/perfect-server-ubuntu-12.04-lts-apache2-bind-dovecot-ispconfig-3-p4 (split up into multiserver)
     
    Last edited: Jan 20, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    apache prefork is working fine with php-fpm and php fpm is supported by the perfect setup guides. fpm is basically a newer version of fcgi interface, so it makes sense to use it with apache prefork.
     
    victortruica likes this.
  3. arraken

    arraken Member

    Ok, thanks for the info!

    Does anything speak against switching to mpm-worker anyway? Aside from not being able to use mod_php?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Nothing in general as ispconfig uses fcgi for the interface. But it depends on your setup, if you use phpmyadmin, roundcube or squirrelmail, then they will fail as soon as you remove mod_php.
     
  5. arraken

    arraken Member

    Ok, thanks!

    One more Question: the tutorial (from falko) for installing php 5.5 is for Debian Wheezy. Do you think this can also work for ubuntu 12.04, or do I have expect some serious problems there?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess it should work for ubuntu as well.
     
  7. arraken

    arraken Member

    A bit late, but just fyi: it works perfectly with ubuntu 12.04 too. Used it on our ISPConfig Webserver, and also on a standalone develpment-webserver without ISPConfig.
     

Share This Page