Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php cannot run youtube-dl #4044

Closed
emrecanozkok opened this issue Oct 27, 2014 · 6 comments
Closed

php cannot run youtube-dl #4044

emrecanozkok opened this issue Oct 27, 2014 · 6 comments

Comments

@emrecanozkok
Copy link

@emrecanozkok emrecanozkok commented Oct 27, 2014

i have allready installed ffmpeg and youtube-dl

in php and shell /usr/bin/ffmpeg working
in shell /usr/local/bin/youtube-dl working but not working on php.

i cant fixing this ? and im allready installed 214.10.18 because newest version not working on youtube.

im getting this error

string(48) "/usr/bin/env: python: No such file or directory "

@phihag
Copy link
Contributor

@phihag phihag commented Oct 27, 2014

python is simply not in your PATH. Either set the path to the correct value (sh -c 'echo $PATH' should be the same under php and the interactive shell or call youtube-dl with

/opt/python/bin/python /usr/local/bin/youtube-dl ...

Of course, replace /opt/python/bin/python with the location of your Python interpreter. To find out the location of your Python interpreter, type which python in the interactive shell.

I am not sure what you mean by "newest version not working on youtube.". Can you elaborate?

@emrecanozkok
Copy link
Author

@emrecanozkok emrecanozkok commented Oct 27, 2014

youtube-dl last version showing error on setting age verification. and getting 503 error

i will try your proposal

@phihag
Copy link
Contributor

@phihag phihag commented Oct 27, 2014

Ok, please show us the error. Otherwise we cannot help you and will close this issue. It would also be nice to see the outputs of youtube-dl (both in the old and new version) when called with the -v option.

@emrecanozkok
Copy link
Author

@emrecanozkok emrecanozkok commented Oct 27, 2014

Hi its getted error 2014.10.25 but now im updated and its working perfectly but still i cannot use on php only working shell

@Dexus
Copy link

@Dexus Dexus commented Oct 27, 2014

PHP missing some env?
PHP - fpm?

@emrecanozkok
Copy link
Author

@emrecanozkok emrecanozkok commented Oct 27, 2014

hi,im tryed

var_dump(shell_exec("/usr/bin/python /usr/local/bin/youtube-dl -o '/home/servyaz/public_html/%(id)s.%(ext)s' http://www.youtube.com/watch?v=JqUwUWdAPhA 2>&1")); and its working now so so so thanxxxxx thanx all im working on this 5 dayysssss god save youuuu.

thanx so muchhhh :):) good jobb im searching and not fixing thisss i will write this on my blogggg

@phihag phihag closed this Oct 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.