I recently upgraded my personal server at home to Ubuntu 12.04 LTS. A day later, I realized the ProFTP server is no longer working. I’m not able to login at all. So, I restarted the ProFTP daemon and I was getting an error that says:
Fatal: LoadModule: error loading module ‘mod_vroot.c’: Operation not permitted on line 74 of ‘/etc/proftpd/modules.conf’
The ProFTP mod_vroot module was not required in previous Ubuntu versions. When I upgraded to Ubuntu Server 12.04 LTS, it was displaying an error because the mod_vroot was not installed. To fix the problem, I just needed to open the Terminal and install the ProFTP mod_vroot module.
sudo apt-get install proftp-mod-vroot
In case you are wondering, the mod_vroot module implements a virtual chroot capability that does not require root privileges. The mod_vroot module provides this capability by using ProFTPD’s FS API. It also allows one to map a directory out of the user chroot as an alias in the chroot for sharing common directories.
In case, you have the same issue, this is an easy fix.
There is no such thing as a perfect server, but this particular one is as close as you can get to being perfect. This tutorial will walk you through how to install the Ubuntu 10.04 LTS Server with all the services available typically that you get from ISPs and hosters.
It contains the installation of Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Courier POP3/IMAP, Quota, Firewall, etc. It also installs the free web hosting control panel called ISPConfig2. Here’s the link to the tutorial.
I came across an article documenting how to install a ProFTP server that uses MySQL virtual users instead of real system users allowing up to thousands of FTP users on a single machine. The instructions include the installation of ProFTP, MySQL and PHPMyAdmin, the latter is a web administration tool for the MySQL database. It’s an interesting concept which simplifies administration of FTP users if you have thousands of ProFTP users on a single system. However, the tutorial does not include the fine tuning of ProFTP, which in my opinion, is necessary.