Webserver für Raspbarry Pi: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 8: | Zeile 8: | ||
Install PHP Server | Install PHP Server | ||
sudo apt-get install php5-common php5-cgi php5 | sudo apt-get install php5-common php5-cgi php5 | ||
sudo lighty-enable-mod fastcgi-php | |||
sudo service lighttpd force-reload | |||
==Verzeichnis Setzen== | ==Verzeichnis Setzen== | ||
Version vom 25. Januar 2014, 15:16 Uhr
http://www.penguintutor.com/linux/light-webserver
sudo apt-get install lighttpd
Install MySQL Server
sudo apt-get install mysql-server
Install PHP Server
sudo apt-get install php5-common php5-cgi php5 sudo lighty-enable-mod fastcgi-php sudo service lighttpd force-reload
Verzeichnis Setzen
Change the directory owner and group
sudo chown www-data:www-data /var/www
allow the group to write to the directory
sudo chmod 775 /var/www
Add the pi user to the www-data group
sudo usermod -a -G www-data pi