CONTENTS


Lastmodified 2019-12-26 (木) 16:18:51


FreeBSD PHP-FPM

https://www.cyberciti.biz/faq/freebsd-install-php-7-2-with-fpm-for-nginx/

Edit the file /usr/local/etc/php-fpm.d/www.conf

# vi /usr/local/etc/php-fpm.d/www.conf

Find line:

listen = 127.0.0.1:9000

Update it as follows:

listen = /var/run/php72-fpm.sock

Uncomment the following line:

listen.owner = www

listen.group = www
listen.mode = 0660
Save and close the file. Enable php-fpm service:
# sysrc php_fpm_enable=YES

/etc/rc.conf

php_fpm_enable="YES"

Commands to start, stop, restart php-fpm service on FreeBSD server:

# service php-fpm stop

# service php-fpm start
# service php-fpm restart
# service php-fpm status
root@g7:~:19_12_26:15:37 # service php-fpm start
Performing sanity check on php-fpm configuration:
[26-Dec-2019 15:38:20] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

Starting php_fpm.
root@g7:~:19_12_26:15:38 # service php-fpm restart
Performing sanity check on php-fpm configuration:
[26-Dec-2019 15:38:51] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

Stopping php_fpm.
Waiting for PIDS: 38870.
Performing sanity check on php-fpm configuration:
[26-Dec-2019 15:38:51] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

Starting php_fpm.

Total access 934:本日 1:昨日 0

Counter: 934, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS