WOW-TO install some sort of standard package on Raspberry Pi 2 all WOW-TO’s
v1.2.1 [20160417]
There are myriad of tutorials in internet. Here is another one, fitting to my needs
content:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo rpi-update && reboot
sudo bash
cd
sudo nano /etc/hostname
and
sudo nano /etc/hosts
sudo bash
cd
sudo apt-get install apache2
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python php5 php-pear php-apc php5-intl apt-show-versions curl php5-mysql mysql-client mysql-server php5-gd php5-mcrypt mediawiki proftpd
input asked during installation of mysql
rootpasswort: ******* (note this!)
Installing phpmyadmin
sudo apt-get install phpmyadmin
installing APACHE2
sudo nano /etc/php5/apache2/php.ini
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
extension=msql.so
;
; ... or with a path:
;
; extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
;;;;;;;;;;;;;;;;;;;
sudo /etc/init.d/apache2 restart
or
sudo reboot
installing proftpd
sudo apt-get install proftpd
now let us edit
sudo nano /etc/proftpd/proftpd.conf
append these 5 new lines, after the last one given:
DefaultRoot ~
AuthOrder mod_auth_file.c mod_auth_unix.c
AuthUserFile /etc/proftpd/ftpd.passwd
AuthPAM off
RequireValidShell off
reboot
sudo bash
cd
very important don’t forget to change directory
cd /etc/proftpd/
check
sudo id www-data
we will get this ---> uid=33(www-data) gid=33(www-data) Gruppen=33(www-data)
making user www | *********
sudo ftpasswd --passwd --name www --uid 33 --gid 33 --home /. --shell /bin/false
chmod g+s /var/www
chmod 775 /var/www
chown -R www-data:www-data /var/www
sudo /etc/init.d/proftpd restart
Have fun!
++++