Transfer data using local server(Apache2)

 We can transfer data over local server and another user can receive that data by using IP address. Follow below steps to transfer data.

1. Firstly you must have to install Aache2

    $ sudo apt-get install Apache2

2. Type localhost/ on your browser’s addressbar to check Apache2 works or not. If Apache2 index.html shows ,that means apache2 works. Otherwise install it again.

  localhost/

3. Copy your files or folders into apache var/www directory OR You can copy your folder in /var/www/html

$ sudo cp -r /home/manpreet/Robotic /var/www

Here /home/manpreet/Robotic is a source and /var/www is a destination.

4. Open  /var/www directory to check  folder is copied or not .

5. Run below command to make this folder accessible.

$ sudo chmod  777  /var/www/Robotic -R

6. Now type following to see data on browser

localhost/Robotic        //if you copied you folder  in /var/www 
localhost/html/Robotic   //if you copied in you folder /var/www/html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s