S
S
Sergei Iamskoi2015-04-29 11:26:56
PHP
Sergei Iamskoi, 2015-04-29 11:26:56

What is the best way to connect PHP to apache?

There are three options for connecting PHP to Apache 2.4 (windows): Module, CGI, fastCGI.
Which of these three methods is better to use and why? And depending on the method, you need to use PHP Thread Safe or Non ..
PS: windows vs linux is not discussed. it is necessary under windows.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2015-04-29
@FanatPHP

For those who ask, the best option is a module. So that later there were no questions "oh, it doesn't work for me!"
In terms of performance - nginx + php-fpm under Linux

S
ShamblerR, 2015-04-29
@ShamblerR

FastCGI
It's faster than CGI and allows you to easily define permissions for each site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question