You can copy the script to test.php on your webserver and execute it.
You get the username of your webserver user or an error.
<?php
// outputs the username that owns the running php/httpd process
// (on a system with the "whoami" executable in the path)
$output=null;
$retval=null;
exec('whoami', $output, $retval);
echo "Returned with status $retval and output:\n";
print_r($output);
?>
Hi, the latest 0.7.5 version has both youtube-dl and aria2c shipped in the app. Now it should work right after you install it from the store. No further installations and configuration needed
my firewall blocked? but nothing happen in ncdownloader, still could download in nextcloud
root@host:~# sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2022.05.18/yt-dlp 4 -o /usr/local/bin/youtube-dl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:02 --:–:-- 0
100 2397k 100 2397k 0 0 354k 0 0:00:06 0:00:06 --:–:-- 679k
curl: (28) Failed to connect to 0.0.0.4 port 80 after 130732 ms: Connection timed out
You can manually download the software with your browser here (latest version) of yt-dlp. Use the correct file for linux (hopefully this file). Then copy the file to your server in /usr/local/bin with name youtube-dl.
Then set the correct rights chmod 755 /usr/local/bin/youtube-dl
sudo for root makes no sense.
I think option -L, --location for curl makes also no sense.
The downloader works. Maybe you use another old version. Test it with a single video. Does it work?