Linux Hosting - FAQ |
| |
|
What is the exact physical path to your root directory on the web server? |
The path to your root directory is: /home/username/ |
obviously, substitute "username" with the login you were assigned when you first received your account details. Also, keep in mind that when you configure your CGI, that your /public_html is included in your path. For instance, if you have a guestbook.pl script in your /cgi-bin, the exact physical path to that file is: /home/username/public_html/cgi-bin/guestbook.pl |
| |
| Why doesn't my CGI work? |
Make sure when you upload the CGI file DO NOT upload in binary mode, instead use ASCII mode. Uploading in binary will cause the server not to recognize the scripts as executables. Most FTP clients will upload .pl or .cgi files in binary mode by default so you will need to change this. You will need to upload the scripts into your cgi-bin directory for security reasons, however they will execute from anywhere within your account. |
The last step is to set the file permissions. This is otherwise known as chmoding and can be done from most FTP clients. |
| |
| CHMOD & File Permissions - General Info. |
When using a LINUX system it is sometimes necessary to change file permissions. This is done using the CHMOD command. There are two different ways to chmod a file. |
Certain FTP clients such as Cute FTP and WS/FTP Pro allow for a chmoding directly within FTP. To do this you would highlight the file that you want to use, and select from the command menu "change file permissions." There is on option for "manual." This is where you will enter the desired CHMOD. Many other FTP clients will support CHMODing as well, we recommend checking the documentation. |
| |
| Reasons for CHMODING |
CHMODing files can be done for a variety of reasons. You can CHMOD files to do things such as: mark them executable, give them write permission, restrict access to them, and a variety of other reasons. It is important to note that chmoding is nearly impossible to avoid. If you are trying to run a certain cgi script it could require execute permissions on the script itself, write permissions on a directory, and read on an informational page. Your cgi scripts should contain the proper documentation to inform you of the proper CHMOD's. |
| |
| List of CHMOD's & What They Mean |
chmod 777 filename The file is available for Read, Write, and Execute for the owner, group, and world. |
chmod 755 filename The file is available for Read, Write, and Execute for the owner; and Read and Execute only for the group and world. |
chmod 644 filename The file is available for Read and Write for the owner, and Read only for the group and world. |
chmod 666 filename The file is available for Read and Write for the owner, group, and world. I wonder if the 666 number is just a coincidence. Anybody can create havoc with your files with this wide-open permission mask. |
| |
| FTP Programs |
| What Program can I use to FTP to my account? |
We have put together a list of popular FTP software: (Keep in mind that new versions of FTP software are continuously being released- you might want to stop by www.download.com and search for the client of your choice to see if an updated version is available.) Also www.tucows.com is recommended for windows apps. |
| |
| #1 |
WS_FTP 4.5- a standard FTP client for Windows Sockets. The graphical interface was designed with the novice FTP user in mind. This version features a reengineered FTP server detection and decoding process. Requirements: Windows 3.x or higher. |
| |
| #2 |
Cute FTP- CuteFTP is a Windows-based Internet application that lets beginners use ftp without having to know many details about the protocol itself. It simplifies ftp by offering a user-friendly, graphical interface instead of a command-line prompt. Requirements: Windows 95. |
| |
| #3 |
WinTelnet and FTP Pro 32-bit 1.0 Release 2- WinTelnet and FTP Pro is a set of Telnet and FTP clients. The application hides the complexities of LINUX with an easy-to-use Windows interface, and it offers features such as auto-login profiles and automatic FTP login. Requirements: Windows 95. |
| |
|