![]() If you see the result of function “phpinfo()”, the PHP interpreter is working properly. Save the changes and check the result in the browser. Let’s rename our test page:Īdd the following php line to the file “/var/www/sites/site1/index.php”, so the file should look like this: In order for PHP to be executed web page file should have “.php” extension. Let’s connect a third-party repository and install the latest version of PHP. Today the latest stable version of PHP is php 7.4.5 which’s not included in official Ubuntu repositories. Reload the vsftpd server to apply changes. Please note that the path of the “pam_userdb.so” library may be different but you can change it if needed. Let’s modify the default PAM file “/etc/pam.d/vsftp” as follows:Īuth required /lib/x86_64-linux-gnu/security/pam_userdb.so db=/etc/vsftpd_loginĪccount required /lib/x86_64-linux-gnu/security/pam_userdb.so db=/etc/vsftpd_login Then the file will look like this:ĭb_load -T -t hash -f ~/users.txt /etc/vsftpd_login.db For example, we will need a virtual user with the login “ftp” and password “Qwe123”. You will need a database in order to store data of virtual accounts.įirst, let’s create a simple text file “users.txt” in the home folder and save access details (login and password) of virtual users into every other line. The main configuration is in the file “/etc/nf”, so let’s open it and edit it as follows: ![]() “Root” will be the owner of the “/var/chown -R virtual:root /var/www/sitesĪs a result, the user “virtual” will be able to see the contents of “/var/Configuration This account will be used by ftp users to connect to the server
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |