PHP tutorial : run Python from PHP in Ubuntu

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=ySKwaHDj45Q



Category:
Tutorial
Duration: 7:21
54,393 views
279


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


2017-01-16How to Convert coordinate (lat,lng) to TILE (x,y) in google maps
2017-01-12Codeigniter problem : No input file specified. when open the page
2017-01-12Ubuntu 16.04 problem after reinstall : low screen resolution and no internet connection
2017-01-09Bucardo : (Basic Tutorial) Postgresql Replication Master to master in 1 server Centos7
2017-01-09Error Install Flash Plugin in Ubuntu 16 04 : adobe flashplugin amd64 404 Not Found
2017-01-08Codeigniter - error when Redirect URL(Not Found) in Ubuntu 16.04
2017-01-08Disable Recent History in Ubuntu 16.04
2017-01-07Easy Install QGIS in Ubuntu 16.04 LTS(Xenial Xerus)
2017-01-06Bucardo problem : Can't locate ExtUtils MakeMaker.pm in @INC when trying to install bucardo
2017-01-05PHP tutorial : Passing PHP variable to Pyton (file.py)
2017-01-05PHP tutorial : run Python from PHP in Ubuntu
2017-01-04PHP problem - imagecreatefrompng error : the localhost page isn't working
2017-01-02PHP problem : mkdir doesn't work using shell_exec()
2016-12-28Codeigniter problem - Blank screen when connect with postgresql
2016-12-27Centos 7 : user is not allowed to run sudo on localhost. This incident will be reported
2016-12-26Highcharts Tutorial : Adding line of highcarts and custom line color
2016-12-23Centos 7 - Run inotify on startup
2016-12-22Codeigniter+Postgresql+Centos: Unable to connect to your database server using the provided settings
2016-12-20Stuck on loading centos linux 7 & get problem 'A start job is running for etc,rc.local'
2016-12-19Install virtualbox on ubuntu 16.04 LTS
2016-12-18How to install Steam in Ubuntu 16.04 and fixing the Steam not opening



Tags:
shell_exec
php
script
google
apache
linux
ubuntu
owner
www-data
exec
browser
run
execute
python
tutorial