How to control GPIO´s over PHP on a Raspberry
sudo apt install apache2 -y
sudo apt install php libapache2-mod-php -y
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