{"id":1997,"date":"2024-10-24T04:18:20","date_gmt":"2025-11-25T01:59:11","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"how-to-install-pure-ftpd-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-pure-ftpd-on-ubuntu-24-04\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Pure-FTPd on Ubuntu 24.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<section>\n<p><strong>Pure-FTPd<\/strong> is a free, secure, and feature-rich FTP server solution that supports various authentication methods and is ideal for web hosting environments. This guide will show you how to install and configure Pure-FTPd on Ubuntu 24.04, whether you&#8217;re running a local server or a <strong>VPS server<\/strong>. Pure-FTPd is known for its security and ease of configuration, making it a great choice for managing FTP services.<\/p>\n<h2>Step 1: Update Your System<\/h2>\n<p>Before installing any software, it&#8217;s always recommended to update your package list and ensure that your system is running the latest security patches. Open your terminal and run the following command:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<h2>Step 2: Install Pure-FTPd<\/h2>\n<p>To install Pure-FTPd on Ubuntu 24.04, use the following command:<\/p>\n<pre><code>sudo apt install pure-ftpd -y<\/code><\/pre>\n<p>Once the installation is complete, the Pure-FTPd service will start automatically. You can verify its status with the following command:<\/p>\n<pre><code>sudo systemctl status pure-ftpd<\/code><\/pre>\n<h2>Step 3: Configure Pure-FTPd<\/h2>\n<p>Now that Pure-FTPd is installed, we need to configure it for secure operation. You can find the main configuration files in the <code>\/etc\/pure-ftpd<\/code> directory. Let&#8217;s make a few adjustments for optimal performance and security.<\/p>\n<h3>Create FTP User Directory<\/h3>\n<p>By default, Pure-FTPd operates in a secure manner by using virtual users. First, create a directory for storing your FTP users&#8217; files:<\/p>\n<pre><code>sudo mkdir -p \/home\/ftpusers<\/code><\/pre>\n<p>Next, adjust the permissions so that Pure-FTPd can access the directory:<\/p>\n<pre><code>sudo chown -R ftpuser:ftpgroup \/home\/ftpusers<\/code><\/pre>\n<h3>Enable Virtual Users<\/h3>\n<p>To manage FTP accounts with virtual users, you need to enable Pure-FTPd&#8217;s virtual user functionality. Create a virtual user file to store your FTP users:<\/p>\n<pre><code>sudo pure-pw useradd ftpuser -u ftpuser -d \/home\/ftpusers\/ftpuser<\/code><\/pre>\n<p>Set a password for the FTP user:<\/p>\n<pre><code>sudo pure-pw passwd ftpuser<\/code><\/pre>\n<p>Next, compile the virtual user database:<\/p>\n<pre><code>sudo pure-pw mkdb<\/code><\/pre>\n<h2>Step 4: Enable TLS\/SSL for Secure FTP<\/h2>\n<p>To enhance security, it\u2019s important to encrypt FTP traffic. Pure-FTPd supports TLS\/SSL for secure FTP connections. First, generate an SSL certificate:<\/p>\n<pre><code>sudo mkdir -p \/etc\/ssl\/private\/\r\nsudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout \/etc\/ssl\/private\/pure-ftpd.pem -out \/etc\/ssl\/private\/pure-ftpd.pem<\/code><\/pre>\n<p>Make sure to secure the SSL certificate file:<\/p>\n<pre><code>sudo chmod 600 \/etc\/ssl\/private\/pure-ftpd.pem<\/code><\/pre>\n<p>Now, enable TLS by editing the configuration file:<\/p>\n<pre><code>sudo nano \/etc\/pure-ftpd\/conf\/TLS<\/code><\/pre>\n<p>Add the following line:<\/p>\n<pre><code>1<\/code><\/pre>\n<p>Save and exit the file, then restart Pure-FTPd to apply the changes:<\/p>\n<pre><code>sudo systemctl restart pure-ftpd<\/code><\/pre>\n<h2>Step 5: Adjust Firewall Settings<\/h2>\n<p>If you have a firewall running on your <strong>VPS server<\/strong>, make sure to allow FTP and TLS traffic. Run the following commands to allow ports 21 (FTP) and 990 (TLS) through UFW:<\/p>\n<pre><code>sudo ufw allow 21\/tcp\r\nsudo ufw allow 990\/tcp<\/code><\/pre>\n<p>Then, restart the UFW firewall:<\/p>\n<pre><code>sudo ufw reload<\/code><\/pre>\n<h2>Step 6: Test the FTP Connection<\/h2>\n<p>Now that Pure-FTPd is installed and configured, you can test the FTP connection using an FTP client like FileZilla or the command line. Connect to your server using the FTP user credentials you created earlier.<\/p>\n<p>In FileZilla, enter the server&#8217;s IP address, the FTP user credentials, and port 21 for FTP or port 990 for FTPS. Make sure to use the correct protocol (FTPS for a secure connection).<\/p>\n<h2>Running Pure-FTPd on a VPS Server<\/h2>\n<p>Pure-FTPd is a lightweight and secure FTP solution, making it an excellent choice for managing file transfers on a <strong>VPS server<\/strong>. By enabling TLS\/SSL, you ensure that file transfers remain encrypted, which is essential when running FTP services on a public-facing server like a <strong>VPS<\/strong>.<\/p>\n<h2>Looking for a Reliable VPS Solution?<\/h2>\n<p>If you&#8217;re looking for a reliable and scalable <strong>VPS server<\/strong> to host your Pure-FTPd server or any other application, consider using . With <strong>Windows VPS<\/strong>, you get high-performance VPS hosting with full control over your server, ensuring a secure and optimized environment for your FTP services.<\/p>\n<footer>\n<p>For more VPS server solutions and guides, visit <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">netcloud24.com<\/a>.<\/p>\n<\/footer>\n<\/section>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Pure-FTPd is a free, secure, and feature-rich FTP server solution that supports various authentication methods and is ideal for web hosting environments. This guide will show\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1997","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1997"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1997\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}