From 1b09905a12d60bebb253acbed9ce213fc26a6c47 Mon Sep 17 00:00:00 2001 From: devdatt Date: Sun, 23 Nov 2025 12:36:55 +0530 Subject: [PATCH] upadte --- encoder/static.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/static.php b/encoder/static.php index d03527c..61d89e9 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -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("sudo nginx -t 2>&1", $output, $status); if ($status == 0) { error_log("nginx tested fine "); exec("sudo systemctl restart nginx 2>&1", $o, $s);