nginx check

This commit is contained in:
devdatt 2025-11-23 11:14:39 +05:30
parent ade65a0ac6
commit 7e5abcdf77
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ http {
$file = "/var/www/encoder-rtmp.sh";
file_put_contents($file, $rtmp);
exec('sudo cp /var/www/nginx.conf /etc/nginx/nginx.conf');
exec("$nginx -t 2>&1", $output, $status);
exec("nginx -t 2>&1", $output, $status);
if ($status === 0) {
error_log("nginx tested fine ");
exec("sudo systemctl restart nginx 2>&1", $o, $s);