 |
Uploading with WS_FTP:
WSFTP is one of the most popular FTP programs used on the web and the one we recommend. You can download it for free here: http://download.cnet.com/downloads/ Type in 'WSFTP' in the search box.
Once you install and run the program, you'll need the following information to connect to your server. Every hosting
account has a default ftp account that was sent to you in your welcome email. You can add additional ftp accounts in
your control center.
WS_FTP Settings:
1) Host Name/Address: [ www.yourdomain.com or your ip address ]
2) User ID: [ ftpuser@yourdomain.com ]
3) Password: [ Set in yor control center ]
In the Profile Name box, you can put anything here. This is just so you can find your profile again the next time you start WSFTP. Enter your Host Name/Address, User ID and Password shown above. The other two fields are optional. Finally, click 'OK' and you should be connected to your web server.
On the left side of WSFTP, you will see your computers files and on the right side you'll see a the files of your BrioHost account.
To upload a file from your computer to your server, simply highlight (left click) the file you want to upload. Locate the left and right arrows shown between your your computer and your server. Click the arrow that points to the right. The file will now be uploaded and placed your web server.
If you want to upload more than one file, hold down the control key while clicking on the files you want to upload. If you want to upload an entire folder, just highlight the folder and then click the right arrow.
This process also works in reverse. If you want to download the files from your web server to your computer, simply highlight the files on the right side of the screen and click the arrow that points towards the left.
Notice the two radio buttons located directly underneath the two windows. One says ASCII and the other says Binary. Text files or files that end in .HTML, .CGI, and .TXT files should always be uploaded in ASCII. Graphic files (.gif, jpg and .pdf) should be uploaded in Binary. Most users should leave this set to 'Auto' to let WSFTP decide what type of file it is.
WSFTP Menu
|

|
The ChgDir button stands for "Change Directory". For example, if you were presently looking at files in the c:\My Documents folder and wanted to change to the c:\ directory. You'd hit ChgDir and type in c:\ into the box.
The MkDir button stands for "Make Directory" You can create new directories (or folders) as needed.
The View button allows you to view the file in your default text editor.
The Exec button executes the file.
The Rename button allows you to rename the file.
Refresh updates the file. It's very important to remember to hit "Refresh" after you've edited a file and saved it. That way you make sure the most recent version gets uploaded to the web server.
DirInfo >simply gives you information about the directory you're currently viewing.
|
How to Change Permissions Using CHMOD
If you're installing a message board, chat room or any other kind of script that is written in PERL, they need to be protected. CGI scripts are installed on the server end, and if the wrong person were to access them, it could cause damage to your site and possibility even the server. (Your hoster wouldn't be too happy about that) That's why you need to set permissions (chmod) on your CGI script before they will be allowed to run.
And don't worry...if the permissions are set incorrectly, you'll know it because the script will not run.
For example, when you install a guestbook or a message board, users will need to have access to WRITE to certain files, but only be able to READ others. If you didn't give them WRITE access, then they wouldn't be able to add new entries to your book or post any new messages on your message board.
Here's how to use the CHMOD feature.
1. Open your FTP program and upload the files to the appropriate folders on your server. (Follow the script's instructions). Make sure you are uploading any file that ends with .cgi, .html, or .pl in ASCII format. Graphics, however, should be uploaded in BINARY. If you're using WSFTP (and I know you are because it's the best) then you'll see the option to switch between the two right in the middle of the program's interface. Select the appropriate bubble.
2. After you have uploaded the files, check your script instructions and find out the permissions that should be set for the files. Highlight the file you need to change and right click it. Choose 'chmod' and then a POP UP box will show up.
The most popular permission settings are 755 and 777.
Using the CHMOD Command to Set Permissions
To set the file to 755, check every box except the 'Write' box for the 'Group' and 'Other' row and hit 'OK'.

To set the file to 777, check every box and hit 'OK'.

If you're asked to set the permissions to any other number then here's how to figure out which boxes to check:
The READ box = 4
The WRITE box = 2
The EXECUTE box = 1
Each number represents a column. So if you were asked to set a file to 664, the 6 refers to the Owner column, the 2nd 6 refers to the Group column and the 4 represents the Execute column.
So to set the file to 664, you would check the READ and WRITE boxes in the 'Owner' column (4 + 2 = 6) Then you'd check the READ and WRITE boxes in the 'Group' column (4 + 2 = 6). And lastly check the READ box in the 'Other' column (4).
Now that you've edited the cgi files, uploaded them, and set all the permissions, your script should be ready to rock and roll! If you receive strange errors when trying to run it, then it could be:
1. You have not uploaded all the files to the proper folders
2. Some permissions are not set correctly
3. You've incorrectly defined some of the variables in the cgi script (i.e. the path to your cgi-bin, etc.)
4. All or some of the above.
Be sure to consult the documentation that came with the script and double check you have done everything that was asked of you.
Back to Online Manual
|
 |
|