Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Warning running with shell_exec #3648
Comments
|
In order to not have to download player files (which never change), youtube-dl caches some files in a directory relative to I recommend one of the following options:
|
I'm getting a warning when i call shell_exec from PHP , if i run it from terminal everything works.
I think it might be with the apache rights If so what permissions should i give.
command used in PHP: shell_exec("/usr/local/bin/python2.7 /usr/local/bin/youtube-dl $input -g -i 2>&1")
WARNING: Writing cache to u'//.cache/youtube-dl/youtube-sigfuncs/js_vfltYLx8B_43.40.json' failed: Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 481, in _extract_signature_function
os.makedirs(os.path.dirname(cache_fn))
File "/usr/local/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/local/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/local/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '//.cache'