![]() Within the nf file find the following line: We will now modify the Proftpd configuration to show our user the ‘/var/www/’ directory uppon connection. If all is well your FTP client will connect and show you your home directory on the server. ![]() Test the FTP server installation by opening an FTP client (such as FileZilla) on your home computer, for the connection details use the local IP address as the host (in my case: 192.168.1.230), your username (in my case: jim) and the associated password with the user account. When prompted select ‘Standalone’ from the list to run the FTP server independently. This command will install the Proftpd FTP server on your web server, press ‘y’ to confirm the installation. We will now set up an FTP server, this will allow us to modify files within the www directory via an FTP client, such as FileZilla. If you were now to log into the servers terminal using your user account rather than the root account you would be able to create, modify and delete files in the ‘/var/www/’ directory. This command gives the user group read and write permissions to the ‘/var/www/’ directory. This command gives the www-data user group ownership permissions to the ‘/var/www/’ directory, the -R adds a recursive marker, automatically owning any directory within the ‘/var/www/’ directory. This command adds our user to the ‘www-data’ user group. Replace jim with the username you chose during the Debian installation. Returning to your SSH client (for example: Putty), log in as the root user and type the following command:
0 Comments
Leave a Reply. |