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.
Step 2. Create new user if you don’t have custom one, or else just skip this step.
Step 3. Add newly created account to
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
chown john:ftp /opt/lampp/htdocs
Step 5. Use FTP credentials in your FTP client e.g. Filezilla
IP address found in Xampp’s General tab
Password: nominated password in
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.