Zum Inhalt springen

Webserver für Raspbarry Pi: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Simon Zeberli (Diskussion | Beiträge)
Zeile 13: Zeile 13:
==Verzeichnis Setzen==
==Verzeichnis Setzen==
Change the directory owner and group
Change the directory owner and group
   sudo chown www-data:www-data /var/wwwallow the group to write to the directory
   sudo chown www-data:www-data /var/www
allow the group to write to the directory
   sudo chmod 775 /var/www
   sudo chmod 775 /var/www
Add the pi user to the www-data group
Add the pi user to the www-data group
   sudo usermod -a -G www-data pi
   sudo usermod -a -G www-data pi

Version vom 25. Januar 2014, 15:13 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


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