How to setup FTP on xampp
Asked Answered
F

5

23

i want to make a server using xampp. i have already installed xampp and setting port 8080. php and mysql work fine but i can't access ftp from internet. Can you please suggest way how can I do this?

Flagellate answered 8/6, 2015 at 11:16 Comment(0)
S
37

XAMPP comes preloaded with the FileZilla FTP server. Here is how to setup the service, and create an account.

  1. Enable the FileZilla FTP Service through the XAMPP Control Panel to make it startup automatically (check the checkbox next to filezilla to install the service). Then manually start the service.

  2. Create an ftp account through the FileZilla Server Interface (its the essentially the filezilla control panel). There is a link to it Start Menu in XAMPP folder. Then go to Users->Add User->Stuff->Done.

  3. Try connecting to the server (localhost, port 21).

Scalenus answered 8/6, 2015 at 11:20 Comment(3)
Nice answer. Thank youRuby
Very useful, Thanks for this knowledge @ScalenusRufescent
however based on Firewall configuration from the host machine, it requires to approve the FileZilla connecting to port (for external user port is 21)Remington
M
10

XAMPP for linux and mac comes with ProFTPD. Make sure to start the service from XAMPP control panel -> manage servers.

Further complete instructions can be found at localhost XAMPP dashboard -> How-to guides -> Configure FTP Access. I have pasted them below :

  1. Open a new Linux terminal and ensure you are logged in as root.

  2. Create a new group named ftp. This group will contain those user accounts allowed to upload files via FTP.

groupadd ftp

  1. Add your account (in this example, susan) to the new group. Add other users if needed.

usermod -a -G ftp susan

  1. Change the ownership and permissions of the htdocs/ subdirectory of the XAMPP installation directory (typically, /opt/lampp) so that it is writable by the the new ftp group.

cd /opt/lampp chown root.ftp htdocs chmod 775 htdocs

  1. Ensure that proFTPD is running in the XAMPP control panel.

You can now transfer files to the XAMPP server using the steps below:

  1. Start an FTP client like winSCP or FileZilla and enter connection details as below.

If you’re connecting to the server from the same system, use "127.0.0.1" as the host address. If you’re connecting from a different system, use the network hostname or IP address of the XAMPP server.

Use "21" as the port.

Enter your Linux username and password as your FTP credentials.

Your FTP client should now connect to the server and enter the /opt/lampp/htdocs/ directory, which is the default Web server document root.

  1. Transfer the file from your home directory to the server using normal FTP transfer conventions. If you’re using a graphical FTP client, you can usually drag and drop the file from one directory to the other. If you’re using a command-line FTP client, you can use the FTP PUT command.

Once the file is successfully transferred, you should be able to see it in action.

Moltke answered 11/3, 2019 at 9:57 Comment(0)
D
0

I launched ubuntu Xampp server on AWS amazon. And met the same problem with FTP, even though add user to group ftp SFTP and set permissions, owner group of htdocs folder. Finally find the reason in inbound rules in security group, added All TCP, 0 - 65535 rule(0.0.0.0/0,::/0) , then working right!

Derr answered 19/5, 2020 at 10:17 Comment(0)
C
0

On XAMPP click "Start" and after "Admin".

Login to localhost (127.0.0.1) without password, with second port, not with 21.

Add users and passwords, change your settings. Quit.

Cheat answered 2/1, 2022 at 23:24 Comment(0)
P
0

disable your antivirus if you have any antivirus installed in your computer. Disable windows firewall or defender firewall (you can enable antivirus and firewall after complete setup of xampp, but allow everything if any notice appear from antivirus or firewall app) . Run (Run as administrator,- right click on your downloaded xampp file and click Run as administrator) downloaded xampp software.

What ever instructions will come on your computer screen click on Next and finish your installation.

See details.. disable your antivirus if you have any antivirus installed in your computer. Disable windows firewall or defender firewall (you can enable antivirus and firewall after complete setup of xampp, but allow everything if any notice appear from antivirus or firewall app) . Run (Run as administrator,- right click on your downloaded xampp file and click Run as administrator) downloaded xampp software.

What ever instructions will come on your computer screen click on Next and finish your installation.

See details... https://kamatablog.blogspot.com/2021/11/how-to-install-and-configure-xampp-wordpress-filezilla-in-windows-os-computer.html

Parlour answered 5/4, 2024 at 16:24 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.