1. Installing and Using the Wiring Pi Library
At raspberry prompt type: git clone git://git.drogon.net/wiringPi
if you need git type: apt-get install git-core
Then cd ~/wiringPi and ./build
To check if installed type: gpio -v then gpio readall
Install Apache and PHP on the Pi with apt-get install apache2 php5 libapache2-mod-php5
You might have to chmod -R 777 /var/www/html to copy over the files copy all the file in the Raspberry_web_Switch_control.zip to the web server folder /var/www/html
navigate to using a webrowser to the pi ip address and see if working.
in the index.php change the $i= 0; $i<1 1 =One Button on the screen or whatever number you want up to 8
button 0= Gpio pin 11
(https://i.postimg.cc/dknc7rFs/Buttom-Capture.jpg) (https://postimg.cc/dknc7rFs)
Credit to https://www.instructables.com/id/Simple-and-intuitive-web-interface-for-your-Raspbe/