C
C
coder2342018-07-30 17:10:18
PHP
coder234, 2018-07-30 17:10:18

How to install PHP on Win separately for Apache and Nginx?

Greetings Toasters (first time with you)!
An unforeseen difficulty arose, the initial googling did not bring results. Maybe a stupid question, maybe he could not correctly formulate the question to the car. I hope people understand.
There is a development computer, Win10 Home, 64bit, on which the Apache 2 server and PHP 7 are installed (as a module of this server).
How to install Nginx + PHP on this computer? Do I need to install a separate copy of PHP or can I configure the one already installed so that it works with Nginx via CGI and how the module continues to work with Apache?
Bonus question: how can I use Nginx + PHP and Nginx + Apache + PHP stacks separately on such a computer (stand)? After all, people must have come across this ...
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tolmachev, 2018-07-30
@dark_tke

1. Install a virtual machine with linux (ubuntu server for example to start) on board. 98% of all systems with which you will work are based on linux, and learning how to configure it normally in a linux environment is much more important than under Windows.
2. You can do both through Apache and through nginx one instance of php. You can also use the Nginx + Apache + PHP bundle, since nginx can simply be a proxy server. But as for me, it’s better to focus on learning exactly nginx, but Apache is not used in any large projects without extreme necessity.
Bonus question: Can be used. configured via nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question