Install an FTP server

IMPORTANT: For security reasons, it is preferable to avoid using an FTP server or opening the FTP port to copy files to the virtual machine. Instead, use SFTP or SCP to connect to the virtual machine and transfer files.

Some applications require an FTP connection to download and install modules. In those cases, the machine already has the vsftpd server configured for local access. These are the settings to use (remember to replace the PASSWORD placeholder with the correct password for the bitnami user account):

Username: bitnami
Password: PASSWORD
Connection method: FTP
Port: 21
FTP root directory: /opt/bitnami/apps/APPNAME/htdocs/

If the virtual machine does not include the vsftpd server, install it by following these steps:

  • Install the package:

      $ sudo yum install vsftpd

Once the dependencies are resolved, you will be prompted to accept the installation of the package. Enter yes to continue.

  • For security reasons, modify the configuration file to only listen to requests originating from the local machine. Add the necessary line to the end of the /etc/vsftpd.conf configuration file with the following command:

      $ echo -e "write_enable=YES\nlisten_address=" | sudo tee -a /etc/vsftpd.conf
  • Restart the FTP server:

      $ sudo systemctl restart vsftpd.service
Last modification October 22, 2021