Search code examples
phplinuxapachecentosrackspace

How to add files to /var/www/html


I've been working with a WAMP setup on windows, while learning PHP and MySQL. Lately, I wanted to try to put some of my work online and signed up for Rackspace, and I've now set up a LAMP environment for my server with centOS 6.5.

When I worked off of my own WAMP environment, all files were inside wamp/www as the root directory.

Now, I understand that my root directory for my web environment will be /var/www/html.

To be clear, I am logged as root, so I'm not interested in changing permission. I'm simply interested in learning how to add files into this directory, which the existing posts on stackoverflow or rackspace does not seem to have an answer for.

I'm completely new to Linux and I'm using Putty to write to my linux server. Could someone please walk me through the process of putting files into and taking files out of /var/www/html?


Solution

  • Use pscp from the putty suite, to copy your files from your machine to the server via scp.

    See http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html