PHP tutorial : run Python from PHP in Ubuntu
Channel:
Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=ySKwaHDj45Q
in this video will show you how to run a script.py from php using shell_exec() ..
when it trying to run shell_exec('script.py') .. it doesn't work ..
i'm searching for the solution from google.com .. and i got it ..
The solution is .. change the owner of script.py from user:user to user:www-data ..
PHP need permission to execute shell_exec('script.py') from www-data (apache)
Other Videos By Ambar Hasbiyatmoko
Tags:
shell_exec
php
script
google
apache
linux
ubuntu
owner
www-data
exec
browser
run
execute
python
tutorial