Step 9: Upload Content to Your Developer Server

All web content should be uploaded to the /www/htdocs/ directory. Remember, /www/ is just a shortcut (symbolic link) to ~/usr/local/etc/httpd/ which means ~/www/htdocs/ is the same as ~/usr/local/etc/httpd/htdocs/. You can get to your htdocs directory through either route.

From an SSH or Telnet prompt, type:

% cd ~/www/htdocs/
or:
% cd ~/usr/local/etc/httpd/htdocs/

You may organize your web files into different directories created under the /htdocs/ directory through the UNIX mkdir command. For example, if you wanted to store all of the product information on your web site under one directory, you would go to the htdocs directory and create a directory called products.

% cd ~/www/htdocs/
% mkdir products

If you are subhosting (i.e. you have multiple users and/or multiple web sites), you will want to create user accounts before you upload any content. These user accounts (which are really nothing more than user directories) should be created under the ~/www/vhost/ directory. For more information, see Step 10.

Back