|
All web content should
be uploaded to the ~/home/enetrics/www/enetrics.com/ directory. Remember,
~/www/ is just a shortcut (symbolic link) to
~/usr/local/etc/httpd/ which means ~/home/enetrics/www/enetrics.com/
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 ~/home/enetrics/www/enetrics.com/
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 ~/home/enetrics/www/enetrics.com/
% 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.
Most Common MethodsConsole Command-Line
FTP Example
- From the Windows
taskbar, select Start and then Run end then enter
the name of your FTP client.
- When prompted, enter
your hostname and press the Enter key.
- Type the following
commands (followed by the Enter key after each line):
cd /home/enetrics/www/enetrics.com
ascii
lcd c:\upload
put index.php
bin
put logo.gif
quit
Your selected filenames
follow the put command. Additional information
is located in Chapter
2 of this Handbook.
FTP Program Example
Open FTP program and
type the following information:
- Server ID
- Username and password
- Binary or Auto
- Double click www
in right window (and usr/local/etc/httpd appears).
- Double click htdocs.
- Drag-and-drop files
between your local computer and your Virtual Server.
iManager
Example
- Open iManager
- Enter your login
name and password
- Select File Manager
- Select usr/local/etc/httpd/
- Press the Upload
File button
- Select Browse
- Select the file from
local machine that you want to upload
- Press the Upload
File button
Alternate Method
Windows File Sharing
is a very nice interface for maintaining your web site.
After you map your Virtual Server's home directory (Windows
95/98 or NT desktop) over the Internet, you simply drag
and drop files to your Virtual Server. This feature
also allows you delete, copy, and move files on your
Virtual Server as if it were a local drive.
Windows
File Sharing Example
- Right click on Network
Neighborhood
- Select Properties
- Select File and Printer
Sharing
- Click OK
Note: Avoid any
file names with spaces in them, as these cause problems
in UNIX. Use the underscore character ("_")
in place of spaces.
|