I will tell you how you can transfer files from your Apache server.
How To File Transfer Via Apache Server.
First, you have to open a terminal and then go to the directory of the Apache server.
1 |
cd /var/www/html |
To go to the directories of Apache server, you have to type some commands which you will find in
the comment section above and you have also shown in the photo. File Transfer Via Apache Server.
Apache Server – Create File.
1 |
mkdir (YOUR FILE NAME) |
After going to the Apache server directories, you have to create a new directory whose files you want to access on your server. You can give the directory name anything here. To create a directory, you have to write some commands, which you will find in the section of the command above. You
can access whatever you put in this directory from anywhere in your localhost.
After this, you can see that I have created a directory of share name, which I have created in the directory of Apache server.
1 |
mv (YOUR FILE NAME) /var/www/html/(YOUR APACHE SERVER FILE) |
After this, you can put anything in your new directory that you want to access on the server. Like I am putting this test folder in my share directory as an exe:- that I want on the server.
You can see that my test folder has arrived in my share directory. Now we can access this folder anywhere in our localhost.
Apache Server Services Start.
1 |
service apache2 start |
To access all your files, you must first start the service of your Apache server, whose command will be found in the section of the command above. You can access your files after the service starts.
Server – Browsing Test
To access the files, you will need to go to the browser and enter your (YOUR IP /YOUR NEW FILE NAME) or whatever you gave your name while creating a new directory and then press enter.
You can see that the files of my Apache are now seeing me on my browser. The test folder that I had inserted is seeing me on my browser. After this, you can access anything by putting it on your server. And if you have a static IP, you can access it in any network.
Thank you all for reading my blog.