Skip to content

LutzEmbeddedTec/GPIOoverPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

GPIOoverPHP

youtube video with explaination

How to control GPIO´s over PHP on a Raspberry

install Webserver on Respberry PI

sudo apt install apache2 -y
sudo apt install php libapache2-mod-php -y

Presetting Raspberry

clone Github rep

git clone https://github.com/LutzEmbeddedTec/GPIOoverPHP.git

copie files to the destination

sudo cp index.php /var/www/html/
sudo rm /var/www/html/index.html

change in the PHP file the destination of your Pyhton script

sudo nano /var/www/html/index.php

Add webser to GPIO permission group

sudo usermod -aG gpio www-data

restart apach server

sudo service apache2 restart

Releases

No releases published

Packages

No packages published