How to get php-fpm or php5-fpm running with Apache 2.4.2 on Ubuntu LTS 12.04?

12 posts / 0 new
Last post
#1 Mon, 07/02/2012 - 21:10
edealsbiz

How to get php-fpm or php5-fpm running with Apache 2.4.2 on Ubuntu LTS 12.04?

I've made a fresh install of Virtualmin on a Ubuntu LTS 12.04 minimal server and everything worked out fine (kudos!) but after a closer look I still had the old Apache 2.2.22 version, so I upgraded it to the latest version 2.4.2 and everything still works fine for Virtualmin but I can't get php-fpm or php5-fpm installed,,,

Libapache2-mod-fastcgi only works for apache up to 2.2 and mod-fastcgi is not found anywhere

Is there a way or a new method to get php-fpm or php5-fpm working with the latest Apache 2.4.2?

Eric

Mon, 07/02/2012 - 22:09
andreychek

Howdy,

Unfortunately, PHP-FPM isn't one of the supported PHP Execution Modes.

You can switch between CGI, FCGID, and mod_php in Server Configuration -> Website Options.

It may be supported one day, but there isn't support for that quite yet :-)

-Eric

Tue, 07/03/2012 - 11:12 (Reply to #2)
edealsbiz

Thanks for your prompt response, I'll try using one of the supported PHP Execution Modes but now I have a problem while configuring my default server:

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

" Your system has 11.72 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB.

Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page. It appears that DHCP is being used to dynamically configure your network interfaces, which can cause the DNS servers to be set based on settings provided by the DHCP server. Using a static IP address is strongly recommended with Virtualmin.

.. your system is not ready for use by Virtualmin. "

I have a static IP address and this is not a local test server but an online server...do I still have to add the 127.0.0.1 to the list of DNS servers?

Tue, 07/03/2012 - 12:05
andreychek

It's normally required that 127.0.0.1 be included in the list of nameservers if BIND is configured to host domains on your system.

However, which Linux distribution are you using there?

-Eric

Wed, 12/12/2012 - 19:30
eddieb

+1 for PHP-FPM as a supported PHP Execution Mode. What I need it if for enabling APC cache, and I can only do it with PHP-FPM or in Apache 2.4. Which one is likely to come to Virtualmin first?!

Sat, 12/08/2012 - 11:44
cgdhosting

Also, +1 for PHP-FPM as a supported PHP Execution Mode

Wed, 12/12/2012 - 19:09
tealnet

I'd like PHP-FPM support as well.

Mon, 12/31/2012 - 09:51
janeksikora

Me too. For now, I'l do it myself (in a very dirty way).

Fri, 01/04/2013 - 16:48
calvin

+100000

Sat, 01/05/2013 - 02:53
janeksikora

I've managed to do php-fpm&nginx with a 100 line script that is executing after creating/destroying vservers (it creates php-fpm pool for each host) and modyfing source of virtualmin-nginx module (so it uses sockets -- easier [sockets are like $user.socket] and faster [than TCP]). Wasn't so hard...

Sat, 06/08/2013 - 12:11 (Reply to #10)
WillSargent

If you would be willing to share that script, i believe you would be a hero of the forumns. It also might give Jamie some code to stick in a real module!

Sat, 06/08/2013 - 12:11 (Reply to #11)
WillSargent

If you would be willing to share that script, i believe you would be a hero of the forumns. It also might give Jamie some code to stick in a real module!

Topic locked