FastCGI Process Manager (FPM) SAPI
now that php-fpm is part of php itself, how easy is it/ will it be to enable it in easyapache?I have revised the thread title to better describe the specific feature being requested. At the present time I am not aware of any short-term or long-term plans to officially support the FPM SAPI that was added in PHP version 5.3.3; however, if interest grows substantially and more feedback is received for the feature request then support for the FPM SAPI may be reconsidered in the future.
This thread may serve as the central discussion line for feedback about the FastCGI Process Manager (FPM) SAPI that was added in PHP version 5.3.3; please use this feature request to share any questions, concerns, and thoughts you have regarding implementation, including discussing problems that it may pose, what benefit or usefulness it may or may not have, and what issues are alleviated by supporting the FPM SAPI.
Your detailed feedback and discussion contributions are very much appreciated. Thank you.
Original thread: http://forums.cpanel.net/f145/case-46575-fastcgi-process-manager-fpm-sapi-new-php-5-3-3-a-161210.html
We are planning to release FPM with EasyApache 4. At this time, we are targeting BETA release of EasyApache 4 in cPanel & WHM 11.50.
For more information regarding EasyApache 4, please see this forum post:
http://forums.cpanel.net/f133/easyapache4-announcement-447882.html
We are planning to release FPM with EasyApache 4. At this time, we are targeting BETA release of EasyApache 4 in cPanel & WHM 11.50.
For more information regarding EasyApache 4, please see this forum post:
http://forums.cpanel.net/f133/easyapache4-announcement-447882.html
http://forums.cpanel.net/f189/php-fpm-fastcgi-apc-293802.html
Some sort of a workaround here, but it would be nice to see this implemented in Easyapache.
http://forums.cpanel.net/f189/php-fpm-fastcgi-apc-293802.html
Some sort of a workaround here, but it would be nice to see this implemented in Easyapache.
PHP-FPM will help a lot with needed memory of opcode caches such as xcache, apc, etc...
PHP-FPM will help a lot with needed memory of opcode caches such as xcache, apc, etc...
Having this on EasyApache will give us CloudLinux users a way to have a decent and working PHP setup that doesn't involve installing custom crons to avoid going out of memory only by a few sites.
Interesting comments at http://forums.cpanel.net/f5/apache-graceful-restarts-fastcgi-mod_fcgid-cant-lock-process-table-pid-151373.html
Having this on EasyApache will give us CloudLinux users a way to have a decent and working PHP setup that doesn't involve installing custom crons to avoid going out of memory only by a few sites.
Interesting comments at http://forums.cpanel.net/f5/apache-graceful-restarts-fastcgi-mod_fcgid-cant-lock-process-table-pid-151373.html
I think it would be awesome to see support for this in easyapache.
I think it would be awesome to see support for this in easyapache.
If anyone has a decent workaround in 11.36 + Apache 2.4 + PHP 5.4 I would appreciate it. It's such a moving target to try and recreate an old recipe on a later version. I'm happy to help document issues if you can get me started.... Guys, this seems to be the future and can avoid adding nginx.
If anyone has a decent workaround in 11.36 + Apache 2.4 + PHP 5.4 I would appreciate it. It's such a moving target to try and recreate an old recipe on a later version. I'm happy to help document issues if you can get me started.... Guys, this seems to be the future and can avoid adding nginx.
What are cPanel waiting for? Sometimes looks like they live in another world.. come on.. do you want to be one of those companies one step ahead? Or you want to be like those companies from the past? Come on.. show us some love!!
What are cPanel waiting for? Sometimes looks like they live in another world.. come on.. do you want to be one of those companies one step ahead? Or you want to be like those companies from the past? Come on.. show us some love!!
After a 4hour research why my APC cache kept flushing/restarting every few minutes/hours it turns out i need php-fpm. Seeing that this is part of php 5.3 it saddens me that there is no way to install this in cpanel.
Please create this option as it brings a correct working implementation of the popular APC to cpanel.
The reason this topic hasnt got much votes is simply because people don't understand to what good this leads to. I've come across so many questions, comments and problems with APC in cpanel that could actually get a valid answer.
Please fix this asap and save stackoverflow some bandwith!
After a 4hour research why my APC cache kept flushing/restarting every few minutes/hours it turns out i need php-fpm. Seeing that this is part of php 5.3 it saddens me that there is no way to install this in cpanel.
Please create this option as it brings a correct working implementation of the popular APC to cpanel.
The reason this topic hasnt got much votes is simply because people don't understand to what good this leads to. I've come across so many questions, comments and problems with APC in cpanel that could actually get a valid answer.
Please fix this asap and save stackoverflow some bandwith!
Please - at least give us a workaround. This is the only reasonable performance solution left as all others (that you support) have major drawbacks. This is even built into apache 2.4 so please do not limit the application.
Please - at least give us a workaround. This is the only reasonable performance solution left as all others (that you support) have major drawbacks. This is even built into apache 2.4 so please do not limit the application.
PHP-FPM is the ONLY method of fastcgi that allows opcode caches to share 1 cache storage a also not purge cache during recycles.
Please add it to easyapache!
PHP-FPM is the ONLY method of fastcgi that allows opcode caches to share 1 cache storage a also not purge cache during recycles.
Please add it to easyapache!
There is wide interest in this feature. This feature would help further secure cPanel as leading hosting software out there and really speed up our server and save valuable resources. Many thanks for all your work; Please implement!
There is wide interest in this feature. This feature would help further secure cPanel as leading hosting software out there and really speed up our server and save valuable resources. Many thanks for all your work; Please implement!
Be carefull though, all users sharing the same cache makes it dangerous to use APC's object cache as all sites can access and modify each others cache. The only way around this would be to run a seperate intance of php-fpm for each account multiple config files with 1 pool per config file.
I would be interested to know how http://cpxstack.sysally.net get's around letting users configure their URL rewrites…
Edit :
I've just seen their video that shows a user choosing their nginx rules, very nice indeed ! :)
Not sure how they manage to have both apache and nginx on the same port, but it seems the video seems to show exactly how it should be done.
Could cPanel look into working with them to get it checked by cPanel and implemented officialy by cPanel ?
Be carefull though, all users sharing the same cache makes it dangerous to use APC's object cache as all sites can access and modify each others cache. The only way around this would be to run a seperate intance of php-fpm for each account multiple config files with 1 pool per config file.
I would be interested to know how http://cpxstack.sysally.net get's around letting users configure their URL rewrites…
Edit :
I've just seen their video that shows a user choosing their nginx rules, very nice indeed ! :)
Not sure how they manage to have both apache and nginx on the same port, but it seems the video seems to show exactly how it should be done.
Could cPanel look into working with them to get it checked by cPanel and implemented officialy by cPanel ?
@monarobase:
i think theyve got nginx as a reverse proxy and easyapache is sitting in the background :)
@monarobase:
i think theyve got nginx as a reverse proxy and easyapache is sitting in the background :)
Very interested in this. Many experienced users that previously recommended mod_fcgid now recommend PHP-FPM instead.
Very interested in this. Many experienced users that previously recommended mod_fcgid now recommend PHP-FPM instead.
This http://us2.php.net/manual/en/intro.opcache.php replaced APC for a while now. And PHP's official opcache is built into 5.5 but also works with 5.3 and 5.4.
This http://us2.php.net/manual/en/intro.opcache.php replaced APC for a while now. And PHP's official opcache is built into 5.5 but also works with 5.3 and 5.4.
Based on what I've seen from other features. We may not have PHP-FPM support until 2015 the earliest. hehe
Fingers crossed.
Based on what I've seen from other features. We may not have PHP-FPM support until 2015 the earliest. hehe
Fingers crossed.
why the cpanel update cycle is to slow. How Long Will We Have to Wait ?
why the cpanel update cycle is to slow. How Long Will We Have to Wait ?
In my opinion, this is the most important piece of technology that cPanel is currently missing.
In my opinion, this is the most important piece of technology that cPanel is currently missing.
I'd like to see this within CPanel as well. In the meantime how about some in depth instructions on implementation?
I'd like to see this within CPanel as well. In the meantime how about some in depth instructions on implementation?
Depth instructions on implementation would be nice as well!
Depth instructions on implementation would be nice as well!
I have researched a lot and Apache 2.4 in Event MPM + php-fpm seems to be the best performance combination for php (no need to use Nginx + php-fpm).
Event MPM can be set in EasyApache, but php-fpm not. Why? As long as Cpanel offers PHP 5.5 (that has php-fpm built in), offering php-fpm is a must for Event MPM.
Otherwise, Event MPM becomes barely useless in the EasyApache purpose.
I have researched a lot and Apache 2.4 in Event MPM + php-fpm seems to be the best performance combination for php (no need to use Nginx + php-fpm).
Event MPM can be set in EasyApache, but php-fpm not. Why? As long as Cpanel offers PHP 5.5 (that has php-fpm built in), offering php-fpm is a must for Event MPM.
Otherwise, Event MPM becomes barely useless in the EasyApache purpose.
cP team, why is not developed? Please, add to your to-do list.
PHP-FPM is a basic feature option.
cP team, why is not developed? Please, add to your to-do list.
PHP-FPM is a basic feature option.
Agreed, let's get this into cPanel as an option (like yesterday!).
Agreed, let's get this into cPanel as an option (like yesterday!).
Guys, we really need it to better performance.
Do you recomend any plugin for this improvement?
Guys, we really need it to better performance.
Do you recomend any plugin for this improvement?
Just want to remind cpanel that the ideal setup if users are to have oopcode cache is to run a full php-fpm instance per user and not just have multiple pools. So there should be an option for admins who want to supply oopcode cache to have one instance of php-fpm + one single pool per user versus one single instance of php-fpm with multiple pools.
Lsapi (litespeed's PHP) already offers a similar option allowing a single shared oopcode cache per user that other users can't access
Just want to remind cpanel that the ideal setup if users are to have oopcode cache is to run a full php-fpm instance per user and not just have multiple pools. So there should be an option for admins who want to supply oopcode cache to have one instance of php-fpm + one single pool per user versus one single instance of php-fpm with multiple pools.
Lsapi (litespeed's PHP) already offers a similar option allowing a single shared oopcode cache per user that other users can't access
Uhm.... Please add support? Pretty please even?
Uhm.... Please add support? Pretty please even?
The php-fpm sapi does not work 100% well with Apache right now . Cpanel is not the people to blame as apache support is the culprit here . If you check in nginX land php-fpm is the only option here and its support is very mature. You have the option to use php-fpm with nginx at full swing if opting for cpanel plugins like http://ndeploy.in .
The php-fpm sapi does not work 100% well with Apache right now . Cpanel is not the people to blame as apache support is the culprit here . If you check in nginX land php-fpm is the only option here and its support is very mature. You have the option to use php-fpm with nginx at full swing if opting for cpanel plugins like http://ndeploy.in .
This is fairly simple to implement with apache 2.4+ and would be a huge boon to servers with busy sites. What's the holdup ?
This is fairly simple to implement with apache 2.4+ and would be a huge boon to servers with busy sites. What's the holdup ?
We are planning to release FPM with EasyApache 4. At this time, we are targeting BETA release of EasyApache 4 in cPanel & WHM 11.50.
For more information regarding EasyApache 4, please see this forum post:
http://forums.cpanel.net/f133/easyapache4-announcement-447882.html
We are planning to release FPM with EasyApache 4. At this time, we are targeting BETA release of EasyApache 4 in cPanel & WHM 11.50.
For more information regarding EasyApache 4, please see this forum post:
http://forums.cpanel.net/f133/easyapache4-announcement-447882.html
"At this time, we are planning to release FPM SAPI support with EasyApache 4."
What''s the ETA on that? Btw you can check this LINK, it can help with the implementation.
"At this time, we are planning to release FPM SAPI support with EasyApache 4."
What''s the ETA on that? Btw you can check this LINK, it can help with the implementation.
We're hoping to have an early beta of EA4 in 11.50, however this may change as the project evolves. We posted an announcement recently on our blog, I hope you have some time to check it out and provide some feedback!
http://blog.cpanel.net/easyapache-4-announcement/
We're hoping to have an early beta of EA4 in 11.50, however this may change as the project evolves. We posted an announcement recently on our blog, I hope you have some time to check it out and provide some feedback!
http://blog.cpanel.net/easyapache-4-announcement/
This would be the most welcomed feature ever ;)
This would be the most welcomed feature ever ;)
Any update on when we could expect to see the beta of EA4?
Any update on when we could expect to see the beta of EA4?
Here is the ChangeLog of 11.50 (Include the 1st EA4 version): https://documentation.cpanel.net/display/ALD/11.50+Change+Log
Here is the ChangeLog of 11.50 (Include the 1st EA4 version): https://documentation.cpanel.net/display/ALD/11.50+Change+Log
I have created a set of scripts for Apache 2.4 and PHP 5.4 (and up) on the current EA3 system. It requires a custom template for Apache and some values added for when EA runs.
My version creates a socket for each user, and the calls are passed via mod_proxy for the users. I am interested to see Cpanel's implementation of this.
If someone wants to look at the scripts I would be willing to share.
I have created a set of scripts for Apache 2.4 and PHP 5.4 (and up) on the current EA3 system. It requires a custom template for Apache and some values added for when EA runs.
My version creates a socket for each user, and the calls are passed via mod_proxy for the users. I am interested to see Cpanel's implementation of this.
If someone wants to look at the scripts I would be willing to share.
All we need is decent performance and per-user processing. mod_ruid2, mod_itk or fpm that allows user permissions AND is compatable with caching, modsec and opcache. not too much to ask is it?
All we need is decent performance and per-user processing. mod_ruid2, mod_itk or fpm that allows user permissions AND is compatable with caching, modsec and opcache. not too much to ask is it?
I dont want some 3rd party tools. I am paying cPanel 45$/month per server. And multiply that by milions of severs. I expect cPanel to implement this as somethinf native and bug-less. Everything beside that is complete fail.
I dont want some 3rd party tools. I am paying cPanel 45$/month per server. And multiply that by milions of severs. I expect cPanel to implement this as somethinf native and bug-less. Everything beside that is complete fail.
PHP-FPM is stable under a low load but I find crashes more often then litespeed's API under a high load. Cloudlinux's lsapi is more performant and will probably (if not already) soon be more stable like with native litespeed.
PHP-FPM is only secure with Opcache when a seperate instance is run per user. Lsapi has a processgroup method that makes it secure nativly.
If cPanel implements a config file / instance per user than PHP-FPM would be secure with opcache. However I don't see that hapening.
PHP-FPM is stable under a low load but I find crashes more often then litespeed's API under a high load. Cloudlinux's lsapi is more performant and will probably (if not already) soon be more stable like with native litespeed.
PHP-FPM is only secure with Opcache when a seperate instance is run per user. Lsapi has a processgroup method that makes it secure nativly.
If cPanel implements a config file / instance per user than PHP-FPM would be secure with opcache. However I don't see that hapening.
Is it really going to be available with EasyApache 4?
Is it really going to be available with EasyApache 4?
Same here. cPanel is standing in the way of our Nginx and php-fpm deployment, which is untenable. This needs a fast resolution.
Same here. cPanel is standing in the way of our Nginx and php-fpm deployment, which is untenable. This needs a fast resolution.
Right now is not a situation like its 100% not available. We have nginx + php-fpm implemented as a cPanel third party app ( listed in the cPanel app catalog ) for a very long time .Please check out https://support.sysally.net/projects/ndeploy/wiki
cPanel has a huge ecosystem and there are many dev's integrating their plugins with cPanel .
Right now is not a situation like its 100% not available. We have nginx + php-fpm implemented as a cPanel third party app ( listed in the cPanel app catalog ) for a very long time .Please check out https://support.sysally.net/projects/ndeploy/wiki
cPanel has a huge ecosystem and there are many dev's integrating their plugins with cPanel .
I wouldn't like to use a plugin, it's one more piece of software to worry about updates and future incompatibilities.
EasyApache 4 was around the corner, I don't know why it's taking so long...
I wouldn't like to use a plugin, it's one more piece of software to worry about updates and future incompatibilities.
EasyApache 4 was around the corner, I don't know why it's taking so long...
Hello,
EasyApache 4 is almost here! It's currently in EDGE, and we've provided a PHP-FPM RPM that you can install and get configured manually. We're hoping to extend cPanel functionality and support for FPM in the very near future, but this is a start!
Hello,
EasyApache 4 is almost here! It's currently in EDGE, and we've provided a PHP-FPM RPM that you can install and get configured manually. We're hoping to extend cPanel functionality and support for FPM in the very near future, but this is a start!
can we use easyapache 4 in a normal cpanel install? we really need fpm.
can we use easyapache 4 in a normal cpanel install? we really need fpm.
EasyApache 4 has been released to the CURRENT tier, which includes initial support for FPM.
EasyApache 4 has been released to the CURRENT tier, which includes initial support for FPM.
This tied into Cloudlinux yet? As in are the both of you on the same page?
This tied into Cloudlinux yet? As in are the both of you on the same page?
I'm pretty sure manual configuration means you'll have to set up the php-fpm pools by yourself for each user.
I'd go with mod_lsapi / lsphp for now from CloudLinux if you need something like FPM. Still in beta, but the lastest release works quite well.
I'm pretty sure manual configuration means you'll have to set up the php-fpm pools by yourself for each user.
I'd go with mod_lsapi / lsphp for now from CloudLinux if you need something like FPM. Still in beta, but the lastest release works quite well.
Yeah, I'll stick with lsapi, as it is faster than fpm anyways. Fpm is the way to go if you do t use CL. And Jacob, I was curious if CL monitoring aspects were tied into it yet. Based on your reply I'm guessing they don't tie into your betas.
Yeah, I'll stick with lsapi, as it is faster than fpm anyways. Fpm is the way to go if you do t use CL. And Jacob, I was curious if CL monitoring aspects were tied into it yet. Based on your reply I'm guessing they don't tie into your betas.
Hi,
As we stated, this is the first implementation of FPM inside EA4. There's a secondary feature request open ( https://features.cpanel.net/topic/enhance-fpm-support ) for expanding this support, which we hope to have in 11.54.
Hi,
As we stated, this is the first implementation of FPM inside EA4. There's a secondary feature request open ( https://features.cpanel.net/topic/enhance-fpm-support ) for expanding this support, which we hope to have in 11.54.
Replies have been locked on this page!