1

I am new to RPi so sorry if this is a green question I’m trying to control the raspberry pi from a webpage so I am testing out with a single LED.. I installed Apache, php, and WiringPi successfully and got the “It works” page. But when I configure the code to turn on the GPIO pin for the LED it simply shows the code instead of turning on the LED. Any help is appreciated!

php code (in /var/www/html)

<?php

    system(“gpio -g mode 4 out”);
    system(“gpio -g write 4 1”);
patriciajlim
  • 53
  • 2
  • 3
  • 9

0 Answers0