Iniciar, detener, reiniciar el servicio PHP-FPM, en las distribuciones linux, CentOS , Debian, Ubuntu, FreeBSD, RedHat, OpenSuse, etc…
PHP-FPM es una opción a FastCGI Process Manager, muy simple pero a la vez robusto y sencillo. Puedes usarlo con Apache, Nginx y otros múltiples servidores web. Incluye muchas funciones avanzadas.
Su merecida reputación es debida a la excelente «performance» que consigue, y si ademas lo usamos con un servidor como Nginx, pocos sistemas podrán superar sus tasas.
En este articulo veremos como iniciar, detener, y reiniciar el servicio PHP-FPM (suponemos que lo tienes instalado).
Iniciar, detener, reiniciar el servicio PHP-FPM
CentOS 6.x , anteriores y derivados
Iniciar
sudo service php-fpm start
Detener
sudo service php-fpm stop
Reiniciar.
sudo service php-fpm restart
CentOS 7.X y derivados
Iniciar
sudo service start php-fpm
Detener
sudo service stop php-fpm
Reiniciar.
sudo service restart php-fpm
Ubuntu, Debian y derivados
Php 5.x en Ubuntu 16.04 LTS, Debian 8.x y superiores:
Iniciar
sudo systemctl start php5-fpm.service
Detener
sudo systemctl stop php5-fpm.service
Reiniciar
sudo systemctl rstart php5-fpm.service
Php 5.x en versiones anteriores a Ubuntu 16.04 LTS y Debian 8.x:
Iniciar
sudo service php5-fpm start
Detener
sudo service php5-fpm stop
Reiniciar
sudo service php5-fpm restart
Php 7.x en Ubuntu 16.04 LTS, Debian 8.x y superiores:
Iniciar
sudo systemctl start php7.x-fpm.service
Detener
sudo systemctl stop php7.x-fpm.service
Reiniciar
sudo systemctl restart php7.x-fpm.service
Php 7.x en versiones anteriores a Ubuntu 16.04 LTS y Debian 8.x:
Iniciar
sudo service php7.x-fpm start
Detener
sudo service php7.x-fpm stop
Reiniciar
sudo service php7.0-fpm restart
Unix FreeBSD
En FreeBsd y Unix, tenemos dos opciones en linea de comandos.
Iniciar
/usr/local/etc/rc.d/php-fpm start
Detener
/usr/local/etc/rc.d/php-fpm stop
Reiniciar
/usr/local/etc/rc.d/php-fpm restart
Alternativa en FreeBSD y Unix
Iniciar
sudo service php-fpm start
Detener
sudo service php-fpm stop
Reiniciar.
sudo service php-fpm restart