Hello Devs,
Actually, I need to restart my nginx (/etc/init.d/nginx restart) for my own web-development work. I'm using ubuntu 16.04, nginx web-server, php7-fpm system. When I change any modification in php prg files, I need to restart nginx service command by running php ../../file_name.php (or) sh -x shell.sh.
But I cant restart the nginx within php / sh files except terminal / cron job. Could anyone suggest me how to restart nginx quickly within php / sh / any way without interrupting nginx.conf and php files.
Lot of Thanks in advance..
Regards
Marimuthu A
Developer