Sugandan
Posts: 2
Joined: Tue Apr 09, 2013 6:02 pm

Apache2

Sun Apr 14, 2013 11:07 am

I cant control the GPIO of the PI by means of a bowser ..
ie. thru apache !!
Wat should i do to fix it??
I execute a normal php program in the browser and it runs fine..
PS. I ve written the GPIO code also using PHP and it works fine wen run thru terminal! help !!

THanks in advance!

qwert1515
Posts: 1
Joined: Mon Apr 15, 2013 4:29 am

Re: Apache2

Mon Apr 15, 2013 4:35 am

You can give Apache permission using terminal and entering: "sudo visudo"
Then add: "www-data ALL=NOPASSWORD: /home/pi/nameoffile" to the bottom of the file and save.

Return to “Beginners”