cPanel & WHM Version 82 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!
 

EasyApache 4 mod_fcgid

Hutina Teodor Silviu shared this idea 3 years ago
Completed

EA4 is great but without old mod_fcgid from EA3 ( https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html ) We can't limit the processes with mod_suphp or tune the system for users. We use mod_fcgid on over 100 servers with cPanel EA3 and everything is working perfect. We want to use EA4 for MultiPHP but without mod_fcgid we can't control the httpd system.


Basic example :


FcgidMaxProcesses - total num

FcgidMaxProcessesPerClass - max per user


Please consider adding it back.

Best Answer
photo

As Perkins indicated, we did get added to the WHM ui in version 62. At this time the mod_fcgi handlers are incompatible with MultiPHP.

For that reason, in order to use it you need to configure the Experimental Repo before you can install the mod_fcgi rpm. You can read more about both here:

https://documentation.cpanel.net/display/EA4/Apache+Module%3A+FCGId

https://documentation.cpanel.net/display/EA4/The+Experimental+Repository

Let me know if you have any other questions!

Comments (18)

photo
1

This made my day. We use mod_fcgid on all your Cloud servers with EA3 which is very fast , secure and stable + highly configurable. mod_fcgid with MultiPHP is awesome , uses low memory and low costs. No need to purchase multiple licenses to control users processes ( LiteSpeed , CloudLinux ).

+1 mod_fcgid.

photo
1

Mod_fcgid is the best , secure and fastest PHP Handler. We rely on this module from many years now , I don't know why cPanel have remove it/don't include it already since is working perfectly on EA3.

photo
1

This is on our radar, but hasn't started being worked on yet. As soon as there's more information we'll let you know!

photo
1

Hi benny.


Can we get information about the latest situation?

photo
2

Hi,

this is a must have before EA4 migration, or we need a feature equivalent alternative.

Facgi speed plus ability to limit per user process and global server processes while running php with the user account instead of the apache one, is absolutely a must have.

photo
3

It looks like we're starting work on this tomorrow! If all goes exactly as planned we could have it out within a couple weeks, but it may be as many as 4-6. We soon as there's any information to pass along, I'll let you know!

photo
1

Hi there! Would this be a replacement for FPM effort you guys been working on or would you end up offering both FPM & Fcgi in the end?

photo
1

I'm not sure about the long term plans, but I know that short term we're planning to provide both.

photo
1

ok, if I may drop by two cents, I would just concentrate effort on one or the other since it's about same thing, isn't it? Or am I missing a difference between those two?

photo
1

nothing to do with this fpm request.


For the moment we are talking about issues EA4 mod_fcgi module and the module can be used as php handler.


FPM is not suitable for use as the default module.

photo
1

Sure! I totally understand, and you can always as questions. They are essentially the same. In this case it's two different teams, and working on this one allows us to provide this much sooner than the cPanel & WHM version 60 release that we're waiting on for FPM.

photo
1

Michael, it is not? Cuz I thought starting with build 60, we're getting FPM as handler within MultiPHP section on WHM?

photo
1

Gotcha, good!!! cuz I've been waiting for FPM and was so disappointed that it wasn't a part of 58... :(


Thanks! Hope to have fcgi back soon!

photo
1

I do not say can not be done. :)


But it contains more specific configuration and structure of fpm handler.


CPanel is an easy thing if it would support active much earlier.


Of course, without any special configuration fpm - fastcgi it would be nice structure.

photo
1

Gotcha Michael. I've been following this fyi: https://features.cpanel.net/topic/enhance-fpm-support#comment-49237

photo
3

FPM is not the same as FastCGI, but they are similar. We are adding mod_fcgid to EA4, which provides the same FastCGI handler that we had in EA3.


FPM is going to be using mod_proxy_fcgi as it's backend.

photo
2

IMHO we need both, FPM is super fast for servers with few users using its shared opcache, mod_fcgid is much more useful on hige servers with thousand users, will make use of resources much more efficient, without th eneed to create an fpm pool for each user.

photo
1

Gotcha, I'm happy either way as long as I get fcgi working again!!! Waiting for FPM almost made me regret upgrading to EA4... didn't know about this until after I upgraded to EA4... (& too much work to go back)

photo
1

fastcgi works as a proxy. suphp and cgi or handler can be selected. fcgi handler does not currently support.

photo
1

After compiling ea4 the fpm, when not activated fpm, in the account is mysql components not active.

Is this a bug?

photo
1

Are we there yet? Are we there yet? :)

photo
1

Do we have any news when it will be ready?

photo
2

Hey everyone! Unfortunately it looks like this hasn't been started yet, and that it was erroneously moved to in-progress. There were some major bugs that were identified in EasyApache 4 that took precedence over getting this module built. I don't currently have an updated estimate, but as soon as we actually start working on this I will let everyone know! For now I'm going to move this back to planned from 'In-Progress' until we actually start the work here.


I know this will cause frustration, but I want you all to know that we're acutely aware of the hinderances this is going to cause our customers, and are discussing what we can do internally to help this situation. Please make sure that conversation here is kept directly related to this feature request, and follows the guidelines for discussion on the feature request site. If you have frustrations you'd like to express, feel free to email me, and I'll make sure your frustrations are heard by our developers: benny@cpanel.net

photo
1

Just so I know what to do... if I wanted to use FCGI, whether it's through fcgi or FPM within multiPHP with Cpanel 60, how long would it take?


I'm considering maybe going back to EA3 php5.6 just so that I can use fcgi. I feel like suphp + php7 on EA4 is really slowing down the site and I've been waiting for this update... but if the wait becomes longer,....


Let me know your thoughts?

photo
2

Seems like this is not a priority and other modules which ppl are not using or can be controlled are a priority.


FCGI is the most used module and it's not added by default on EA4 , way to go cPanel... I'm really frustrated.


Can't believe this. Thinking on switching back to EA3 , our plans are f up now.


Thank you , maybe it will be installed next year :))) we can't relay on cPanel.

photo
1

@JayPK PHP-FPM is going forth in version 60, for sure. Version 60 won't hit CURRENT for at *least* another 4-5 weeks. It's really on to you to decide what's best for you, but I hope that information helps!


@Hutina Postulating isn't really helpful in this discussion. Switching back to EA3 is definitely an option, and I encourage you to do that if you find it best for you and your users for now. The team responsible for EA3 and EA4 is grateful that you tried it out, but wouldn't at all want to prevent you from making decisions based on what's best for you and your users.

photo
2

Sad news.

mod_fcgid an important module and sad that this still has not come to the support.

I think cpanel is having difficulties in planning easyapache 4 roadmap.

photo
1

This is not good news. Many users uses this module in EA3. Also if someone wants to revert to EA3 from EA4 from a fresh install of Cpanel 58, he has no option of EA3 so he will wait for this module for a long time. Also if he want to use php-fpm instead this module he must wait 4-5 weeks at least for Cpanel60 and he will not be sure if he will have it for sure to work well.

photo
1

lolol so I guess I'm stuck then... I was thinking of going to EA3 until Cpanel 60 is ready... oh well....

photo
2

As we can see here https://forums.cpanel.net/threads/easyapache4-revert-to-easyapache3-on-freshinstall-whm-58.562021/

CpanelMichael says that "Please keep in mind this manual workaround is unsupported"

photo
2

I'm also waiting for this feature to arrive. Also realized it was unsupported after migrating dozens of servers to EA4 :(

I really hope you guys can release this feature before 2016 ends. Time flies when one is desperate :)

photo
2

Do we have any news about mod_fcgid module ? I believe that for any Cpanel user this is a necessary module and it must be top priority for Cpanel to have it in EA4

photo
3

No news yet! It's being tracked internally as case EA-4784, and as soon as there's an update I'll let everyone know here!

photo
1

Does PHP-FPM work with CloudLinux? If not we can't move to EA4 as we need opcache support, which only mod_fcgid or PHP-FPM can provide. Will mod_fcgid be implemented before cPanel/WHM v62 is released? If it was to be included in a later release, v64 for example, how would somebody running v60 migrate to it?

photo
1

Have you considered using LSAPI since you already have CloudLinux? I've changed from FCGI to LSAPI recently and it seems to be working well with EA4 (once I got the kinks out!)

photo
4

I have been using fcgid/MPM for years with good results (performance and security) and even built support for custom php.ini per domain. Lack of pure mod_fcgid support in EA4 is migration stopper for me.

photo
4

Hi,


We've begun work on adding FastCGI to EA4. At this time, we're targeting our cPanel & WHM code merges into v62, but we will be looking to have it backported into v60 if it's small enough. If we're unable to get this into v60, we'll over a knowledge base article on getting it setup manually :)

I'll keep everyone updated as we move along.

photo
2

Awesome. 2017 will be an ever more turbo charged cPanel year :-)

photo
1

That is good news. I hope to have it as soon as possible as it must be a basic part of cpanel

photo
1

Hi,


Any updates ?

photo
3

Hi,


We've built out the fcgid RPM, and we've gotten it working with Apache. We're working now on getting it running with MultiPHP and EA4 via the UIs.

Once we get this code merged into v62, I'll update this feature with the full info.

Thanks!

photo
2

Hi,


We've finished our first iteration of FastCGI w/EA4, and we've put supporting code into v62. At this time, there will not be a way to get this working on v60 or on v58. Only v62 will be supported for FastCGi at this time.


FastCGI handlers are incompatible with our current MultiPHP implementation, as FastCGI requires 'AddHandler', and we use 'Addtype' for MultiPHP. Since handlers have priority over mime types, that causes the conflict. There are going to be a few caveats to using FastCGI right now:

  • You can only set a single PHP version to use fcgid, similar to mod_php.
  • If you switch to FastCGI on the default PHP version, all hosts on the server will use that version of PHP, and FastCGI.
  • If you set multiple PHP versions to use FastCGI, the 'last' PHP version in the list sets it all
    For example, system default is ea-php70. If switch to FastCGI on ea-php71, and also for ea-php56, all hosts on the server are set with ea-php56 will use ea-php71+ fcgid instead of ea-php56 + fcgid, since ea-php71 is the last set in the php.conf
  • If you switch only a single account's primary domain to FastCGI, all domains whose document root fall in the same path will use that version of PHP with FastCGI.For example, if domain.com uses /home/domain/public_html, and addondomain.com uses /home/domain/public_html/addondomain/, and domain.com is switched to FastCGI, addondomain.com will also be switched.
  • On first installation, Apache will segfault out. Simply reinstall the package to fix. We're investigating in EA-5658


I hope that we are able to iterate on this during the v64 development cycle and improve the integration. At this time, RPMs are on the mirrors, and you can start using FastCGi in v62, which is in EDGE at this time.

photo
3

As Perkins indicated, we did get added to the WHM ui in version 62. At this time the mod_fcgi handlers are incompatible with MultiPHP.

For that reason, in order to use it you need to configure the Experimental Repo before you can install the mod_fcgi rpm. You can read more about both here:

https://documentation.cpanel.net/display/EA4/Apache+Module%3A+FCGId

https://documentation.cpanel.net/display/EA4/The+Experimental+Repository

Let me know if you have any other questions!

Comments have been locked on this page!