Enabling FTP in XAMPP

You may wonder how to access web server via FTP when you are running XAMPP client or virtual linux OS running a server stack; well, the guide below may be helpful for you.

You have to create FTP user via terminal commands and give a file permission to where your web file resides.

Assuming you have XAMPP running by clicking Start button in General tab. In Services tab, make sure ProFTPD is also running as small circle turns green as indicator or just enable by clicking Start All button.

Now you are able to run Linux Debian as virtual OS which ables you to do commands via terminal by clicking Open Terminal via General Settings. You may see interface similar to the image below.

When you are able to open the terminal, you have to follow these steps.

Step 1. Create new group of users called ftp.

groupadd ftp

Step 2. Create new user if you don’t have custom one, or else just skip this step.

useradd john

Step 3. Add newly created account to ftpgroup

usermod -a -G ftp john

Step 4. Change ownership and file permission where htdocsfolder is where your web files reside. Usually it found in this path /opt/lampp/htdocs

chown john:ftp /opt/lampp/htdocs 

Step 5. Use FTP credentials in your FTP client e.g. Filezilla

Host: IP address found in Xampp’s General tab
User: john
Password: nominated password in useraddcommand

That’s it! I hope you have enjoyed this guide and please feel free to leave a comment below if I missed some important points.

Enabling FTP in XAMPP1.33/5 (26.67%) 3 votes
About

Elvin is one of the contributors of InnoveDesigns.com. He has been creating Wordpress Plugins, Magento Extensions, & Mobile Applications. If you find this article useful, please Follow him on .

Published under Web Development Guide