 |
 |
 |
Linux / Unix Technical Support |
THE BASICS
General Account Information
We offer storage space for web pages with global public access to those pages over the Internet. We also offer a limited form of program execution known as "cgi-bin." Our computers are Dual Pentium III 866Mhz+ servers with 1000MB+ of RAM running Apache 1.3.19 over a custom version of Red Hat Linux. Apache responds to web page fetch requests from remote browsers while Linux is one of several variants of the Unix operating system. Our servers are connected to the Internet backbone over multiple, fully redundant DS3 lines each having a capacity of 45 Mbps (Million bits per second), and multiple, redundant OC3 lines each having a capacity of 155 Mbps (Million bits per second).
Every customer gets his own password protected userid under Linux. By logging in with his userid, the customer gains access to his web storage space. Every userid "owns" a structure of disk subdirectories in the Linux file system. The "root" of this structure is the "home" directory, found at path "/home/userid." Note that this is somewhat similar to the MS-DOS directory structure, except that there is no drive letter and forward slashes are used instead of backward lashes. The path referred to above, however is in relation to our own servers. When you FTP to your account using your domain name and userid, you don't need to put in "home/userid." You will automatically be taken there. Also note that your path might be "/home2/userid" depending on which of our servers your domain resides on.
Inside the home directory are many files and other directories. The most important one is named "www". Every customer has his own separate "www" subdirectory. Files placed in the "www" directory are visible to remote browsers over the Internet, so this is where you want to place all your html documents, graphics, sounds, files, etc. which you want people to be able to access from the world wide web. For example, when a browser asks for URL http://yourdomain.com/page.html, Apache looks for the file: /home/yourdomain.com/www/page.html and sends it out.
The Index Page
The filename of your home page should be index.htm or index.html. The webserver will automatically send the file at path /home/yourdomain.com/www/index.htm when a browser specifies http://www.yourdomain.com. When your account is set up, there will be an index.htm page already installed. This just tells anyone accessing your domain that your site is under construction and will be available soon. You will replace this file in the www directory with one of your own creation. If you wish to use any of the cgi features we provide that use Server Side Includes (SSI), you must name your page with the .sht or .shtml extension. You can put an index.htm file in any subdirectory that you wish, and it will be the default page served when you don't want your visitors to have to type a full page URL reference, for example, http://www.yourdomain.com/whatever instead of http://www.yourdomain.com/whatever/page.htm, or http://www.yourdomain.com/whatever.htm.
Accessing Your Email
Email Client Settings
- Incoming Mail (POP3) Server: domain.com (Port 110)
- Outgoing (SMTP) Server: domain.com (Port 25)
- Account Name/Login Name: your Username (your address without the "@domain.com")
- Email address: your Mail address (i.e. user@domain.com)
- Set Up
Outlook 97 and 98:
- Open the Tools menu, and click on the "Services" tab.
- Select your Mail account.
- Click "Properties."
- Click the "Servers" tab, and ensure "Log on using Secure Password
- Authentication" is not selected.
- Click the "Advanced" tab, and ensure that you have not selected "This Server Requires a Secure Connection (SSL)" under the Incoming (POP3) or Outgoing (SMTP) Port settings.
Outlook Express:
- Click "Tools," and select "Accounts."
- Click the "Mail" tab, then highlight the account and choose "Properties."
- On the Servers tab, ensure that you have not checked "Log on Using Secure Password Authentication" in the Incoming Mail Server section and have not checked "My Server Requires Authentication" in the Outgoing Mail Server area.
- Check that "POP3" is listed in the Incoming Mail Server field.
- On the Advanced tab, ensure that you have not selected "This Server Requires a Secure Connection (SSL)" under the Incoming (POP3) or Outgoing (SMTP) Port settings.
Eudora Pro (version 4):
- Click on the "Tools" menu, and select "Personalities."
- Right-click on the Mail account, and select "Modify."
- Click on "Incoming Mail." Ensure that "POP3" is selected under the Configuration heading and that "Passwords" is selected under Authentication Style.
Netscape Communicator 4.05:
- Open the "Edit" menu, and select "Preferences."
- In the Category field, click the "+" next to "Mail & Groups," and then click "Mail Server."
- Ensure "POP3" is selected under the Server Type heading.
Netscape Communicator 4.5:
- Open the "Edit" menu, and select "Preferences."
- In the Category field, click the "+" next to "Mail & Newsgroups," and then click "Mail Servers."
- Select your Mail account and ensure "Never" is selected under the Use Secure Socket Layer heading.
- Click "Edit" and ensure "POP3" is listed beside Server Type.
Wusage and Raw Access Logs
To count accesses, there is a directory called wusage in your www directory. To access it, just log on the Internet and with your web browser, go to: http://www.yourdomain.com/wusage
You will see a webpage with statistics for your domain for the previous week. If you are a brand new domain, you won't see any statistics there yet. If you go to the link from that page leading to Weekly Reports, you will see a much more detailed report, including pie charts, graphs, etc. These reports are automatically generated for you once each week, and are stored in one place so you can compare weekly statistics easily.
If you would like to see domain names in your stats rather than just IP numbers, put an empy file in your wusage directory called dns (no extensions). This will act as a switch and reverse authentication will be activated for the domain.
In your home directory, you will see a file called access-log. You can download this file and open it in any word processor to see exactly what files were accessed, what domain the visitor came from, the dates and times of each visit, etc.
Telnet Access
A telnet account is just another name for Unix/Linux userid. When you sign up with us, you get a userid and password. You may ask for more than one such userid. See the Fee Schedule for pricing. Each telnet account for your domain has its own separate home directory, but shares the same www and FTP directories.
You need a telnet program to access your telnet account. Simply put in yourdomain.com as the host, and connect to the server. When you are connected, you will be prompted for your userid and password.
Some of the programs available at the shell prompt are:
- mail - a primitive email program
- pine - a more powerful email program
- ftp - to FTP onto other sites
- telnet - to telnet to other sites
- pico - an easy to use text editor
- vi - a not so easy to use (but standard) text editor
- lynx - a text-based world wide web browser.
In general, it's a pretty complete POSIX environment. You access these programs by typing in their names and then following commands relevant to each program. If you need help with any of the programs, at the shell prompt, type man and the name of the program to get instructions for that program online. If your problem is not knowing the name of the program, try apropos subject(i.e. apropos mail). It is important to remember that Unix is case-sensitive, and that "Index.htm" is not the same as "index.htm."
Note:
If you experience problems with your telnet program when accessing the above programs you will need to make a entry in your login directories .bash_profile file. Just add the following to the last line export TERM=vt100. This will allow you to access all shell programs properly.
FTP Access
Now that we know where the files have to be located in order to be visible from the Internet, just how do we put the files there? There are several ways, depending on your computer system. For the Macintosh, a program called "Fetch" is used. Microsoft Windows systems use "WS_FTP." Look further in this manual for detailed instructions on each of these programs.
Changing Your Password
To change your password, Telnet to your account. After logging in with your username and password, at the Unix prompt, type:passwd
A script will ask you to type in your old password, then the password you want it changed to will be asked for twice to verify. This will not work for POP-only accounts. There is no way you can change the password for those accounts - they must be changed by sending us email and we will take care of it.
9+ Character Names
A name of anywhere from 3-16 letters is legal for email accounts, FTP accounts, and telnet accounts and may include upper and lower-case letters, numbers and hyphens. There is no limitation for file names on the server but spaces are not normally used on Unix systems and may cause problems.
Checking Server Space Usage
You can find out how much space is in use by the www files for your domain by using Telnet to log into your account and then from the Unix prompt, typing the following:
du -s /www/htdocs/yourdomain
This will give you a report back of the number of kilobytes (k) all files in your www directory add up to.
If you have an anonymous FTP area, also check:
du -s ~ftp/yourdomain.com
To check how much space is being used by files in your home directory, type:
du -s $HOME
Adding up the results from all three of these commands will give you the total amount of space you are using, but a simpler way of checking all three directories is to type:
du * www/* anonftp/* -c
You will then see a space report for each directory (-a to see for each file) and at the end, a total.
Zip/Unzip Files
This Unix program is compatible with the zip program for DOS and Windows. To zip files, first have the files uploaded to your server, then log into your account with Telnet. Navigate to the directory where the files are that you want to zip (for instance by typing cd www then cd sounds). Then type: zip myzip file1 file2 file3
This puts the files "file1", "file2", and "file3" into a new zip archive called "myzip.zip". On the other hand, if you had the archive "myzip.zip" and wanted to get back the files, you would type: unzip myzip
Typing zip or unzip by itself will give you a usage summary, showing nearly all the options available.
WUSAGE STATUS
What is Wusage?
Wusage is a statistics system that helps you determine the true impact of your web server. By measuring the popularity of your documents, as well as identifying the sites that access your server most often, Wusage provides valuable marketing information. By determining the paths your users follow and analyzing the sites from which they come, Wusage helps you find out which outside sites are most important to you. Practically all organizations, whether commercial, educational or nonprofit, need solid numbers to make credible claims about the World Wide Web. Wusage fills that need. Features of Wusage: Search Keywords Much of your traffic is driven by Internet "search servers" like Altavista and Lycos. What are you customers looking for? Wusage 7.0 can tell you exactly what search keywords they are using, and which servers drove that traffic to you. Referring Sites No need to wonder where your hits are coming from. Wusage 7.0 shows you exactly which sites are directing traffic to yours! Wusage 7.0 also allows you to "drill down" from an individual document to discover which pages on the World Wide Web link to that document. Visits and Trails Wusage 7.0 can measure "visits" to your site, in addition to simple page counts. You have control over the definition of a visit. Visit counts "smooth out" fluctuations caused by the different software programs used by different users, resulting in a more accurate count of true user sessions. Wusage can also track the most commonly followed "trails" through your site, revealing what your customers are really after and the path they follow to get there. Trails can even begin with pages on other sites! Advanced features allow you to discover how many users came from a particular site and ended up at a particular page. Other features:
- Wusage's incremental database allows you to retire your log files as soon as they are analyzed. Save time and disk space!
- Wusage can analyze log files from many "mirror site" web servers at the same time.
- Proxy server logs can be analyzed. Find out where your users are headed!
- Wusage 7.0 can send reports by email, as well as generating easily printed, attractive HTML reports with full color charts and graphs.
- When supported by your web server, Wusage's support for "cookies" allows better visit analysis.
- "Drill down" into subdirectories to get the details.
- Authenticated user analysis.
- Supports user agent analysis. Find out what web browser your customers are using!
- Wusage 7.0 can analyze compressed files.
- Log files can be analyzed directly by FTP. Downloading log files in advance is not required.
- Allows you to produce reports with header and footer text suited to your organization.
- Highly customizable HTML reports allow easy translation to another language. The report macro language of Wusage 7.0 provides dramatically enhanced control over presentation.
- Reveals which file types, such as GIF, JPEG, HTML and PDF, are being downloaded most often.
- Provides information about the operating systems preferred by your users. Find out what percentage are using Macintosh, Windows 98, and other operating systems.
How do I view my Visitor Stats?
"Wusage 7.0" Your Access and Stat Logs One of the directories you will find preinstalled within your www directory is named "wusage". This directory contains the access and stat files for your website. To access your personal wusage directory log onto the Internet with your web browser and go to: http://www.yourdomain.com/wusage. The web page displayed will contain all the statistics for your domain for the previous week. The page will also contain a Weekly Reports link which, when accessed, will provide much more detailed statistics including pie charts and graphs. These reports are automatically updated for you daily and are always stored in the same place for easy comparison.
What does accesses refer to in Wusage reports?
An "access" is a single, successful request made by a web browser. Every successful request for any resource on the web server, whether for an image or a document or for another type of information, is regarded as an access.
What do the terms in Wusage refer to?
Below is a list of key references in wusage and their meaning.
- agents: An "agent," or user agent, is a web browser or other program used to access your web server. Most user agents are web browsers such as Microsoft Internet Explorer and Netscape Navigator, but a significant number are automated Internet-indexing programs, such as Altavista.
- bytes: A "byte" is a single character of information. In the reports generated by Wusage, the "bytes transferred" figure refers to the number of characters of information that were sent to the browser. This is helpful in determining how much of the web server's connection to the Internet (how much bandwidth) is currently in use. It is especially useful to site administrators who pay for bandwidth by the megabyte or gigabyte on a regular basis.
- trail: A "trail" is a unique path among the documents on the web server, followed by one or more visitors to the web server. Every visit to the web server follows a trail. Commonly followed trails represent useful information about the preferred routes that your visitors follow.
- visit: A "visit" consists of one or more accesses made by the same visitor, with no more than a certain time interval between accesses.
Where can I find more information about Wusage 7.0?
Goto the online manual at Boutell.com. Keep in mind because we run Wusage in a shared hosting environment, and you should only be looking at the information pertaining to the Wusage config file for generating reports.
What are Referrer Logs?
Referrer logs are extra entries in your access-log file telling you what site your visitor came from. By default referrer logs are not included with most accounts but may be added for a small extra monthly fee. When you add referrer logs we also activate the agent logs for your domain which keeps track of the type of browsers being used to access your web site.
How do I view Referrer Logs?
Referrer Logs become part of your main access log if you have added them as an option. When using Wusage they will show up as [referrer] next to each file name listed on the report and are hyper-linked to provide the information.
FTP
FTP Maintenance (Uploading Your Files to the Server)
The process by which files are transferred to the web server is called "FTP" (File Transfer Protocol). You have unlimited access via FTP 24 hours a day. As such, you can create and maintain your web pages on your own computer and upload files to your web site at your leisure.
Online services which offer an Internet gateway, such as AOL, CompuServe, and Prodigy may have a built-in FTP interface. If you have a PPP Internet account, you need an FTP program.
If you are using FrontPage, you must create your new web on the "localhost" system. This is accomplished by selecting "create new web," and then entering "localhost" in the line where it asks for the web location. Once you have completed your web on your computer, you can then select the "publish web" option from the file menu in FrontPage Explorer. You will be prompted for your IP address and web name and then it will send it to our servers. Please note that you will be prompted for a user ID and password, and depending on your system configuration it may be the one that we issued you or it may be the one that you entered when you first installed FrontPage. If one does not work, then simply try the other. If you have forgotten what that password was, then you will need to reinstall FrontPage and select a new one.
NOTE: If you are using FrontPage, you should NEVER use regular FTP to upload your files. This will damage the extensions. Stick with one or the other all the time.
For instructions for the most popular FTP client software for both PC and Macintosh users, see the instructions to follow.
For PC Users (WS_FTP)
The following information is contained within your account activation notice and is needed to connect you to your website via FTP:
USERID
PASSWORD
FTP HOSTNAME
Each time you run WS_FTP the Session Profile window will be displayed. A profile contains the information needed to connect to your website. Creating a profile now will eliminate the need for you to configure the software each time you wish to connect to the web server via FTP. To create a profile, click the "New" button and enter a generic profile name at the top of the Session Profile window, such as "My Website." Next, enter your Host Name/Address (yourdomain.com), User ID (yourdomain), and Password for your website.
Next you need to click "OK" to continue. This will connect you to the webserver, where you will connect directly to the root ("home") directory of your account. WS_FTP will display a split screen where files on the left-hand side are within your own computer. You will see several folders on the right-hand side such as www, and infobots which are landmarks suggesting a successful connection to your website
You need to double click on www to get to your web directory. This is where all your files will be downloaded, and/or you will create subdirectories. The only system directory that you may need to use is cgi-bin; this directory is reserved for custom scripts. To make your home page load automatically, name the HTML document "index.htm" in lowercase and upload it to the www directory of your account. To upload a file or files, simply highlight the file(s) on the left and click the right arrow button (->) in the center of the window. Be sure to upload HTML documents and scripts in ASCII mode and images in Binary mode. To transfer a file to a subdirectory, double-click the appropriate subdirectory to open it before transferring the desired file(s). To create a new directory, click on the MkDir button when you are inside the www directory or subdirectory.
As soon as a file is uploaded to the web server, it is available for all to see. If, after uploading a file, you are still unable to see the updated file via Netscape, try hitting the "Refresh" or "Reload" button. If that fails, you need to clear both disk and browser cache. This function can be found by selecting Options>Network Preferences in Netscape. Remember that you must first be connected to the Internet through your local Internet service provider in order to connect to the web server.
For PC Users (Cute FTP)
This is a brief tutorial showing you how to set up Cute FTP in order to connect to our server.
- Start the application by double clicking on the program icon. After the program starts, you will be in the Site Manager window. This is where you set up all of your FTP connections.
- Create a new connection site by clicking on the Add Site button.
- The Host Address :
- Basic Web site customers : Use our domain name as the Host Address as shown.
- Domain Web site customers : Use your IP Address or your domain name as the Host Address.
Note : This will only work when your domain name has been finalized with Network Solutions. In the meantime, you must enter your IP number in the Host Address area.
- Once you are connected, click on the "www" directory. This is where all of your files are to be placed. You will now see a list of the files in your current directory.
- To transfer files to your account, select "Upload" from the "Commands" menu, and choose which files or folders you wish to upload.
- To download files from your account to your home computer, choose the file you wish to download, and select "Download File" from the "Commands" menu.
- These are the basics to using Cute FTP. If you need more information, please use the "Help" menu in the application or read any documentation that came with the program.
For Mac Users (Fetch)
The following information is contained within your account activation notice and is needed to connect to your web site via FTP:
USERID
PASSWORD
FTP HOSTNAME
The hostname tells your FTP software to connect to the web server upon which your web site resides. Each time you run Fetch, the New Connection... window will be displayed. A profile contains the information needed to connect to your web site. Creating a profile now will eliminate the need for you to configure the software each time you wish to connect to the web server via FTP. To create a new profile, select "New Connection..." from the File menu. Next, enter the Host (yourdomain.com), User ID (yourdomain), and password for your web site.
Don't worry about the Directory option right now. When you have your Host, User ID, and Password entered, click on the OK button. The next window which will pop up will look virtually the same, except that yourdomain will be in the popup window.
Bookmarking the Connection
You should take the time, now that you have established your connection, to make it easier for you to get here next time. Under the Customize menu, select New Shortcut. A window will pop up called Bookmark Editor. It will already have your name, Host, and User ID filled in. Under Type, choose File from the popup menu. If you would like Fetch to remember your password so you won't have to type it in each time, type in your password in the Password field. Now, under the same Customize menu, choose Preferences, and under the General tab, make sure the connection you just entered is selected as the default shortcut. Next time you open up Fetch, your shortcut will be opened automatically and all you'll have to do is click the OK button!
How to Transfer Files
You need to double-click on www to get to your web directory. This is where all your files will be downloaded, and/or you will create subdirectories. The only system directory that you may need to use is cgi-bin; this directory is reserved for custom scripts. To make your home page load automatically, name the HTML document "index.htm" in lowercase and upload it to the www directory of your account. To upload a file or files, simply drag them from your hard drive onto the Fetch window when you are in the appropriate directory or subdirectory. Be sure to upload HTML documents and scripts in Text mode and images in BINARY mode. Or to make life easier, click on the Automatic button, and Fetch will decide the proper format. To transfer a file to a subdirectory, double-click the appropriate subdirectory to open it before transferring the desired file(s).
As soon as a file is uploaded to the web server, it is available for all to see. If, after uploading a file, you are still unable to see the updated file via Netscape, you need to hit the Reload button in the Netscape button bar. Remember that you must first be connected to the Internet through your local Internet service provider in order to connect to the web server.
Anonymous FTP Setup
Your anonymous FTP site is completely different from your website. When people FTP to your domain anonymously, they will see the following directories:
bin dev etc incoming lib pub
"Pub" is where you should put all your anonymously accessible files. "Incoming" is for the anonymous users to upload files. You are responsible for any "pirated" software uploaded by the anonymous users. The anonymous FTP sites will be eriodically monitored for any abuses. You may ignore the other directories (bin, dev, etc, and lib).
You may tell your visitors that they can visit your anonymous FTP site by typing "yourdomain.com" as the hostname, "anonymous" as their username, and their complete email address as the password.
To access the anonymous FTP site via the web, use the following address: ftp://yourdomain.com/pub/
Your HTML to download a file called mirc511s.exe from a webpage would look like this: <A HREF="ftp://yourdomain.com/pub/mirc511s.exe">Download Mirc Now</A>
You should tell your visitors that they may need to right-click on the link if they are PC users, or if they use a Macintosh, they need to hold down the mouse button on the link, then select the appropriate option from the Pop-up menu.
ADVANCED FEATURES
Setting up Your Own "404:File Not Found" Error Page
A file already exists in the www directory of your server. It's called missing.html. You can edit it to your liking, or create your own. As long as it's called missing.html and it's in your root www directory, the server will display it whenever someone tries to access a page on your domain that does not exist.
Password Protected Web Directory
Use monstercontrols to password protect directories.
Simply go to http://yourdomain.com/cgi-bin/monstercontrols to add usernames and passwords to ANY directory you want. That user and all users you've added will be defined in a .htpasswd file in your secure directory by default, and will have access to that directory of your site, which is accessible from a web browser by typing the URL as: http://www.yourdomain.com/directoryname/
To remove a user from your password file (i.e., to remove the access of that person to your protected directories), use monstercontrols, or simply edit the .htpasswd file located in the secure directory. In this file, you'll see usernames followed by a colon (:) and a password string. The string is the password you entered in your control panel encoded in a way to protect the access rights. To remove the privileges of a user, erase the line containing his/her username. Be sure to keep the file in plain ASCII, and not to change ANYTHING else.
E-MAIL
Web Mail
The sophisticated mailing system called MonsterMail(tm) is included as part of your service. In addition to being able to have nearly unlimited infobots by simply adding text files to a directory, you can also redirect mail for everyone in your domain by simply modifying a plain text file.
Email Redirects
There is a file in your home (root) directory called .redirect. This file can be edited and reuploaded. Just make sure that each of your redirects is on its own line, with a space between the name and where you want it directed to. Don't add empty lines between entries, and make sure the file is saved in text (ASCII) format, and uploaded in text (not binary) format. When you download it to your hard drive, you will see that it already has a one-line entry that looks like this:
default yourdomain@yourdomain.com
This line must be left as is, otherwise your POP email accounts could get messed up. But suppose you want all email for your domain to go to your already existing POP account somewhere else. You would then change your .redirect file to look like this:
default yourdomain@yourdomain.com yourdomain existingaddress@somewhereelse.com
If you want to redirect other names in your domain to other people, you could make the file look like this, as an example:
default yourdomain@yourdomain.com fred 73452.452@compuserve.com info goddess@afterlife.com
This would redirect mail for fred@yourdomain.com to 73452.452@compuserve.com, info@yourdomain.com to goddess@afterlife.com, and all other email in your domain would go to yourdomain@yourdomain.com. The benefit of PlusMail redirects is that you don't need a separate POP account for each email address you want to use in your domain. You can put in your webpages, "Send email to help@yourdomain.com" without the need to create a separate entry in the .redirect file because ALL email goes by default to yourdomain@yourdomain.com, unless "help" is specified to go somewhere else!
Multiple redirection is possible. For instance if you want email to go to two addresses at the same time, enter the different emails with no space and a comma to separate them. You can have upto 4 email address to cc:...they must be listed on the same line though. For example:
help beavis@aol.com,butthead@prodigy.net
Email redirects can be used in conjunction with autoresponders to return an error message to people sending emails to invalid email addresses on your domain. This autoresponder could send back an error message like "Oops, you reached an invalid address, please try again." See "Simple Autoresponders" for how to implement this.
Listservers / Mail Lists
PlusMail can also be used to create simple listservers. There is a limit of 5,000 subscribers per listserver. Here are the instructions for setting up a listserver:
- Set up a welcome message in the infobot directory -- you can name it anything you like, but for our example we'll call it welcome.
The text file could say: "Welcome to our listserver. You are now subscribed and any email you wish to publish for all other subscribers to see can be sent to listserver@yourdomain.com.". This message will be automatically returned to the sender each time someone subscribes.
- Now you need to set up a configuration file to tell the mail system to build a mailing list. In your infobot directory create a file called infolist. This is used to tell the system what to do with addresses received from each infobot response. You can have as many lists as you want. But in keeping with the listserver example above, we will call it listserver. Here's what the file should look like:
welcome listserver
The first line should have a space between the two names and be uploaded in text format, not binary. You can have multiple listservers, such as listserver1, listserver2, etc., but you should only have one configuration file. It must be called infolist. To handle all three examples, you'd make the infolist file look like this, with each listserver on its own line, with no blank lines in-between:
welcome listserver welcome2 listserver2 welcome3 listserver3
2A) Now when someone wants to subscribe to your list in the above example, they would email welcome@yourdomain.com. This would return the infobot created called "welcome" and put their email address into the mailing list file in the maillists directory on your server. You can go in and download the maillist file after it has been created and people have subscribed. The mailing list file will be created AFTER the first person subscribes, or if you yourself send email to "welcome@yourdomain.com" to test it. Put yourself on the mailing list to try this. People don't need to subscribe themselves -- you can add their names for them, or remove them at any time by modifying and uploading the file in the "maillists" directory. People cannot automatically unsubscribe themselves. You must go in and manually remove their email address from the list.
- Now when you or anyone who has subscribed to the list wants to send mail to all subscribers, you or they can send email to listserver@yourdomain.com and the PlusMail system will send it to the entire list.
- To password protect the file, add a password to the first line of your maillists file. In order to mail to the list, this password must be in the first line in the body of the message. Anybody that sends to the list without the password will have their message sent to the default address in the .redirect file. You can then decide if you want them to mail to the list and give them the password if you desire.
- If you want to see who is subscribing to your listserver without having to go and check the maillists file periodically via FTP, you can put a line in your .redirect file.
NOTE: it is important that you have the infobot installed before entering the address line in the .redirect. For the listserver example we used above, the line you would add would look like this:
welcome yourdomain@yourdomain.com
The welcome document you created will be sent to the subscriber, AND you will receive their email message.
Note: When sending email to your listserver for the first time, you will get the autoresponder email back right away, but you may not see the corresponding maillist file right away, as our system takes time to build it. Wait 15 or 30 minutes or so and it will show up. (Depending on the time of day and current traffic conditions, our servers may be allocating it to a lower priority).
Setting up Autoresponders
An autoresponder is a simple way of setting up an email address which will return a message automatically when someone sends email to it. Here are the instructions for setting this up.
In your root (home) directory, there is a directory called infobots. Set up a welcome message in this directory -- you can name it anything you like, but for our example we'll call it info. Don't call it info.txt -- just name it plain info with no file extension. The text for the welcome message could say:
"Thank you for requesting more information about our webpage design package. We have several design packages to choose from. Here are our prices..."
Now, whenever someone sends email to: info@yourdomain.com they will automatically receive that text email message to whatever email address they specified as their return-to address. It's as simple as that. Don't set up a redirect in your .redirect file for this. You can have as many autoresponders as you want. Just save them all in the infobots directory and give them each a unique name of anything with between 3-16 characters long.
SitePop - Adding and Removing Your POP3 Accounts & Change POP3 Passwords
To run sitepop, point your browser to yourdomain.com/cgi-bin/sitepop. If you get a screen that says "Set Login Info", your password has not been set and you must enter a username and password. This login will be saved and you will need to use it to run sitepop again in the future. If the screen just says "Login", your username & password has already been defined. By default it is the same username and password given for your domain's main login. Once logged in, you'll have the option to either add or remove pop accounts. To add, enter the name and password you want, and click submit. To remove, select "remove", choose the pop account you want to remove from the drop-down list. It will take a few minutes for changes to take effect, so if you want to remove one right after adding it, you'll have to wait 15 minutes or so before you will be able to.
To change a POP3 password, select the pop account from the menu and select "change password". Then type in the new password and retype it to confirm, then click submit.
AUCTION
Auction Software
- URL to access Auction once installed on your domain:
http://www.yourdomain.com/cgi-bin/auction/auction.cgi - Directory auction data is stored in: /home/auctiondata
(this directory is NOT accessible from a web browser) - Users must register at your auction site before they are allowed to post items. Once they register they will receive an email immediately giving them their username and password to post items.
- Once an item is closed the high bidder and the item owner will receive an email detailing the winning bid information. The item will then be copied to the closed directory so users can still view this item information and the high bidder information.
- Emails are sent out when auctions close to the item owner and the high bidder. Emails are also sent out when someone is out bid.
Making New Categories
Edit line 54 of the script to point to new categories. The directories listed will be automatically created by the script. Each category should be listed like this:
dir ==> 'category name',
So if you wanted to add a category called SHOES to your auction you would add this to the code
shoes ==> 'Shoes',
If you wanted to add more directories, you would just add them each under the previous one so they would be formatted like this:
shoes ==> 'Shoes', computer => 'Computer Hardware and Software', elec => 'Consumer Electronics'
Deleting Entries From The Auction
Only the auction administrator (you) can remove posted items from the auction. You can remove these any time before the auction closes by going to the following url:
http://www.yourdomain.com/cgi-bin/auction/auction.cgi?[category]&[number]&r&[adminpass]< BR>The easiest way to remove an item is to go to the item in the auction that you want to delete and append
&r&[adminpass]
to the end of the url in your browser.
Note:[adminpass] by default is set to the main username of your domain. For example, if your domain was bob.com the adminpass would be bob so you would just go to the item you want to delete and type
&r&bob
after it in your URL box of your web brower, then hit [ENTER] to delete it
Turing Off The Ability For Your Users To Post Items
Set the following field : $newokay=0 (or leave it undefined) and the link to post a new item will not be visible. By default, this is turned on and any registered user can post items to your auction. If this is turned off only the auction administrator (you) can post items. Use the following url to post:
http://www.yourdomain.com/cgi-bin/auction/auction.cgi?1&1&n
Changing the Auction Site Name
By default when someone visits your auction they will see
"yourdomain.com Online Auction"
You can change this by editing the following field: $sitename = 'domain.com'; So if you want to call your auction: Troys Toy Auction. Change this to read
$sitename = 'Troys Toy Auction';
And then on every page of your site you will see this header automatically placed in the upper left hand corner.
CGI
CGI-bin Applications
CGI stands for "Common Gateway Inferface," a fancy name meaning computer programs running on the webserver that can be invoked from a www page at the browser. The "bin" part alludes to the binary executables that result from compiled or assembled programs. It is a bit misleading because cgi's can also be Unix shell scripts or interpreted languages like Perl. CGI scripts need to be saved in ASCII format and uploaded to your server's cgi-bin in ASCII or text format. This is very important.
We don't provide free support for CGI scripts which we did not install on your server. So if you are not already familiar with CGI scripting, you may want to read a book on the subject or find places on the Internet with CGI scripting information. There are many good resources for CGI scripts found on the web. The scripts at Matt's Script Archive found at http://www.worldwidemart.com/scripts/ are very good. Many of our scripts come from here. Another excellent resource is The CGI Resource Index found at http://www.cgi-perl.com/ -- if you are not an expert, look for scripts that are very well documented and come with step-by-step instructions, or contact us for help or installation.
Paths to Date, Mail, Perl, etc.
Here are your paths to the common server resources that CGI scripts often require:
| Sendmail: |
/usr/sbin/sendmail |
| Perl5.003: |
/usr/bin/perl |
| Perl5.004: |
/usr/bin/perl5.004 |
| Date: |
/bin/date |
| Java: |
/usr/local/java/bin/java |
| Python: |
/usr/bin/python |
| Domain path: |
/www/yourdomain
|
| |
(puts you in your web directory) |
| Cgi-bin path: |
/www/yourdomain/cgi-bin |
| |
(puts you in your
cgi-bin) |
Look at the window in your FTP or Telnet client to see
whether your site resides on /home/ or /home2/.
Where to Put CGI-bin Scripts
Put your cgi-bin scripts in the www subdirectory named "cgi-bin". If you have given full POP/FTP/Telnet accounts to other people, each of them will have their own separate cgi-bin inside the main cgi-bin. When they login with their username and password, they will only have access to their own cgi-bin.
Setting Permissions
The following is a simple explanation of file permissions in Unix. To list the access permissions of a file or directory, telnet to your server, then:
cd directoryname
to change the directory until you are either in the directory above the file you are interested in, or above the directory you are checking.
Type: ls -l filename and you will see what the current permission settings are for that file, along with a bunch of other stuff.
Examples of using chmod:
| PEOPLE | PERMISSIONS |
| u = the file's user (you) | r = read access |
| g = the file's group | x = execute access |
| o = others | w = write access |
| a = the user, the group, and others | |
To change permissions for a file named filename.cgi, you need to chmod the file (change mode). For example, when you type this:
chmod u=rwx,g=rx,o=rx filename.cgi
you've given: read, execute, and write access to the user (that's you) read and execute access to the group and read and execute access to others.
Some scripts will tell you to chmod 775 (for example). Doing the above is the same thing as typing chmod 775. You can use either method with our Unix servers. Let me explain:
When using the numeric system, the code for permissions is as follows:
r = 4 w = 2 x = 1 rwx = 7
The first 7 of our chmod775 tells Unix to change the user's permissions to rxw (because r=4 + w=2 + x=1 adds up to 7. The second 7 applies to the group, and the last number 5, refers to others 4+1=5).
When doing an ls -lon the file, telnet always shows the permissions this way:
-rwxr-xr-x
Ignore the first dash, then break up the above into three groups of letters. If there's a dash where a letter should be, it means that there is no permission for those people.
Remember: the first 3 apply to user, the second 3 apply to group, and the third 3 apply to others.
Some FTP clients support changing permissions in a more graphical way. If you have Fetch for the Mac, you have an easy way to change permissions. Go to the file you want to change the permissions on, and highlight it. Under the Remote menu, select Change Permissions. A window will pop up showing the current permissions for the file you had
highlighted. Click on the boxes to change permissions as needed.
WS_FTP accomplishes the same task as above. Just highlight the file you want to check, and right-click on it. A menu will pop up, then select CHMOD.
Permission Settings for the scripts provided
| |
Normal Site |
Frontpage Site |
| BBS |
| bbb dir |
chmod 777 |
chmod 777 |
| bbs/messages |
chmod 777 |
chmod 777 |
| bbs/index.sht |
chmod 666 |
chmod 666 |
| bbs/data |
chmod 666 |
chmod 666 |
| cgi-bin/wwwboard.pl |
chmod 755 |
chmod 755 |
| Guestbook |
| Guestbook Dir |
chmod 755 |
chmod 777 |
| Guestbook/guestbook.cgi |
chmod 755 |
chmod 755 |
| Guestbook/guestbook.setup |
chmod 666 |
chmod 666 |
| Guestbook/guestbook.html |
chmod 666 |
chmod 666 |
| Vistior Links |
| links dir |
chmod 755 |
chmod 777 |
| links/links.htm |
chmod 666 |
chmod 666 |
| cgi-bin/links.pl |
chmod 755 |
chmod 755 |
| Graphic Counter |
| counter dir |
chmod 775 |
chmod 777 |
| counter/logs |
chmod 777 |
chmod 777 |
| counter/ all other
files |
chmod 666 |
chmod 666 |
| cgi-bin/counter |
chmod 755 |
chmod 755 |
| Cgi-bin always chmod 755 all scripts chmod 755 in main bin |
| cgi-bin/counters (text counter) |
chmod 755 |
chmod 777 |
| Random Text |
| random dir |
chmod 775 |
chmod 777 |
| random/random.txt |
chmod 666 |
chmod 666 |
| Password Admin. |
| password dir |
chmod 755 |
chmod 777 |
| All password files |
chmod 666 |
chmod 666 |
Troubleshooting CGI-bin Problems
Below are solutions to some of the more common CGI script problems, in question and answer format.
When I activate my CGI program, I get back a page that says "Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request."
This is generally caused by a problem within the script. Log in via Telnet and test your script in local mode to get a better idea of what the problem is. To do this, go into the directory in which your script is located, then execute the script. To execute the script, you can do it by two ways:
- Type "perl myscript.pl" (Perl being the language interpreter in this case).
- Or simply type "myscript.pl" alone, that will work if the first line is well written to indicate the location of Perl.
The first one is useful to see if there's any error IN your script. The second one is useful to test if your "calling line" (the first line of the script) is okay, i.e. if you entered the right location of Perl.
I am being told "File Not Found," or "No Such File or Directory."
Upload your Perl or CGI script in ASCII mode, not binary mode.
When I test my Perl script in local mode (by Telnet), I have the following error: "Literal @domain now requires backslash at myscript.pl line 3, within string. Execution of myscript.pl aborted due to compilation errors."
This is caused by a misinterpretation by Perl. You see, the "@" sign has a special meaning in Perl; it identifies an array (a table of elements). Since it cannot find the array named domain, it generates an error. You should place a backslash (\) before the "@" symbol to tell Perl to see it as a regular symbol, as in an email address.
I am getting the message "POST not implemented."
You are probably using the wrong reference for cgiemail. Use the reference /cgi-bin/cgiemail/mail.txt. Another possibility is that you are pointing to a cgi-bin script that you have not put in your cgi-bin directory. In general, this message really means that the web server is not recognizing the cgi-bin script you are calling as a program. It thinks it is a regular text file.
It's saying I don't have permission to access /
This error message means that you are missing your index.htm file. Note that files that start with a "." are hidden files. To see them, type ls -al. If you wish to FTP this file in, go to the home/yourdomain directory.
SSI (Server Side Includes)
In order for your SSI to work, the web page must have either .sht or .shtml extensions. Sample SSI: <!--#exec cgi="/cgi-bin/count.cgi"--> Please note that the url must be relative as shown above. Following would not work: <!--#exec.cgi="http://yourdomain.com/cgi-bin/count.cgi"--> All directives to the server are formatted as SGML comments within the document. This is in case the document should ever find itself in the client's hands unparsed. Each directive has the following format: <!--#command tag1="value1" tag2="value2" --> Each command takes different arguments, most only accept one tag at a time. Here is a breakdown of the commands and their associated tags:
- config
The config directive controls various aspects of the file parsing. There are two valid tags:
- errmsg controls what message is sent back to the client if an error includes while parsing the document. When an error occurs, it is logged in the server's error log.
- timefmt gives the server a new format to use when providing dates. This is a string compatible with the strftime library call under most versions of UNIX.
- sizefmt determines the formatting to be used when displaying the size of a file. Valid choices are bytes, for a formatted byte count (formatted as 1,234,567), or abbrev for an abbreviated version displaying the number of kilobytes or megabytes the file occupies.
- include
include will insert the text of a document into the parsed document. Any included file is subject to the usual access control. This command accepts two tags:
- virtual gives a virtual path to a document on the server. You must access a normal file this way, you cannot access a CGI script in this fashion. You can, however, access another parsed document.
- file gives a pathname relative to the current directory. ../ cannot be used in this pathname, nor can absolute paths be used. As above, you can send other parsed documents, but you cannot send CGI scripts.
- echo prints the value of one of the include variables (defined below). Any dates are printed subject to the currently configured timefmt. The only valid tag to this command is var, whose value is the name of the variable you wish to echo.
- fsize prints the size of the specified file. Valid tags are the same as with the include command. The resulting format of this command is subject to the sizefmt parameter to the config command.
- flastmod prints the last modification date of the specified file, subject to the formatting preference given by the timefmt parameter to config. Valid tags are the same as with the include command.
- exec executes a given shell command or CGI script. It must be activated to be used. Valid tags are:
- cmd will execute the given string using /bin/sh. All of the variables defined below are defined, and can be used in the command.
- cgi will execute the given virtual path to a CGI script and include its output. The server does not perform error checking to make sure your script didn't output horrible things like a GIF, so be careful. It will, however, interpret any URL Location: header and translate it into an HTML anchor.
SSI Environment Variables
A number of variables are made available to parsed documents. In addition to the CGI variable set, the following variables are made available:
- DOCUMENT_NAME: The current filename.
- DOCUMENT_URI: The virtual path to this document (such as /docs/tutorials/foo.shtml).
- QUERY_STRING_UNESCAPED: The unescaped version of any search query the client sent, with all shell-special characters escaped with \.
- DATE_LOCAL: The current date, local time zone. Subject to the timefmt parameter to the config command.
- DATE_GMT: Same as DATE_LOCAL but in Greenwich mean time.
- LAST_MODIFIED: The last modification date of the current document. Subject to timefmt like the others.
MajorCool
MajorCool is a web-based interface to Majordomo allowing users to add and delete themselves from lists and manage lists that they own.
To access this program please enter http://domain.com/cgi-bin/majorcool into your browser.
Should you require help using the program please hit the "Help" button at the bottom of the main page. The program is pretty self-explanatory with just 3 buttons at the top:
- BROWSE-
You can search for lists that contain a certain email address or contain a specific string in their names. You can also get info on any list such as the owner's email address, the info file that is sent to new subscribers, etc. You can even see the entire list of subscribers for each list. All of this part is completely public, you don't need any password.
- MODIFY-
Here is where a list owner can enter their admin password to change anything about the list: add or delete subscribers, change the config file, change the description and info file associated with the list, etc. However they cannot delete the list entirely, or create new lists, or rename any lists.
- PREFS-
This is no big deal, just controls the onscreen display of MajorCool such as changing the layout of the features.
Your first PHP-enabled page
First to view the current version of PHP which is installed on your domain or to see the most common settings please direct your browser to http://www.youractualdomain.com/phpinfo.php
Create a file named hello.php and in it put the following lines:
<html><head><title>PHP Test</title></head> <body><?php echo "Hello World<p>"; ?></body></html>
The colours you see are just a visual aid to make it easier to see the PHP tags and the different parts of a PHP expression. Note also that this is not like a CGI script. The file does not need to be executable or special in any way. Think of it as a normal HTML file which happens to have a set of special tags available to you that do a lot of interesting things.
This program is extremely simple and you really didn't need to use PHP to create a page like this. All it does is display: Hello World
If you tried this example and it didn't output anything, chances are that the server you are on does not have PHP enabled. Ask your administrator to enable it for you.
The point of the example is to show the special PHP tag format. In this example we used . You may jump in and out of PHP mode in an HTML file like this all you want.
Something Useful
Let's do something a bit more useful now. We are going to check what sort of browser the person viewing the page is using. In order to do that we check the user agent string that the browser sends as part of its request. This information is stored in a variable. Variables always start with a dollar-sign in PHP. The variable we are interested in is $HTTP_USER_AGENT. To display this variable we can simply do:
<?php echo $HTTP_USER_AGENT; ?>
For the browser that you are using right now to view this page, this displays:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)
There are many other variables that are automatically set by your web server. You can get a complete list of them by creating a file that looks like this:
<?php phpinfo(); ?> Then load up this file in your browser and you will see a page full of information about PHP along with a list of all the variables available to you.
You can put multiple PHP statements inside a PHP tag and create little blocks of code that do more than just a single echo. For example, if we wanted to check for Internet Explorer we could do something like this:
<?php if(strstr($HTTP_USER_AGENT,"MSIE")) { echo "You are using Internet Explorer<br>"; } ?>
Here we introduce a couple of new concepts. We have an "if" statement. If you are familiar with the basic syntax used by the C language this should look logical to you. If you don't know enough C or some other language where the syntax used above is used, you should probably pick up any introductory C book and read the first couple of chapters. All the tricky string and memory manipulation issues you have to deal with in C have been eliminated in PHP, but the basic syntax remains.
The second concept we introduced was the strstr() function call. strstr() is a function built into PHP which searches a string for another string. In this case we are looking for "MSIE" inside $HTTP_USER_AGENT. If the string is found the function returns true and if it isn't, it returns false. If it returns true the following statement is executed.
We can take this a step further and show how you can jump in and out of PHP mode even in the middle of a PHP block:
<?php if(strstr($HTTP_USER_AGENT,"MSIE")) { ?> <center><b>You are using Internet Explorer</b></center> <? } else { ?> <center><b>You are not using Internet Explorer</b></center>
} ?>
Instead of using a PHP echo statement to output something, we jumped out of PHP mode and just sent straight HTML. The important and powerful point to note here is that the logical flow of the script remain intact. Only one of the HTML blocks will end up getting sent to the viewer. Running this script right now results in:
You are using Internet Explorer
Dealing with Forms
One of the most powerful features of PHP is the way it handles HTML forms. The basic concept that is important to understand is that any form element in a form will automatically result in a variable with the same name as the element being created on the target page. This probably sounds confusing, so here is a simple example. Assume you have a page with a form like this on it:
<form action="action.php" method="post"> Your name: <input type="text" name="name"> You age: <input type="text" name="age"> <input type="submit"></form>
There is nothing special about this form. It is a straight HTML form with no special tags of any kind. When the user fills in this form and hits the submit button, the action.php page is called. In this file you would have something like this:
Hi <?php echo $name; ?>. You are <?php echo $age; ?> years old.
It should be obvious what this does. There is nothing more to it. The $name and $age variables are automatically set for you by PHP.
PRE-INSTALLED CGI-BIN SCRIPT
Cgiemail
Cgiemail is another form processing script, totally different than FormMail, discussed above. It is a program written in the C language that takes the contents of fill-in boxes on a form and emails them to a specified location. In addition to the form specification in the .html file, a mail specification in a .txt file is required to format the resulting email message. We provide the cgiemail in the cgi-bin directory of your server. You need to have an action in your order.htm file to call it. It should look like this: <form method=post action="http://www.yourdomain.com/cgi-bin/cgiemail/order.txt"> Details are provided below. While there are a number of subsections below this one, they all work together and are meant to be read from start to finish.
order.htm Look for a file in your www directory called order.htm. This is our example form we put on your site that shows how a form should be configured to work with Cgiemail. Look at it in a browser, and download it to your hard drive using FTP so you can see how it works. If you've never dealt with HTML forms before, don't worry, they're easy to create and understand. The form prompts the user for data which is sent to the server as simple key-value pairs. Each <input> tag specifies a record. The key is given by the name attribute, and the value is given by the value attribute. The type attribute tells the browser what kind of data to expect. Now, try looking at the example. Please note that the hidden items are used to transmit critical info to Cgiemail. They provide the location of the success file, the name of the person the results should be sent to, and the subject of the form. When making your own forms, you may want to change the email address in the "required-to" field, and likely the subject in the "subject" field. The first item tells Cgiemail what to show the user after successfully completing the form. You can, but don't need to customize this. After that come the items that are actually presented to the user. You'll want to use type=text input items with cgiemail: it's a simple tool. The size=60 tells the browser how big to make the box. The name=something is required in each input tag, otherwise the browser wouldn't know how to send the data to the server. The value=" " attribute is correct in most cases, unless you want a default value in the form. Note that if a field begins with required-, cgiemail will require that the user enter a value for this field. This is particularly useful if you want to require a user to submit their email address. When the user presses the Submit button, the data goes to our machine where cgiemail starts doing something with it. What is does is controlled by the order.txt file discussed below. By the way, you can name your HTML form anything you want to.
order.txt Now that we have all this data, what do we do with it? Mail it, of course! But for flexibility, cgiemail requires that you create a mail.txt file to show it what to send. (If you didn't want flexibility you'd use a mailto link.) The program will read this file, perform substitutions, and pass it to the mail system. Make sure that you upload mail.txt in ASCII mode. Failure to upload mail.txt in ASCII mode will generate the message:
"Server Error: The server encountered an internal error or misconfiguration and was unable to complete your request."
There is already an example order.txt document in the forms directory in your www directory. By the way, there's nothing magical about the name order.txt. Feel free to call it mail1.txt or form1.mail, or whatever suits you, as long as the form has the correct name for what you uploaded. Note that the first several lines are mail headers. You probably shouldn't change that part, or the corresponding parts in your form. In particular, there must be a To: header or the mail won't go anywhere! What cgiemail does is simply replace every string that looks like [key] with the value the user typed into the field with name=key. That's all. You can lay out your form as is best for your users, but lay out your mail.txt as is best for you to read. You can even insert gobs of text to help format the output. Only the [key] parts will be replaced by cgiemail. Cgiemail does not report environmental variables like FormMail will, but other than that, it is an excellent program, allowing you more flexibility in the way you want your data returned by the form.
Formmail.cgi
The script is one from Matt's Script Archive which we have installed and preconfigured for your domain. FormMail is a generic www form to e-mail gateway, which will parse the results of any form and send them to the specified user. This script has many formatting and operational options, most of which can be specified through the form, meaning you don't need any programming knowledge or multiple scripts for multiple forms. This also makes FormMail the perfect system-wise solution for allowing users form-based user feedback capabilities without the risks of allowing freedom of CGI access. There is only one form field that you must have in your form, for FormMail to work correctly. This is the recipient field. Other hidden configuration fields can also be used to enhance the operation of FormMail on your site. The action of your form needs to point towards this script (obviously), and the method must be POST in capital letters. Here's an example of the form fields to put in your form: <FORM METHOD=POST ACTION="http://yourdomain.com/cgi-bin/formmail.cgi"> <input type=hidden name="recipient" value="whoever@yourdomain.com"> <input type=hidden name="subject" value="Order"> <input type=hidden name="return_link_url" value="http://yourdomain.com/"> <input type=hidden name="return_link_title" value="Back to Main Page">
The following are descriptions and proper syntax for fields you can use with FormMail. Recipient Field Description: This form field allows you to specify to whom you wish for your form results to be mailed. Most likely you will want to configure this option as a hidden form field with a value equal to that of your email address.
Syntax: <input type=hidden name="recipient" value="email@yourdomain.com">
Subject Field Description: The subject field will allow you to specify the subject that you wish to appear in the email that is sent to you after this form has been filled out. If you do not have this option turned on, then the script will default to a message subject: "WWW Form Submission".
Syntax: If you wish to choose what the subject is: <input type=hidden name="subject" value="Your Subject">
To allow the user to choose a subject: <input type=text name="subject">
Email Field Description: This form field will allow the user to specify their return email address. If you want to be able to return e-mail to your user, I strongly suggest that you include this form field and allow them to fill it in. This will be put into the From: field of the message you receive. If you want to require an email address with valid syntax, add this field name to the 'required' field.
Syntax: <input type=text name="email">
Realname Field Description: The realname form field will allow the user to input their real name. This field is useful for identification purposes and will also be put into the From: line of your message header.
Syntax: <input type=text name="realname">
Redirect Field Description: If you wish to redirect the user to a different URL, rather than having them see the default response to the fill-out form, you can use this hidden variable to send them to a pre-made HTML page.
Syntax: To choose the URL they will end up at: <input type=hidden name="redirect" value="http://yourdomain.com/to/file.html">
To allow them to specify a URL they wish to travel to once the form is filled out: <input type=text name="redirect">
Required Field Description: You can require certain fields in your form to be filled in before the user can successfully submit the form. Simply place all field names that you want to be mandatory into this field, separated by commas. If the required fields are not filled in, the user will be notified of what they need to fill in, and a link back to the form they just submitted will be provided. To use a customized error page, see 'missing_fields_redirect'
Syntax: If you want to require that they fill in the email and phone fields in your form, so that you can reach them once you have received the mail, use the syntax like: <input type=hidden name="required" value="email,phone">
Env_report Field Description: Allows you to have Environment variables included in the email message you receive after a user has filled out your form. Useful if you wish to know what browser they were using, what domain they were coming from or any other attributes associated with environment variables. The following is a short list of valid environment variables that might be useful: REMOTE_HOST - Sends the hostname making the request. REMOTE_ADDR - Sends the IP address of the remote host. HTTP_USER_AGENT - The browser the client is using. (Note: In our case, both REMOTE_HOST and REMOTE_ADDR are the same, since our servers don't do the reverse DNS lookup needed to generate the true REMOTE_HOST string).
Syntax: If you wanted to find all the above variables, you would put the following into your form: <input type=hidden name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT">
Sort Field
Description: This field allows you to choose the order in which you wish for your variables to appear in the email form that FormMail generates. You can choose to have the field sorted alphabetically or specify a set order in which you want the fields to appear in your mail message. By leaving this field out, the order will simply default to the order in which the browsers send the information to the script (which is usually the exact same order as they appeared in the form). When sorting by a set order of fields, you should include the phrase "order:" as the first part of your value for the sort field, and then follow that with the field names you want to be listed in the email message, separated by commas.
Syntax: To sort alphabetically:
<input type=hidden name="sort" value="alphabetic">
To sort by a set field order:
<input type=hidden name="sort" value="order:name1,name2,etc...">
Print_config Field
Description: print_config allows you to specify which of the config variables you would like to have printed in your e-mail message. By default, no config fields are printed to your email. This is because the important form fields, like email, subject, etc. are included in the header of the message. However some users have asked for this option so they can have these fields printed in the body of the message. The config fields that you wish to have printed should be in the value attribute of your input tag separated by commas.
Syntax: If you want to print the email and subject fields in the body of your message, you would place the following form tag:
<input type=hidden name="print config" value="email, subject">
Print_blank_fields Field
Description: print_blank_fields allows you to request that all form fields are printed in the return HTML, regardless of whether or not they were filled in. FormMail defaults to turning this off, so that unused form fields aren't emailed.
Syntax: <input type=hidden name="print_blank_fields" value="1">
Title Field
Description: This form field allows you to specify the title and header that will appear on the resulting page if you do not specify a redirect URL.
Syntax: If you wanted a title of 'Feedback Form Results':
<input type=hidden name="title" value="Feedback Form Results">
Return_link_url Field
Description: This field allows you to specify a URL that will appear, as return_link_title, on the following report page. This field will not be used if you have the redirect field set, but it is useful if you allow the user to receive the report on the following page, but want to offer them a way to get back to your main page.
Syntax: <input type=hidden name="return_link_url" value="http://yourdomain.com/index.htm">
Return_link_title Description: This is the title that will be used to link the user back to the page you specify with return_link_url. The two fields will be shown on the resulting form page as: Back to Main Page
Syntax:<input type=hidden name="return_link_title" value="Back to Main Page">
Guestbook
Guestbook allows you to set up your own comments page. From there, visitors can add entries to your guestbook and they will be displayed with the most recent at the top and scrolling down, or vice versa. Other options include the ability to limit HTML in the entry, link to e-mail address with mailto tag, use a log to log entries, redirect to a different page after signing, emailing whenever a new entry is added, and much more. Guestbook is already set up for use on your server. You can simply use the following URL to access it: http://yourdomain.com/Guestbook/guestbook.html If you want to change any of the configuration options, locate the guestbook.cgi file in your Guestbook directory (inside your www directory). Download it to your hard drive in ASCII mode, and save it somewhere safe. Create a copy of the file and give it the same name, then edit the options as specified below. Keep your backup of the original guestbook.cgi in case you run into problems.
Option 1: $mail This option will allow you to be notified via an E-mail address when a new entry arrives in your guestbook. The entry will be mailed to you as a notification. If you should choose to turn this variable on you will need to fill in the 2 variables that go along with it: $recipient - Your email address, so that the mailing program will know who to mail the entry to. $mailprog - The location of your sendmail program on your host machine.
Option 2: $uselog This will allow you the ability to use the short log feature. It is already turned on so you will have to change it to 0 if you do not wish to use it. It has been implemented since there are probably many people who feel no need to have a log when people are making entries to a file anyway. Keep in mind that it will show errors which is one nice aspect about it.
Option 3: $linkmail Turning this option on will make the address links in your guestbook become hyperlinked. So instead of simply having (name@some.host) it will put (<a href="mailto:name@some.host">name@somehost</a> so that anyone can simply click on the address to email them.
Option 4: $separator This allows you to choose whether you want guestbook entries to be separated by a Paragraph Separator <p>, or a Horizontal Rule <hr>. By changing the 0 in the script to a 1, you will turn on the <hr> separator and turn off the <p> separator. The 0 option will do the reverse of that; turn on the <p> and turn off the <hr>.
Option 5: $redirection By choosing 1 you will enable auto redirection and 0 will return a page to the user telling them their entry has been received and click here to get back to the guestbook.
Option 6: $entry_order Set this option to 0 and the newest entries will be added below the rest of the entries. Keep this option at 1 and the guestbook will add the newest entries at the top.
Option 7: $remote_mail Many users of the guestbook have requested that a form letter be automatically sent to the remote user when they fill in the guestbook. Turning this option on will tell the script to automatically mail any user who leaves an email address. You can specify the contents of the mail message by editing the section of the script that sends mail to the remote user. By default it sends a message that says, "Thank you for adding to my guestbook." and then shows them their entry. If you should choose to turn this variable on, you will need to fill in the 2 variables that go along with it: $recipient - Your email address so that the mailing program will know who to mail the entry to. $mailprog - The location of your sendmail program on your host machine.
Option 8: $allow_html This option allows you to turn on or off the use of HTML tags by users of your guestbook. Setting this variable to 1 allows users to embed html tags such as <b> or <H1> or <a href=" "></a> into your html document. Setting this variable to 0 will not allow them to use any html syntax in their comments or any other field. You can still link to their comments or any other field. You can still link to their email address by turning $link_mail to 1.
There is also the ability for users to add their own URL and then their name is referenced to their URL in the guestbook.html file. This helps to eliminate the need for allow_html to be turned on, and lets users point you to a spot that will tell you more about them. Several users of the guestbook script have asked for this option. If you wish to disable the option, simply delete the following line from your addguest.html file: URL: <input type=text name=url size=50><br>
These are the rest of the important guestbook files found in your Guestbook directory: guestbook.html This is the file that you will link to that will contain the Guestbook Entries. You may want to edit the title and heading spaces and customize the look any way you desire. Do not delete the line <!--begin--> from this guestbook, or else the script will have no way of knowing where to begin the editing. The <!--begin--> line is the only necessary line in your guestbook.html file, but the link to the addguest.html file is also a good idea. :-)
addguest.html This is a fill-out form to add a new entry into the guestbook. This is also customizable as long as the action tags and basic field names in the form remain the same.
guestlog.html This is a short log that lists domains and times that entries were created. Much easier to browse and it will point out those failed entries when users did not specify a name or comments. You will need to give the file read/write access.
Visitor Links Page
Visitor Link Page allows you to set up a web page which your users can then add links to in specified categories. Newest links are added to the top of each category. A running total of the number of links present as well as the time when the last link was added is shown at the top of the page. Your preconfigured Visitor Links page is already set up on your server at http://www.yourdomain.com/links/links.htm. The only configuration you may want to do is to customize the look of the links.htm page. Just leave the method and input tags the way they are. If you decide to change the category names, you must do so in the links.htm document, AS WELL AS the links.pl file in your cgi-bin.
Secure Server Order Forms
Normally, any text (such as your credit card number) sent from your browser to the web server is sent as plain text. This means that a hacker could potentially intercept (however unlikely) the information sent from your browser and read it. However, by using the secure server, the information is encrypted before it is sent from your browser. It would be practically impossible for anyone to decrypt it without knowing the key. Please use the secure server only when necessary, as when requesting sensitive information from your visitors. The domains hosted by us are housed on any number of computers and all of them have a different machine name. To find out what machine name to use for your secure order access calls, check the faq file of your domain at:
http://www.yourdomain.com/faq.html
Each server has its own site-secure.net site, and although you will be putting your form on your own domain, it must be called through the site-secure.net server in order for the form to be secure. To do this, create your form as usual and put it somewhere in your www directory. You can put your form anywhere you want to, but for this example, let's assume the normal URL for your form can be accessed from a browser with this URL:
http://www.yourdomain.com/signup/secureform.html
To call the form through the secure-order server, you need to use the following URL to access your pages via the secure server (even though your form resides on your own domain space):
https://machinename.site-secure.net/yourdomain/signup/secureform.html
That would be the URL you would put as an <HREF> to link to your form from whatever page you have your visitors link from. Don't forget the "s" in "https." Your cgi-bin dir is:
https://machinename.site-secure.net/yourdomain/cgi-bin/
Special instructions for using FormMail.cgi with the Secure Server If you are using formmail.cgi through the secure server, you can still place your form anywhere on your webspace you want to, but you MUST use the following URL as the ACTION of your form:
https://crimson.site-secure.net/cgi-bin/formmail.cgi
Here's an example of how the first parts of your form might look:
<FORM METHOD=POST ACTION="https://crimson.site-secure.net/cgi-bin/formmail.cgi"> <input type=hidden name="recipient" value="whoever@yourdomain.com"> <input type=hidden name="subject" value="Order"> <input type=hidden name="return_link_url" value="http://yourdomain.com/"> <input type=hidden name="return_link_title" value="Back to Main Page">
It is still important that you call your order page through a secure URL in order to work properly. For example: https://crimson.site-secure.net/yourdomain/order.htm.
Random Text Generator
This script is preconfigured for your server. There is a directory in your www directory called "random." Inside that directory is a file called random.txt. Just download this file to your hard drive and edit it with any random text you would like placed in an html document. Remember to keep the %% separator between quotes. You can use any html formatting tags you want to, including <href> tags so you can configure it as a random link generator. You can put in as many quotes as you wish. Upload the random.txt file to your server in the same location you found it, remembering to upload it in ASCII or text mode. The script uses SSI (Server Side Includes) so the page you want to use random text on must have the .sht, .shtm, or .shtml extension. On your page, just put this tag wherever you want the random text to appear: <!--#exec cgi="/cgi-bin/randomtext.cgi"-->
That's all there is to it!
WWW Board
WWW Board is a threaded World Wide Web discussion forum and message board, which allows users to post new messages, follow-up to existing ones and more. It is already preconfigured for your server. Just go to http://www.yourdomain.com/bbs to post your messages there. There are several options you may want to configure. First of all, the index.sht file in the bbs directory can be customized any way you wish as long as you leave the method and input tags the way they are. Additionally, here are some options contained in the wwwboard.pl script itself (located in your cgi-bin directory) which you may want to change, depending on your needs:
$show_faq = 1;
This option allows you to choose whether or not you want to display a link to the FAQ on every individual message page or not. It defaults to 1 and the link will be put in at the top of the message along with links to Followups, Post Followup and Back to $title. Setting this to 0 will turn it off, and keeping it at 1 will keep the link. You need to create a faq.html file and put it inside the bbs directory. The FAQ can contain any information you want to give your visitors about how the board works, your organization, types of postings that will be allowed, etc.
$allow_html = 1; This option lets you choose whether or not you want to allow HTML mark-up in your posts. If you do not want to allow it, then everything that a user submits that has <>'s around it will be cut out of the message. Setting this option to 1 will allow HTML in the posts and you can turn this option off by setting it to 0.
$quote_text = 1; By keeping this option set to 1, the previous message will be quoted in the followup text input box. The quoted text will have a ':' placed in front of it so you can distinguish what had been said in the previous posts from what the current poster is trying to get across. Setting this option to 0 will leave the followup text box empty for the new poster.
$subject_line = 0; There are three options for the way that you can display the subject line for the user posting a followup. Leaving this option at 0 which is the default value, will put the previous subject line into the followup form and allow users to edit the subject however they like. Setting this option to 1, however, will quote the subject, but simply display it to the user, not allowing him or her to edit the subject line. The third and final option can be achieved by setting the $subject_line variable to 2. If it is set to 2, the subject will not be quoted and instead the user will be prompted with an empty subject block in their followup subject line.
$use_time = 1; This option allows you to choose whether or not you want to use the hour:minute:second time with the day/month/year time on the main page. Day/Month/Year will automatically be placed on the main wwwboard.html page when a new entry is added, but if you leave this variable at 1, the hour:minute:second time will also be put there. This is very useful for message boards that get a lot of posts, but if you would like to save space on your main page, you can set this to 0, causing the hour:minute:second display not to be added.
Search.cgi
Search will look at all your html pages for words you enter, and return all pages on a list with links. This program is completely configured and ready to run, but for Search.cgi to return a response, it need to be activated. This is easily done by logging in via telnet and at the prompt after login type the following command: chmod +r /www/yourdomain
Now you can access search.cgi with the following URL: http://yourdomain.com/cgi-bin/search.cgi.
There is a configuration file called search_define.pl which accompanies search.cgi and sets up the variables for it. You can customize which files you wish to exclude from searches, and also the cosmetics of the search and results pages.
Single Page Shopping Cart (on qualifying accounts only)
There should be a Single Page Shopping Cart program installed on your server. You can see what it looks like by going to this URL with your browser:
http://www.yourdomain.com/shop/boutique.html
If you want to customize the shopping cart, (and you will if you want to sell products using this program), you can visit:
http://virtualpublisher.com/
The Virtual Publisher Shopping Cart program is sophisticated and complex. Rather than reprint all their directions here, please go to their website and download the help files associated with it.
If the Single Page Shopping Cart program wasn't installed on your server and you want it, please send us email and we'll make sure it's installed right away!
Page Counters
There are 3 different types of page counters you can place on your pages. The first is a no-frills graphical counter which looks like this:

To use this one, put the following tag somewhere on your page, but change the yourpage.htm to be the address of the actual page you are putting this counter on. Also, don't break up the tag like we did. We had to do that to fit it on the page. The width=5 part refers to how many digits you want in your counter.
<IMG SRC="/cgi-bin/nph-count?width=5&link=http://yourdomain/yourpage.htm">
Graphical counter: A simple counter called using "img" tag. You can edit the count on any page by going to the counter directory off of your main www and changing the number in the txt file of the page you would like to correct. http://yourdomain.com/counter
Finally, the simplest kind of page counter is a text-based counter. It uses SSI so the page you are putting it on must have the .sht, .shtm, or .shtml extension. It will look like whatever text and size attributes you give it on your page. The tag looks like this:
<!--#exec cgi="/cgi-yourdomain/counters/counter.cgi"-->
After you've put the counter on your page, look at it with your browser. If you don't see the counter the first time, hit reload. Then you should see the number 1. If you want to change the page count, FTP to your site, and look in the counters directory in your cgi-bin. There will be a file there with the name of whatever page you placed this counter on. Just upload a new text file with a new number on it, and that will be the new count on the page next time you hit reload. Remember to upload the file in ASCII or text format.
AlienForm Mail Script
AlienForm is an easy to use Form to Email gateway. It uses simple templates to format all aspects of its output. It can send out more than one email at once so , you can have it send one email to you, a different courtesy reply to the user, and another to a co-worker. It can write directly to files, allowing you to log every time the form is submitted, or to store order details securely on the server.
Features : - Fully customizable output formatted by simple text templates.
- Supports both command line mailers (ie Sendmail) and network (SMTP) sending of email.
- Can send any number of different emails on every invocation.
- Can output (append) to any number of files per invocation.
- Can perform mathematical calculations on data supplied in the form- so you can total orders, work out shipping etc.
- Environment Settings (i.e. current time, user's hostname etc.) may be included in the templates.
- Can check that entered data matches a particular format- i.e. all digits, a syntactically correct email address, letters only, etc.
- Does not have to send email on every invocation- so you can have the form take a number of steps to fill out before finally being logged or emailed.
- Security measures include you being able to specify what forms & sites are allowed to send to the script.
- Simple, easy to understand error messages.
- alienform.html - an example HTML form that would use the templates given below
- af.cgi - the script itself
- email.txt - an example email template to be sent to you
- email2.txt - an example of an automatic courtesy reply, sent to the person using the form.
- error.txt - an example of an error template that would be outputted to the browser should something go wrong.
- output.txt - an example success template that would be outputted to the browser if everything went right.
- logfile.txt - an example of a log file template.
The af.cgi script is already configured to run.
Configure the Templates : Template file names are arbitrary. Try to use names you will remember, e.g. "email.txt", "error.txt". The file extension (.html, .txt) is irrelevant to the script. Wherever you want the user to supply data, use a word inside square brackets, e.g. [yourname], [age]. You can have underscores in variables, as long as there is a switch in front of it. You can specify one or more switches on the start of the variables, e.g. [re_email_address], [d_age]. Switches allowed:
r - this value is 'required'- it must be filled in. e - this value must look like a valid email address. d - this value may only contain digits (0-9) or a decimal point (.). c - this value can only contain digits, a decimal point, or a dollar sign ($). w - this value may only contain "word" characters (A-Za-z0-9). m - this value can store multiple values (useful for checkboxes with the same name). n - this value will have any new line characters (where the user has pressed enter) removed. s - this value's leading and trailing white space will be removed.
The field names in the HTML must match exactly with those in the templates. I.E. same switches etc. For the email templates, make sure the To: and From: line will have a valid email address in it (by using the e switch). If you let the user put in any old information into the To: line, your email program will generate an error. Make sure for email templates that there is a blank line between the headers and the content. Logging templates must have the filename to write to as the first line. Everything after the first line will be appended (tacked onto the bottom of) the file specified. Fields in the templates such as [%HTTP_REFERER], [%REMOTE_HOST] will be substituted with their counterpart environment values. They must begin with a %. You cannot require an environment setting- if it is not set it will be left blank. In error templates, the error title is specified as [%OUT_TITLE], and the error message is specified by [%OUT_MSG]. To do arithmetic, place the calculation in brackets like [< ... >]. Variables will be filled out before being calculated. Examples: [< [d_age] / 2 >] - will be given the value of [d_age] divided by 2. [< ([item1] + [item2] + [item3]) * [tax] >] - will add up the items and multiply them by the tax rate. Remember to save the templates and the script in ASCII or Plain Text mode.
Configure the HTML : All the operations that you want to occur on this iteration are given in hidden form values. I.e. <input type="hidden" name="_send_email" value="email.txt">. Operations are done in the order specified in the HTML. For this reason, it is recommended that you specify the browser output last. All operations are optional. Operations are denoted with a leading underscore. They are:
_send_email - this sends email using the template in this tag's value. _out_file - this logs to a file using the template given in the value. _browser_out - this displays the value's template in the browser. _redirect - this redirects the browser to the URL given here. _error_path - if an error occurs, this template is displayed by the browser. _error_url - if an error occurs, the browser is redirected to this URL. _multi_separator - used with the 'm' value switch, this specifies which character(s) to use to seperate multiple value values. Defaults to ', '. _format_decimals - can be used to format results from arithmetic calculations- if set to "2", the value will be rounded to two decimal points. You can have more than one _send_email or _out_file, if you want more than one email sent or file appended to. In this case, you must specify a unique number or letter after each one- i.e. _send_email_1, _send_email_2, out_file_a, _out_file_b, _out_file_c. It really doesn't matter what you put after them, just as long as each operation is unique. Make sure the name of each field corresponds exactly to what you want it to replace in the templates. It seems some people are having difficulties setting up forms that span multiple pages. Well, it's pretty easy to do once you understand the basic concept: you use multiple _browser_out templates to gather the data in hidden form fields, then submit it all for final processing.
Here is a simple set of examples. The first form collects the submitter's age, the second collects their email address, and the third their favorite color, which then sends it on for final processing (ie. sending emails, logging, etc). Obviously real world situations are going to be a lot more complex than this.
form.html: <form action="/cgi-bin/af2.cgi" method="POST"> <input type="hidden" name="_browser_out" value="part2.txt"> Your name: <input type="text" name="r_name"> </form>
part2.txt:
<form action="/cgi-bin/af2.cgi" method="POST"> <input type="hidden" name="_browser_out" value="part3.txt"> <input type="hidden" name="r_name" value="[r_name]"> Your age: <input type="text" name="r_age"> </form>
part3.txt:
<form action="/cgi-bin/af2.cgi" method="POST"> <input type="hidden" name="_send_email" value="email.txt"> <input type="hidden" name="r_name" value="[r_name]"> <input type="hidden" name="r_name" value="[r_age]"> Your email address: <input type="text" name="re_email"> </form> This works because when the _browser_out text file is parsed, AlienForm will fill in the values in the square brackets from what the user entered.
NueQuiz
URL: http://hostingsupport.com/nuequiz/password.htm (passwd - nuedream) To change the password edit the file named password.cgi in directory nuequiz. Change this enty: $password = "nuequiz"; Choose to edit an existing quiz or create a new one. To create a new one, fill in all of the required fields (the question, the answers, checking the correct answer and the reasoning for the answer) and click "Add".
Access the quiz by using the number of the question in the URL as follows: www.hostingsupport.com/nuequiz/quiz.cgi?expert=1 This will display the first question of the expert quiz.
dp_market
This script includes everything needed to run your own market-place on the internet. Users can submit adverts, which are updated at once and also send to the webmaster if wanted. Setting up and adapting the script is easy and requires no knowledge of Perl/CGI. Info for running and modifying the script is in: /www/user/dp_market/readme.txt
dp_tellafriend
Letting visitors recommend your site to their friends, family and so on, is a great way of getting more and more visitors. This script uses a standard text-file as template, which not only makes setting it up a lot easier, but also makes changing the "look and feel" of the email very easy. Wanna se how it works ? Click 'demo' to recommend DanPromote - to someone you know - or to yourself. http://www.hostingsupport.com/dp_tellafriend/tellafriend.html
Directory Scan (/www/user/dirscan)
The search engine receives the input from the CGI form and processes the required files in order to find the search terms. The list of files is found in /www/user/dirscan/fileinfo.txt. The script would not work if it doesn't get the valid list of files. For compiling the list of files to process use the dirscan.pl utility (so you're actually getting two separate projects, disrcan.pl can be used separately for creating a valid list of your files on the disk). Add the following html code to the page directly in your /www that you want the search button on. Note: be sure to change hostingsupport.com to your domain.
<FORM name=search action="dirscan/find.cgi" method="post"> <b>Search my Homepage:</b><br> <INPUT maxLength=128 size=40 name=string> <INPUT type=submit value="hostingsupport.com" name=Submit>
Search Algorithm
For every search term that is found in a file, a file gets one point. Thus if the search string was "really cool perl script", and the opened file contained the word "really" 0 times, word "cool" 3 times, word "perl" 11 times and word "script" 1 time, the resulting point count would be 15 points. Search engine features The search engine is case-insensitive, thus "pErl", "Perl", "perl" and "PERL" would be treated the same. The location of the search engine on the system is not sensitive, as long as it can get to the valid list of files provided in the fileinfo.txt file. Is it the right one for me? The search engine is optimized to work with the sites containing up to 300 documents, after that level the performance of the engine tends to be slow (since it has to open every file and count the number of points the file gets). By default it searches the documents with "*.htm" extension, but that can be tweaked in the script. How do I exclude files from the search? There is no option to exclude files from the search, if you want them excluded, an option for excluding directories exists in dirscan.pl, if you don't want a specific file to be indexed, exclude it from fileinfo.txt, and do it every time you run dirscan.pl, which basically re-indexes your system and compiles a new list of valid files. Can I customize the results screen? The results of the search can be published with the header and the footer, to provide HTML customization, the header and footer should be located in /www/user/dirscan/header.txt and /www/user/dirscan/footer.txt, if you don't need a header and a footer, comment out the function calls print_header() and print_footer() in find.pl. How the results are published? The results are published as the filenames on your Unix machine, not as the titles.
Guardian
Sends email to your default address whenever someone receives any of the following errors when accessing your site. The 4 lines below need to be in a file named .htaccess in your main /www directory. That file needs to have the permission of chmod 644 (rw-r--r--). Note that the Referer feature won't work unless you have referer logs installed. ErrorDocument 401 /guardian/guardian.cgi?401 ErrorDocument 403 /guardian/guardian.cgi?403 ErrorDocument 404 /guardian/guardian.cgi?404 ErrorDocument 500 /guardian/guardian.cgi?500
NewsPro
http://hostingsupport.com/newspro/newspro.cgi (change to your own domain name) First time login: Username = setup, Password is left blank This takes you to a page to enter your choice of Username, Password and email address. Click continue and complete the setup process. At this stage NewsPro should be fully installed and working. Go back to http://hostingsupport.com/newspro/newspro.cgi and add a news item. The next step it to make your web pages work with NewsPro. When you Submit News to NewsPro it is stored in a database file. Build News takes the news entries from the database and builds them into web-usable files. If you install addons, you may end up building several files in several different locations, but NewsPro always builds a file called news.txt in your /newspro directory. news.txt contains HTML but is not a complete web page and should not be viewed directly in a web browser. It is designed to be included into an HTML page (often your site's home page). SSI (server side includes) is used to add the text to your web page. When you include an SSI in your web page, you are telling the server to merge together two separate files before showing your page to the person visiting your site. In order to use SSI in a web page, you will need to give the page an extension of .shtml rather than .html. The exact SSI code you use to include news.txt depends on where news.txt is located in relation to the HTML file it is being included it. If both files are in the same directory, use: <!--#include virtual="news.txt" --> in your HTML file at the point where you'd like your news to appear. If your HTML file and news.txt are in different directories, use the relative URL from your HTML file to news.txt. For instance, if the locations of the respective files are http://www.yoursite.com/index.html and http://www.yoursite.com/newspro/news.txt, use: <!--#include virtual="newspro/news.txt" --> NOTE: don't forget to change the index.html file name to index.shtml (Be sure that you've submitted and built news, otherwise there's nothing to include.) Once news.txt is being generated and included into your page, you should have a working news system set up. If you post a news item, it will appear on your page. NewsPro is capable of much more than this. You can change what your news items look like, you can archive news items and create different categories of news. For complete documentation see: http://amphibianweb.com/newspro/docs/newspro_documentation.html
2BGuest
Admin login (first time password = web). Be sure to change the password by modifying the file named 2badmin.pl in the 2bguest directory. Change the following line to enter your new password:
$pass="web"; http://hostingsupport.com/cgi-bin/2bguest/2badmin.pl?action=login
http://marnie.cihost.com/2bguest/2 bguest.cgi?action=home (to guestbook)
Random Link Generator
A random link generator with an admin URL used to add and delete links, get the HTML code and test drive the random link. Visitors can also add their own sites through the browser. Change hostingsupport.com to your own | | |