M
M
Maxim2016-01-12 11:52:07
PHP
Maxim, 2016-01-12 11:52:07

How to run php-fpm for php7?

The story is this: there is centOS7 with nginx installed and php7 compiled from here www.php.net/get/php-7.0.2.tar.bz2/from/uk1.php.net... , fpm itself is inside sapi/fpm, Is there any man to start and configure this case? It is not clear where the fpm binary is, which is usually located in /usr/local/php7/sbin/php-fpm
UPD: before that there was a version of php 5.6 installed via yum according to this manu https://www.digitalocean.com/community/tutorials/ h...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alex1442, 2016-01-12
@go3l337

fpm is ${prefix}/sbin/php-fpm by default
1) you need to compile with the parameter --enable-fpm
2)init script is in the source folder sapi/fpmunder the name: init.d.php-fpm
3) look for pool settings in the $prefix folder (after installation), the default name is www. conf
4) write a handler for php in the web server, the listen parameter from the pool config, by default the addresslisten = 127.0.0.1:9000

R
romy4, 2016-01-12
@romy4

/usr/local/sbin/php-fpm
and there are more manuals than necessary. google nginx php-fpm and all links in a row

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question