Installing FastCGI, or working with other PHP handlers
I have a few sites that use MySQL instead of MySQLi, so I have to keep them on PHP 5.6 until they're all updated. But I would like to install HTTP/2 for them.
I understand that HTTP/2 isn't compatible with DSO, which is the default for my PHP 5.6.
I first turned on PHP-FPM, which I thought would override the handler entirely, but my HTTP loadtime skyrocketed! And users complained that the site was constantly timing out on them. That didn't work out at all.
Then tonight I installed mod_fcgid through EasyApache4 and changed the handler for one of the sites. But then the site began prompting to download PHP scripts instead of executing them... and I mean, downloading raw source code!! Luckily I only had that live for a minute at 2am before I changed it back, so hopefully nobody noticed :-O
So now I have a 2-part question:
1. if FastCGI is the right way to go, how do I make it work with WHM/cPanel?
2. if not, what other handler do you recommend that I install?
-
Yup - that would be just like how you installed suphp earlier, in the same area :D 0 -
@cPRex I get this message.................. The following conflicts are installed on this machine. They will be removed as part of this package selection: - mod_mpm_worker
- mod_cgid
- mod_http2
- mod_suphp
- mod_suexec
- mod_mpm_prefork
- mod_cgi
- mod_ruid2
0 -
At first glance, this looks like it would be going back to how it was before we started messing around?? 0 -
You're correct on both counts - you always want to follow the dependencies it tells you about, and it likely would be resetting this to a more "stock" version. 0 -
Lol... The "fastest" time was after we enabled http2, PHP-FPM, but NOT suphp. It was 97 at that point, and Felt fast!! If I just switch back to cgi in PHP Handler, will that get me back to where I was?? My head hurts.... :-p 0 -
Ah, I didn't remember if that was pre-suPHP or not. It should! If you get it to a point where you like it, it's best to leave it :D I'd switch back to the CGI/ruid2 option through EasyApache and then choose that handler through the MultiPHP Manager interface and see if it still has the quicker "feel" 0 -
I can't remember Exactly either to be honest. I could go back and read every post we have made, but at this point... It's Christmas Eve and I could use a drink! lol I fixed cars for a living in my real life for years. The saying there was... "If it ain't broke, dont fix it!" Right now everything is working, and I feel like we have pretty solid options installed. I may just leave it as is. It feels Much faster than my shared server Ever did, so I'm already ahead of the game. I have one more thing I'd like to explore in my email settings, but I'm not sure If I want to do that today. So for now. Thanks for your help with all of my dumb questions!!! Merry Christmas Rex! I hope Santa brings you lots of new toys!!! :-D 0 -
That sounds like a solid plan as well :D If you do need more specific help you can always reopen that ticket and I'll see that too. 0
Please sign in to leave a comment.
Comments
38 comments