PHP tutorial : run Python from PHP in Ubuntu

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)

Source: https://www.youtube.com/watch?v=ySKwaHDj45Q

Leave a Reply

Your email address will not be published. Required fields are marked *