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)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
Update
  sudo apt-get update
Part 1 of 7: Start the Raspberry Pi Operating System
Part 1 of 7: Start the Raspberry Pi Operating System
   passwd pi
   passwd pi

Version vom 27. April 2014, 16:59 Uhr

Update

 sudo apt-get update

Part 1 of 7: Start the Raspberry Pi Operating System

 passwd pi

Part 2 of 7: Run Software Updates sudo dpkg-reconfigure tzdata sudo apt-get update sudo apt-get upgradePart 3 of 7: Keep the Firmware Up To Date

 sudo apt-get install ca-certificates

Part 5 of 7: Installing The Web Server

 sudo apt-get install apache2 php5 libapache2-mod-php5
 sudo service apache2 restart

Part 6 of 7: Install MySQL

  sudo apt-get install mysql-server mysql-client php5-mysql

Part 7 of 7: Install FTP

 sudo chown -R pi /var/www
 sudo apt-get install vsftpd
 sudo vi /etc/vsftpd.conf

Press the letter "i" on your keyboard and you will see --INSERT-- in the bottom left corner. Make the following changes: anonymous_enable=YES to anonymous_enable=NOUncomment local_enable=YES and write_enable=YESthen go to the bottom of the file and add force_dot_files=YES.

 sudo service vsftpd restart
 ln -s /var/www/ ~/www

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