Home
  • Intro
  •  
  • Energy
    • Energy diversion
    • My Energy Diverter
    • Oven control
    • Resources
  •  
  • Banana Pi M5
    • Install Armbian
    • Setting up
    • SSH connection
    • Static IP address
    • Install SAMBA
    • Install Apache
    • Install MySQL
    • Install PHP
    • Install phpMyAdmin
    • Install FTP server
    • Add web site
    • erase eMMC
  •  
  • Arduino
    • Programming
    • Connecting to PHP/MySQL
  •  
  • Energy app
    • Example
  •  
  • Music server (NAS)
    • miniDLNA
    • Installing on BPi-M5
    • Uploading files

FTP server

FTP stands for File Transfer protocol. Here we install vsftpd, an industry standard for uploading files from any computer to a web server. Installing FTP on the BPi-M5 isn't a programme that does this, it called an FTP server and it allows your FTP client, on your PC, to communicate with the BPi-M5.


To install vsftpd

Log in as root privileged su:
Just in case, update your system ...

BPiM5:yourname:# apt-get update -y && apt-get upgrade -y

First we need to ensure you have access to the directory containing your web site files. Then install vsftpd ...

BPiM5:yourname:# chown -R your user name /var/www

BPiM5:yourname:# apt install php -y

After installation, edit the configuration file for vsftpd ...

BPiM5:yourname:# nano /etc/vsftpd.conf
  1. Make sure anonymous_enable=NO and not YES
  2. Make sure local_enable=YES is uncommented (a # at the start of the line indicates a comment)
  3. remove # from write_enable=YES
  4. remove # from local_umask=022
  5. remove # from Ascii_upload_enable=YES
  6. remove # from Ascii_download_enable=YES
  7. At the bottom of the configuration file, add:-
    force_dot_files=YES

Exit and Save: by pressing ... Ctrl+X .... Y ... Enter

Re-start server

BPiM5:yourname:# sudo service vsftpd restart
Next step: adding your own web site Next