Re: What is preferred PHP interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What are some troubleshooting methods that utilize this config to “helps to determine when the issue is php and when the issue is Apache.”

 

Thanks

 

From: Daniel <dferradal@xxxxxxxxx>
Reply-To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Date: Friday, April 7, 2017 at 9:18 AM
To: "<users@xxxxxxxxxxxxxxxx>" <users@xxxxxxxxxxxxxxxx>
Subject: Re: [users@httpd] What is preferred PHP interface?

 

Unless you recompile mod_php and all its extensions to be thread-safety, the most manegeable and performant solution will always be:

 

Apache w/ mpm_event + mox_proxy_fcgi -> php-fpm

 

Besides php-fpm is a very complete daemon/service to serve php, it allows for different pools with pretty different configurations/users/permissions/paths, etc. and to have a separate service for php content helps much.

 

For example, an added benefit from this setup is, for the not too experienced, it helps to determine when the issue is php and when the issue is Apache.

 

I see lots of folks in stackoverflow or asking for help in the #httpd channel at Freenode who confuse their problems as Apache being the source of them instead of PHP scripts or the php configuration itself.

 

2017-04-07 2:45 GMT+02:00 William A Rowe Jr <wrowe@xxxxxxxxxxxxx>:

There is little activity on mod_fcgid because it works. There has been talk of tagging 2.3.10 at some point for very minor fixes.

 

Mod_proxy_fcgi is a viable alternative, and offers the ability to load balance, but managing the process pool of available fcgi workers is offloaded from httpd and becomes a distinct ops responsibility. It too has changed little since 2013.



 

--

Daniel Ferradal

IT Specialist

 

email         dferradal at gmail.com


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux