![]() usr/pkg/share/examples/rc.d/php_fpm -> /etc/rc.d/php_fpm # cp -v /usr/pkg/share/examples/rc.d/php_fpm /etc/rc.d/ The php80-fpm package provides us and example script located under /usr/pkg/share/examples/rc.d/php_fpm and we can use it as our init script copying it to /etc/rc.d/php_fpm. In this section we learn how to start, restart and stop the php-fpm service, for this task we are going to use the excelent tools: init, rc and service. To install a module execute: # pkgin install php80-curl Php80-curl-8.0.3nb9 PHP extension for curl functions Php80-composer-2.0.11 Dependency Manager for PHP Php80-calendar-8.0.3 PHP extension for calendar conversion support Php80-bz2-8.0.3 PHP extension for bzip2 compression Show all available modules: # pkgin search '^php80\-' Zend Engine v4.0.3, Copyright (c) Zend Technologies Php80-fpm-8.0.3nb5 readline-8.1 php-8.0.3 pcre2-10.36 libxml2-2.9.10nb3 xmlcatmgr-2.2nb1Īfter the installation process finish, you can find the configuration files under this directory structure. PHP-FPM introduces the concept of pools, each pool can receive connections on a TPC/IP (IP:Port) socket or on a UNIX socket, and can run under a different user and group also each pool has its configuration file, to install PHP and PHP-FPM execute the following command: # pkgin install php80-fpm PHP-FPM is used together with a web server like Apache or NGINX, PHP-FPM serves dynamic content, while the web server serve static content and act like a reverse proxy in front of PHP-FPM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |