I write a script to create new vhost on Nginx. That script creates Ningx vhost config file, vhost user and dirs, php-fpm pool file.
At the end of the script, I would like to check if config is ok before restart php-fpm. For Apache, I do apachectl graceful
, but is it possible to do something similar with php5-fpm -t
?