Python CGI script with lighttpd

1.Edit lighttpd.conf $sudo vim /etc/lighttpd/lighttpd.conf 1. Change cgi.assign = (“.php” => “/usr/bin/php5-cgi”) server.error-handler-404 = “/index.html” To cgi.assign = (“.php” => “/usr/bin/php5-cgi”, “.py” => “/usr/bin/python” ) server.error-handler-404 = “/index.html” 2. Change static-file.exclude-extensions = ( “.php”, “.pl”, “.fcgi”) To static-file.exclude-extensions = ( “.php”, “.pl”, “.fcgi”, “.py”) 3. Change index-file.names = ( “index.php”, “index.html”, “index.lighttpd.html” ) To index-file.names […]

Python CGI script with lighttpd Read More »

Part 3: Using Serial Port on Universal Expansion Board

Prerequisites: Part 1: Using Serial Port on Universal Expansion Board RaspberryPi Universal Expansion Board Raspberry Pi Using Serial Port with the Raspberry Pi – Connecting Raspberry Pi’s Serial Port with the onboard STM32 MCU At first, we need to attach the Raspberry Pi to the Universal Expansion Board. CPLD Configuration This part is pretty easy

Part 3: Using Serial Port on Universal Expansion Board Read More »