User's Guide Copyright © 2003-2004 indoglobal.com Unless otherwise stated, all material in this manual is copyrighted by indoglobal.com. You may not copy or distribute this manual as a whole or in part without express permission from indoglobal.com. indoglobal.com reserves the right to make changes to this user's guide at any time and without notice. Users will be able to download newer version of this guide from indoglobal.com web site. Linux(TM) is registered trademark of Linus Torvalds. Red Hat(TM) is registered trademark of Red Hat Inc. Microsoft® Windows®, Microsoft® SQL Server(TM), Microsoft® FrontPage®, Microsoft® Windows® NetMeeting®, Microsoft® Access®, MSN®, Microsoft® OutLook®, Microsoft® OutLook Express® are registered trademarks of Microsoft Corporation. UNIX® is registered trademark of the Open Group. MySQL is registered trademark of MySQL AB. WAP is registered trademark of WAP Forum. Apache Web Server and Apache httpd are trademarks of The Apache Software Foundation. Yahoo!® and Yahoo!® Messenger are registered trademarks of Yahoo! Inc. ICQ® is registered trademark of ICQ Inc. AIM® is registered trademark of America Online, Inc. Eudora is registered trademark of QUALCOMM Incorporated. KDE, K Desktop Environment, KMail and Konqueror are trademarks of KDE e.V. GNOME and Nautilus is trademarks of the GNOME Foundation. Novell Evolution(TM) is trademark of Novell Inc. Mozilla, Thunderbird and FireFox are trademarks of The Mozilla Organization. All other product and company names mentioned are trademarks or their respective owners. 26 July 2004 _________________________________________________________________ Table of Contents Quick Start Guide Logging in to SiteManager Creating Web Site Content Creating an Email Account Accessing your email account Closing Remarks Introduction Your account in a glance Pointing Your Domain to Our DNS Servers Logging in to SiteManager Logging in to UNIX Shell Account Logging in using FTP Monitoring Resource Usage Directory Structure Subdomain and DNS Creating new Subdomains Types of Subdomains Regular and Microsoft FrontPage subdomains Webplication DNS Record Dynamic DNS Other Types of Subdomains Deleting Subdomains Email and Subdomains DNS Zone Transfers Publishing and Uploading Files Transferring Files Using FTP Using SiteManager's File Manager Using WebDAV to Manage Files Publishing using Microsoft FrontPage Transferring Files Using scp, sftp and rsync Web Site Development Naming Filenames and Directory Locations Server Side Includes (SSI) Using PHP Scripts Using CGI Scripts in General Installing Perl CPAN Modules Using Active Server Pages (ASP) Using AutoCorrect Feature Access Control Configuration Creating a Graphical Counter Log Files and Analysis Running Scheduled Tasks Creating HTML to Email Forms Using SSL/TLS Migrating From Another Server Checking Your Web Site from Link Errors Converting ASP Scripts to PHP File Permission Database Server Administration Types of Database Creating and Managing Databases Managing MySQL Database Dumping and Restoring MySQL Database Using MySQL Database in Your Application Managing PostgreSQL Database Dumping and Restoring PostgreSQL Database Using PostgreSQL Database in Your Application Improving Security Classes of Security Keeping Third Party Software Up to Date Writing Secure Scripts Use Secure Protocols When Managing Your Account What To Do When a Security Incident Happens Email Management Types of Email Accounts Creating a New Email Account Default Mail Handler Mandatory Email Accounts Checking Emails Configuring Spam Filter Using Global Email Password to Access Your User's Account Protecting Your Email With SPF Jabber Instant Messaging About Jabber Creating Jabber Account Using Jabber Client Psi Tips for Using Jabber A. FTP Clients Configuration Microsoft Windows My Network Places FileZilla KDE Konqueror GNOME Nautilus B. WebDAV Clients Configuration Microsoft Windows My Network Places KDE Konqueror GNOME Nautilus C. Email Clients Configuration Microsoft Outlook Express Qualcomm Eudora KDE KMail Novell Evolution (formerly Ximian Evolution) Mozilla Mail Index Quick Start Guide Table of Contents Logging in to SiteManager Creating Web Site Content Creating an Email Account Accessing your email account Closing Remarks Congratulations for choosing indoglobal.com as your web hosting provider. This section will guide you through step by step process to quickly set up and use your account with minimum effort. For more in depth instruction please see other sections of this manual. In this quick start guide, we will use example.com as example domain. You will need to substitute that with your real domain name. This quick start guide will assume that the account is already set and Internet name servers (DNS servers) are already configured to point to the correct name servers. Logging in to SiteManager SiteManager is your central point of managing your account. You will use SiteManager in order to do almost all aspect of managing your account. 1. Open your preferred web browser and go to our web site 2. Type in your account username and password in the login box and click Go. You account username must begin with u and followed by one or more numbers. 3. If you entered the correct username and password, you should now see the main page of SiteManager Note Your web browser may emit warnings about SSL certificate as we might not use CA signed SSL certificate. However any transmission from and to SiteManager should be safe and encrypted. Please click OK on warning messages to dismiss them. Tip You can also use your domain name as your username if you don't want to remember your account number. Now you have logged in, we will try to use various functions inside SiteManager to configure your account. So don't close your web browser yet! Creating Web Site Content Right now your web site will only have a single placeholder page. Of course, we will want to remove it and install our own web site. We will now try to do that using file manager feature of SiteManager. 1. Click on File manager on the navigation bar. File manager menu should appear shortly. 2. You should now see one subdomain name example.com . On the right of it you will see browse among other choices. For now, just click on browse to browse the web site directory of example.com. 3. Now you should see a directory listing of your web site directory. Right now it will only list one file index.html. This currently contains the boring placeholder page. So we will remove it. Check the checkbox beside the filename, and then click on the Delete button below. You need to confirm your action on the next page. After confirming, the file should now be removed. Click on Browsing example.com to go back to previous menu. 4. Now we will create a new file, click on Create New File. You will now be presented with a form. On filename please enter index.html. In the content text area, you can enter HTML code here. Press Create File to finalize creating the file. Note While the File Manager in SiteManager is convenient to quickly edit a few files, there are numerous other ways of publishing your work on your web site. Please see Publishing and Uploading Files for more in depth information about publishing your web site. Congratulations, you are now able to delete and create files. Creating an Email Account Now we will try to create an email mailbox in your account. 1. Click on Email on the navigation bar. This will bring you the Email menu. 2. Click on Add new POP/IMAP account. We will create a new email account that you can use with your favorite POP or IMAP email client as well as web based email. 3. On the next menu you will be presented with a form. On the email account text field, please fill with your name, for example 'john'. On the right of it is a dropdown list of your domain and subdomain. For this time just leave it as it is. 4. Then please fill the password on the Password and Confirm Password text fields. You need to enter it twice to prevent you from inputting the wrong password. Click on Add New POP/IMAP account to create the email account. Congratulations, you have just created your first email account. Accessing your email account We will now try to access the previously created email account using web based email feature. 1. By default your webmail account is installed on http://webmail.example.com. Please substitute example.com with your own domain name. Visit that address by using your web browser. 2. You should now be presented with a login screen. Enter your email address and password. Click on Login to continue. 3. If you entered the right username and password, you will now be presented with your email inbox. From here the user interface should be self explanatory. You can use the left pane to navigate inside your mailbox. You can use the Compose menu to compose a new message, and so on. Note You can also use your favorite email client to check your email. Please see the relevant chapters for more information. For more information about configuring common email clients please refer to Appendix C, Email Clients Configuration. Closing Remarks Congratulations, now you are able to do basic things like publishing your web content, creating an email account and checking your mails. However, your account is capable of much more than that. On the other chapters you will learn how to make use all of the features we are offering. Thank you for choosing indoglobal.com as your hosting provider. Introduction Table of Contents Your account in a glance Pointing Your Domain to Our DNS Servers Logging in to SiteManager Logging in to UNIX Shell Account Logging in using FTP Monitoring Resource Usage Directory Structure Your account in a glance By hosting your account with indoglobal.com you will have access to a unprecedented wealth of features combined with ease of use. SiteManager lets you configure nearly all of your account's features while still retaining ease of use. SiteManager's interface is web based, you can use it anywhere with Internet access and a web browser. You can create subdomains on your account. They will let you organize your sites in a more professional way. You will also get complete control to your DNS zone. You can do everything related to DNS such as changing MX records, adding A record and others. To publish your web site, you can choose from several options: FTP, WebDAV, SSH, rsync as well as web based file manager. Your account is equipped with sophisticated, subdomain aware email system. You can have several types of email account like POP/IMAP account, email forwarder or autoresponder. You can access your mail by using a standard POP/IMAP email client as well as web or WAP based email. The server environment is highly tuned for flexibility in developing web sites. You have access to various programming language or tools like PHP, Perl, Python, Ruby, ASP and others. You account is also equipped with database servers. You can use both MySQL and PostgreSQL. You can also make more than one database. Those features above are not meant to be exhaustive, you can see more sales pitch on our homepage :). We are sure just by using your account, you will discover a lot of new features. Pointing Your Domain to Our DNS Servers Before your account can be accessed from the Internet, you will need to point your domain to our DNS servers. For more information on how to do this, please refer to the welcome message we sent to you. If you need more assistance please contact our technical support. While it is highly recommended that you point your domain to our DNS servers, you also have the option to use our account without pointing your domain to our name servers. However you will need to manually maintain DNS records on your name servers so that they contain the same records as our DNS servers. You can see DNS records for your account by logging in to SiteManager go to Subdomain & DNS and then Raw DNS Records. Caution It is strongly recommended to point your domain to our DNS servers. Maintaining your own DNS server requires expertise and extra administration tasks in order to synchronize records on your DNS server. Note DNS updates on most top level domains or second level domains are typically propagates within three days, depending on the registrar. Logging in to SiteManager When first signing up our service, you will given a username and password. You can use that username and password to log on to SiteManager. Please follow the instructions below to log on to SiteManager. Note Your account username should begin with 'u' followed by one or more numbers. 1. Visit our homepage with your favorite web browser. Our website will appear very shortly. 2. Use your username and password on the provided login box and then click Go 3. If you entered the correct username and password, you should now see the main page of SiteManager Note Your web browser may emit warnings about SSL certificate as we might not use CA signed SSL certificate. However any transmission from and to SiteManager should be safe and encrypted. Please click OK on warning messages to dismiss them. Tip You can also use your domain name as your username if you don't want to remember your account number. Logging in to UNIX Shell Account The provided username and password combination is also used to log on to your UNIX shell account. Your account is also equipped with access to shell account. Shell account is an environment where you can manage your account using a text based command prompt like interface. Note To properly use shell account you need to know how to properly use it. Information on what and how you can do inside shell account is beyond the scope of this user guide. However most of your account features can be used without using shell account. There are two ways to log on to your shell account: using Telnet or SSH. You will need an appropriate client software like standard telnet or PuTTY when using Microsoft® Windows®. Under UNIX®, Linux or similar system you can use standard telnet or OpenSSH. Warning Using telnet when logging in to your shell account is discouraged. It is highly recommended to use SSH for better security. Logging in using FTP You can also use the provided username and password to log on using FTP. FTP is a common way of transferring files. Some operating system provide a way to transfer files using FTP, some will require you to use a third party FTP client software, please consult your operating system documentation for more information. More information about FTP is available on the section called "Transferring Files Using FTP" . Warning Using FTP is a security risk as your username and password is transmitted in plain text. Please use other means of transferring files whenever possible. Monitoring Resource Usage Your account comes with a limited amount of resource like disk space and data transfer. The amount of resource allocated to your account depends on the level of your account. Caution It is very important to keep your account from using all of the allocated disk space at all time. Many programs will cease working properly when there's not enough disk space. When logging in to SiteManager, you will see the amount of allocated disk space and data transfer. You can also see more details about your resource usage on Resource Usage menu. Directory Structure When creating your account, several files and directories are created within it. This section will let you know the role and functions of those files and directories. Your account is placed on a directory under /home, for example /home/u321. This directory is referred as 'home directory'. Under your home directory there are several files and directories. The following explanation list their role and functions. * clipboard. This directory contains files and directories cut or copied to clipboard using the web based file manager. This directory might not appear when you first access your account. * domain. This directory contains all directories and files related to your domain and subdomains. Directly underneath this directory you can see other directories named with your domain and subdomains. * etc. This symbolic link serves no purpose other than maintaining compatibility with older part of SiteManager. etc used to be a directory but for technical reason separated from your home directory. * lib. This directory contains various support files used by programming languages and other programs. It is used by programming languages like Perl, PHP and Python to look for user installed libraries and other files. For example, any user installed PHP module goes into lib/php/modules/. * lists. This directory holds information about mailing lists you have created. * logs. This directory contains archived log files of your account. For example, web server access log for your domain is stored here. * stats. This directory contains the result of log file analysis performed daily by our system. By default, its contents can be accessed by visiting http://stats.example.com, replace example.com with your domain name. * tmp. This directory is used by various programs to store temporary files. * trash. This directory holds files and directories when deleted from web based filemanager. This directory might not appear when you first access your account. * var. This directory holds work files used by programming languages and other programs. For example, PHP support files are stored under var/state/php/. Caution Please do not remove any files you don't know about. Blindly deleting files could result in problems. Please only delete files or directories that created by you in the first place. Subdomain and DNS Table of Contents Creating new Subdomains Types of Subdomains Regular and Microsoft FrontPage subdomains Webplication DNS Record Dynamic DNS Other Types of Subdomains Deleting Subdomains Email and Subdomains DNS Zone Transfers Subdomain is an extension of your main domain. For example if your domain is example.com, you could create subdomains singapore.example.com and tokyo.example.com. These subdomains could be accessed just like your main domain. Our email system is also subdomain aware. You can create email for subdomains hosted on your account. Based on the example above, you could create john@singapore.example.com and john@tokyo.example.com, both are different users. As you can see, subdomain is a nice way of organizing your your Internet site in a more professional and structured way. Creating new Subdomains It is easy to create a new subdomain: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. Go to Create New Subdomain or DNS Record, and follow the instruction on the next screen. Tip You are not confined into a single level of subdomain. For example, if you have the domain 'example.com', you can create the subdomain 'research.japan.example.com'. You only have to specify 'research.japan' as the name of the subdomain. Types of Subdomains There are several types of subdomain you can create. * Regular subdomain. This type of subdomain is hosted on our server. This subdomain can serve web sites and host email mailboxes. * Microsoft® FrontPage® subdomain. Microsoft® FrontPage® subdomain is similar to regular subdomain with an exception you need to use Microsoft® FrontPage® client to develop its web contents. * Webplication. Weblications are canned web applications that you can install to a subdomain. For example, our web mail feature is implemented as a webplication. It is installed by default on http://webmail.example.com. * DNS record. You can define a custom DNS record using this type of subdomain. You can add A records, NS records and CNAME records. * Dynamic DNS. This is a special type of DNS record. You can use this type of subdomain to assign a static hostname to a dynamic IP address. * Other types. You can make a subdomain that is an alias to another subdomain. You can also make your web server log file analysis result available as a subdomain. Regular and Microsoft® FrontPage® subdomains To create regular or Microsoft® FrontPage® subdomain, you need to do the following: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. Go to Create New Subdomain or DNS Record, enter the name of subdomain you want to create, select Blank web subdomain, and then click Next. 4. On the next screen you can choose whether you want to create a regular subdomain or a Microsoft® FrontPage® subdomain. Choose accordingly and press Next. 5. On the next screen you will be confirmed of your choice. Press Finish to continue. To publish your web site on a regular subdomain, you need to place your web contents inside /home/u777/domain/tokyo.example.com/web, assuming your username is u777 and your subdomain is tokyo.example.com. To publish your web site on a Microsoft® FrontPage® subdomain, you need to use Microsoft® FrontPage® client. Please refer to the section called "Publishing using Microsoft FrontPage" for more information about Microsoft® FrontPage®. Webplication Webplications are a special kind of subdomain that they will be preinstalled with a web application of your choice. An example of webplication is the web based email. Your account's web based email is installed by default when you first receive access to your account. However you can create another webplication if you wish, and there are more webplication other than web based email to choose from. To create webplication subdomain, you need to do the following: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. Go to Create New Subdomain or DNS Record, enter the name of subdomain you want to create, select webplication, and then click Next. 4. Next you can choose one webplication to install. Please press Next to continue. 5. On the next screen you will be confirmed of your choice. Press Finish to continue. Webplication is special that you need to do almost nothing to make it work. After you create a webplication, you can configure it by visiting Webplication menu. From there you can click manage beside the webplication subdomain name you want to configure. On the Manage Webplication screen you can do the following things: * Get information about the installed webplication, its program name, where we get it, its license, description and more. * Convert it to a regular subdomain. If you want to make a modification to a webplication, you should convert it to a regular subdomain, otherwise your changes could be undone when we upgrade the webplication. * Reinstall the webplication. If you find out that your webplication doesn't work as intended, you can try to reinstall it. * Recreate the database used. If the webplication utilizes a backend database, you have the option to recreate the database. * Modify properties of your webplication. Your webplication could have several options that you can change in order to modify its behavior or appearance. You can also revert all the properties items to their default values. Warning If you want to modify files in a webplication, please convert it first to a regular subdomain, otherwise your changes could be lost when we upgrade the webplication. DNS Record DNS record subdomains are useful if you need to point a subdomain to another IP or hostname. There are several types of DNS records you can create: * 'A' record. 'A' record is used to point your subdomain to an IP address. This IP address can be any IP address, not confined to server IP address. For example your broadband connection at home is assigned a static IP by your ISP, then you can use A record to point a subdomain to this IP address. After that you can call it by using the hostname, for instance: home.example.com. * 'NS' record. 'NS' record is used to delegate control of your subdomain to a DNS server. For example, your company have a branch office in France, and they elect to manage their own web site. You can make subdomain france.example.com pointing to their DNS server using NS records. Then they will be able to control france.example.com and configure it on their own without consulting with you first. * 'CNAME' record. 'CNAME' is an alias to another existing hostname. For instance, you can make foo.example.org an alias to foo.example.com. Note Using DNS records, especially NS records will require deep understanding about DNS in general. To create DNS records, please do the following: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. Go to Create New Subdomain or DNS Record, enter the name of subdomain you want to create, select DNS record, and then click Next. 4. On the next screen you can choose whether you want to create A record, CNAME record or NS record. Choose accordingly and press Next to continue. 5. The next screen will differ according to the choice you made on the previous screen. If you choose A record you will be asked an IP address to point the A record to. If you choose CNAME record you will be asked another hostname to make alias to. If you choose NS record you will be asked up to four DNS servers to delegate to. Answer the question and click Next to continue. 6. On the next screen you will be confirmed of your choice. Press Finish to continue. Dynamic DNS Every host on the Internet must have at least one IP address to be able to communicate with others. However there are only a limited number of IP addresses available to use and that's running out very fast. IPv6 is supposed to solve this problem but it is not widespread yet. Therefore, ISPs today treat IP addresses as very precious resource and must be conserved as much as possible. To make use IP address eficiently, they started to assign dynamic IP address to dial-up clients. This means every time a client get connected, he/she will be assigned a different IP address. Usually this won't be a problem for typical client activies, but all server applications suffers. This is like having your telephone number change every day, people will have a very hard time reaching you. We offer Dynamic DNS feature to overcome this problem. Dynamic DNS will assign a static hostname (such as: myhome.example.com) even if your IP address changes. The only requirement is that you need to have an email client check a specified fake POP3 account periodically. This is required to inform our Dynamic DNS server your current IP address so that it can be updated on the server whenever it changes. There are a lot applications that could benefit from having a static hostname. * File Transfer. Transfering files over the Internet is not always a simple matter especially if they are very big. Files over 10 MB in size are almost impossible to transfer by email, most mail servers are rejecting emails too big in size. It is not efficient either, files grow larger when attached to an email. Uploading to hosting account might not be possible due to disk space limitation, not to mention it will cost twice the time. With dynamic DNS you can have the files transferred directly between two regular dial-up accounts without requiring static IP addresses. Have one host named using dynamic DNS and the other host download or upload the files by using FTP. * Remote Administration. Give a dynamic DNS name to your home computer and install a remote administration software. If you leave your home computer running and connected to the Internet, then you will be able to control it while you are at work, Internet cafe, or anywhere with Internet access. * Virtual Private Network (VPN). If your office is still using a dial-up account, it is normally hard to do VPNs since you don't know the IP address in advance. With dynamic DNS you can easily have any employee connect to company network remotely even if the Internet IP address changes. * Internet Voice & Video Communication. With software like Microsoft® Windows® NetMeeting® or any compatible software you can receive audio and video calls. With dynamic DNS you can have your friends call you by using an address like myself.example.com * Webcam and Home Surveillance. With a webcam and a web server software you can publish live pictures to the Internet. With dynamic DNS you can easily publish the address to your friends. It is also possible to use webcams as home surveillance system so that you can monitor your house, kids, etc while at work. Note We only provide the Dynamic DNS service part of the service, the above examples of applications are only a few example that can utilize Dynamic DNS service we are providing. We don't provide those services, corresponding technical support and the required software. Some of the examples above are advanced topics and might require qualified technician. To create dynamic DNS record, please do the following: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. Go to Create New Subdomain or DNS Record, enter the name of subdomain you want to create, select Dynamic DNS, and then click Next. 4. On the next screen you will be asked the password that can be used for changing this hostname's IP address. Try not to forget the password now and press Next to continue. 5. On the next screen you will be confirmed of your choice. Press Finish to continue. Before your dynamic DNS subdomain is usable, you need to have an email client check a special POP3 mailbox in a regular interval. For example, if you created home.example.com as a dynamic DNS subdomain, you need to have an email client check email with the following configuration: * Hostname: 'setup.home.example.com' without quotes; i.e. add 'setup' in front of your subdomain name. * Port: 8110; the default port of POP3 is 110, you need to change it to 8110. * Protocol: POP3 * Username: 'home.example.com' without quotes; the POP3 username is your full subdomain name. * Password: the same password you set when creating the dynamic DNS subdomain. You need to have the email client check the above mailbox every 10 minutes. You will not actually receive any email from the POP3 account. This POP3 checking is only a way to tell our server the current IP address of your computer. When the POP3 server receives your authentication from your email client, it will note your current IP address and update our dynamic DNS server accordingly. There are also several options you can set on your dynamic DNS subdomain. On of the actions of a dynamic DNS subdomain should be settings. From there you can configure whether to use wildcard address or not; the MX record; and whether the MX record is a backup MX record. When wildcard option is enables, you can also have the current IP address accessed using anything.home.example.com, where 'anything' is, well, anything. MX record is used to deliver emails to another email server other than the current IP address. When backup MX is enabled, the specified MX record will act as a backup email server, if your current host is not reachable, it will accept your subdomain's email and deliver it to your dynamic host once it becomes online. Other Types of Subdomains There are other types of subdomains, alias to main domain or access to web site statistics. Alias will only make the subdomain point to the same IP address as your main domain. Alias is useful for names that won't be used for email address or web sites but used for other purposes. When we first created your account, we also configure several aliases such as smtp.example.com, pop.example.com, imap.example.com and others. smtp.example.com for example is used for sending emails. Why use smtp.example.com instead of just example.com? If you tell your email users from now that they should be using smtp.example.com then it will be easier for you in the future if you need to move your mail server to another IP address. If you had told them to use example.com instead, then you need to tell them again to change their email client configuration. Access to web statistics will make the result of daily web site analysis accessible to a subdomain. By default we configure stats.example.com for this purpose. To these types of subdomains, please do the following: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. Go to Create New Subdomain or DNS Record, enter the name of subdomain you want to create, select Miscellaneous, and then click Next. 4. On the next screen you will be asked the type of subdomain you want to create, choose accordingly and press Next. 5. On the next screen you will be confirmed of your choice. Press Finish to continue. Deleting Subdomains To delete subdomains, do the following steps: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. There should be an action columns with several options depending on the type of subdomain. Click delete link on the corresponding subdomain name you want to delete. 4. On the next screen, you need to confirm that you want to really delete the subdomain. Warning Deleting a subdomain will also delete all its web contents and email mailboxes. Please make sure you are absolutely sure that don't have anything important inside the subdomain you want to delete. Email and Subdomains Our email system is subdomain aware, you can create email addresses under a subdomain. However how emails are handled on a subdomain depends on the type of subdomain. * On normal, Microsoft® FrontPage®, alias and webplication subdomains, you have the option to have our email system handle the email; deliver emails to other server(s) using DNS MX records; or refuse all emails. * On A record subdomains, you have the option to use MX records to deliver email to IP address other than one the A record pointing to. Without MX record(s), emails will be sent to the IP address pointed by A record. * Email to a dynamic DNS subdomain cannot be hosted on our server, you have the option to specify an MX records to deliver emails to. The current email policy of each subdomains you have are listed on the Mail Handler column in Subdomain & DNS menu. You can also see that every normal, Microsoft® FrontPage®, alias and webplication subdomains each should have their own edit mail handler menu, and every A records will also have their own edit MX records menu. You can use this menu to configure your email configuration for a particular subdomain. Inside edit mail handler menu there are several options. You can see the current subdomain policy about emails, and modify them by clicking on the edit menu. You can also add and remove DNS MX records here. Note DNS MX records are always ignored unless the email policy is set to be handled by MX records. DNS Zone Transfers DNS zone transfer is a mechanism to replicate DNS data from one DNS server to another. You can add your own DNS server IP address here and set it as a slave (or secondary) server for your zone. Please consult your DNS server documentation for more information. Zone transfer could be useful if you want to replicate your DNS data on your local DNS server in order to conserve bandwidth, to speed up requests or to make DNS data available when disconnected from the Internet. Or your domain registrar requires you to allow zone transfers from certain IP address. Caution To use zone transfer you need to have a DNS server, expertise to configure it, and good understanding on how DNS works. To prevent privacy leaks, nobody is allowed to do zone transfers by default. To allow zone transfers, you need to explicitly define which IP address(es) are allowed to do zone transfers. Other IP address than ones allowed by you will not be granted zone transfer access. To add an IP address to your allow list, please do the following: 1. Log on to SiteManager if you haven't already logged in. 2. Go to Subdomain & DNS menu. 3. Go to IP Addresses Allowed for Zone Transfers. 4. Go to Add New IP Address. 5. On the next screen please specify the IP address you want to allow doing zone transfers with your DNS zone. Press Add New IP Address to add it. Publishing and Uploading Files Table of Contents Transferring Files Using FTP Using SiteManager's File Manager Using WebDAV to Manage Files Publishing using Microsoft FrontPage Transferring Files Using scp, sftp and rsync To be able to serve your web site, first you will need to publish your web site contents to our server. We provide several ways for you to do that. Note These publishing methods have different security implication, please refer to the section called "Use Secure Protocols When Managing Your Account" for more information. Transferring Files Using FTP FTP is a very common way to transfer files on the Internet. To upload files using FTP you need to use an FTP client. Some operating system already ship with an FTP client that you can use, so that you don't have to use an FTP client from a third party. Important You need to use ASCII mode when uploading CGI script files such as Perl, Python or Ruby scripts. You also need to chmod +x those files. If your FTP client doesn't provide that function, you can fix the uploaded files by using AutoCorrect function of SiteManager. the section called "Using AutoCorrect Feature". Uploading files to main FTP account To upload files to your account using FTP you need to connect to hostname primary-ip.example.com using your favorite FTP client (assuming your domain name is example.com) and use your account username and password. Your account username must begin with the letter 'u' and followed by one or more digits. Tip You can also use your full domain name (i.e. example.com) instead of your account username (i.e. u777) to log on to your account using FTP. Important Please note that our FTP server does a chroot to your home directory, that means you will see your home directory as the root directory. The file /home/u777/domain/example.com will be seen as /domain/example.com under FTP. Subdomain FTP accounts Our FTP server provides a way for subdomains to have their own FTP accounts. This is useful if you want to delegate development work to others without giving them the main account. To configure subdomain FTP accounts, log on to SiteManager and go to FTP Accounts menu. From there you can see your subdomains, their physical directory, and whether FTP access is enabled or not. To enable or disable FTP access to a subdomain, click on enable or disable respectively. To set FTP password, please use the set password function. Note Subdomain FTP access can only be enabled for regular subdomains. Important Note that our FTP server will do a chroot to the subdomain directory. The directory /home/u777/paris.example.com/web will be seen as just /web on the FTP server. To upload to a subdomain account, you need to use the full subdomain name as username. The password is the one that you set from FTP Accounts menu. For more information about configuring various FTP client, please see Appendix A, FTP Clients Configuration. Using SiteManager's File Manager Our SiteManager provides a convenient way to upload and manage files on your account. You can upload files, edit text files, manage access control, create archives and a lot more! Like every other part of SiteManager, file manager is web based, you need to use a web browser to use it. Managing Files on File Manager To use file manager, you need to log on to SiteManager and then go to File Manager menu. Under that menu there are the list of your subdomains and various action menu on the right of them. To manage your files on a subdomain, you browse it. Note Only regular subdomains can be browsed from file manager. Inside there is a tabular list of your files and directory under your subdomain. From the leftmost column: the file or directory name along with its icon and check box; file's UNIX attributes; size; last modified; and various action such as rename or edit. Directory names are also clickable, allowing you to navigate inside them. On top of the page there are several menu: * Upload Files, this menu will take you to the upload menu where you can upload up to ten files from your local computer. The uploaded files will be stored on the current directory. * Create Directory, this function will, as the name suggests, create a new directory. The new directory will be created under the current directory. * Create File, this will create a new file on the current directory. You will need to provide a filename and the content for the file you want to create. The content could be anything as long as it is text, such as HTML or Perl scripts. * Create Counter, this function lets you to easily create a graphical counter. See the section called "Creating a Graphical Counter" for more information. * Access Control, this will let you restrict access to this part of your web site to a specified class of users. See the section called "Access Control Configuration" for more information. * DAV Access Control, same as Access Control, except that it controls access for WebDAV clients. See the section called "Using WebDAV to Manage Files" for more information. On the bottom of the screen, there are some button. Those buttons will act for the currently selected files and directories. For example Cut will cut the currently selected files and directories to the clipboard. * Cut. This will 'cut' the selected files and directories to the clipboard. * Copy. This will copy the selected files and directories to the clipboard. * Paste. This will paste the selected clipboard objects to the current directory. You will need to select files from the clipboard before using Paste. * Delete. This will, as the name suggests, delete selected files and directories. Please be careful with this function, as deleted files and directories are not recoverable. * Chmod. This will change the UNIX permission for the selected files and directories. * Archive. This will create an archive file with extension tar.gz on the current directory from the selected files and directories. * Download. This will create a tar.gz archive file out from selected files and directories, and prompt the user to download it. On the right hand side there are various actions for each files and directories. The list of actions will be different for different kind of files. * Rename. This will rename the file or directory name. * Edit. This will only available for text files, allowing you to edit them. * Visit. This will open a new browser window, viewing the file just as viewed by visitors. * Extract. This will extract the contents of archive file to the current directory. The currently supported files are: tar.gz, tar.bz2, tar.Z, gz, bz2, Z, and zip. Tip You can upload a lot of files easily by zipping them on your computer, upload the zipped file, and then extract it using file manager. Clipboard Operation Clipboard is useful for copying and moving files within your account. It is similar to clipboard operations (cut, copy and paste) used by common operating system software. There are three clipboard functions: * Cut. This will 'cut' the selected files and directories to the clipboard. * Copy. This will copy the selected files and directories to the clipboard. * Paste. This will paste the selected clipboard objects to the current directory. You will need to select files from the clipboard before using Paste. To move files to a different directory, first you use 'cut' on files you want to move, 'cut' will move the files from the original location to the clipboard. Then you browse for desired destination directory, and 'paste' those files there. Similarly, to copy files to another directory, you use 'copy' instead of 'cut'. Downloading the Whole Subdomain Contents You can also download the whole contents of your subdomain, i.e. for creating backups. To do that, go to File Manager menu and then click on download for the subdomain you want to download. The downloaded file will be in tar.gz format. You will need a decompression tool that understands tar.gz format in order to open in on your local computer. Using WebDAV to Manage Files WebDAV is a fairly new way of managing files remotely. It is becoming more and more preferred to other methods because it is standardized, and therefore available on almost all newer operating system. And since it is based on HTTP, it can be more secure than most other protocols when using HTTPS. It also means that it is compatible on more firewall configurations than most other protocols. Note On several Microsoft® Windows® version, WebDAV is also known as WebFolders or WebDrive. Important Our WebDAV server is listening on port 81 for standard HTTP and port 444 for WebDAV over HTTPS. Configuring Subdomain for WebDAV Access Before you can access your account using WebDAV, you first need to enable WebDAV access. WebDAV access is enabled per subdomain basis, so you can have one subdomain enabled for WebDAV while others disabled. To enable WebDAV please follow these instructions: 1. Login to SiteManager if you haven't already logged in. 2. Go to DAV/WebFolders. 3. Click enable to the right of the subdomain name you want to enable DAV access. 4. Confirm your action on the next screen. Important You need to wait for at most one hour before any changes in WebDAV configuration is propagated on the server configuration. Configuring DAV Access Control After enabling DAV, you need to assign access control from file manager. You need to tell our system who will be granted read access, who will be granted read-write access, etc. 1. Assuming you are already logged on to SiteManager, go to File Manager menu. 2. Browse for directory that you had enabled its DAV access 3. On the browse screen, you will notice that there will be a DAV Access Control menu. This menu will take you to DAV access control screen where you can configure who will be granted DAV access. For more information on how to configure access control, please refer to the section called "Access Control Configuration". Tip DAV access control is defined on per subdirectory basis. You can have different access restriction on different directory. An access control defined on a deeper directory will override access control defined on the parent directory. For more information about WebDAV clients, please refer to Appendix B, WebDAV Clients Configuration where you can find instructions on how to configure various WebDAV clients. Tip You can use WebDAV as a virtual hard drive residing on the Internet. You use access control accordingly to give access to your users. Then your users will be able to share files with each other. Sharing files this way is a lot more efficient than using email attachment. Publishing using Microsoft® FrontPage® Microsoft® FrontPage® is a special software for publishing web sites. To use all its features fully, you need to use it with Microsoft® FrontPage® subdomain. For more information on how to create a Microsoft® FrontPage® subdomain please see the section called "Regular and Microsoft FrontPage subdomains". Caution Microsoft® FrontPage® is only suitable for small sites. Medium to heavy sites (more than approximately 100 pages) will consume too much server resources. Please consider splitting your site to multiple subdomains or do not use Microsoft® FrontPage® to build your site. To publish using Microsoft® FrontPage® client, you will need a username and password pair. This username and password is not the same as your account password or FTP password. To change password used by Microsoft® FrontPage® subdomain do the following steps. 1. Log on to SiteManager if you haven't already logged on. 2. Go to FrontPage menu to list all your Microsoft® FrontPage® subdomains. 3. Click password to change password for the respective Microsoft® FrontPage® subdomain. On the next screen you will be asked to input the password. To publish using Microsoft® FrontPage® use the username 'administrator' with the password you already set on the steps above. Warning Under any circumstances do not attempt to upload or modify web files residing on a Microsoft® FrontPage® subdomain without using Microsoft® FrontPage® client. Doing so could result in a catastrophic loss of data! If you found problems with your Microsoft® FrontPage® subdomain, you can try to reinstall the Microsoft® FrontPage® extension. To do that perform the same steps above, but click on reinstall instead of password. Transferring Files Using scp, sftp and rsync scp, sftp and rsync are transfer protocol implemented above SSH and therefore should be very secure. You will need to use your account username and password to transfer files using scp, sftp or rsync. rsync has an advantage that it will only send the differences over the wire. For example, suppose that you have a file index.html on both your computer and your account. If you upload index.html from your computer to your account using other method, then the whole index.html will be transferred, replacing the current index.html that is on your account. On the other hand, when you use rsync, only the differences will be transferred, not the whole file, saving you bandwidth and time. The downside of rsync is that it currently lacks graphical client programs and it is not straightforward to install and use rsync on Microsoft® Windows® operating system. Web Site Development Table of Contents Naming Filenames and Directory Locations Server Side Includes (SSI) Using PHP Scripts Using CGI Scripts in General Installing Perl CPAN Modules Using Active Server Pages (ASP) Using AutoCorrect Feature Access Control Configuration Creating a Graphical Counter Log Files and Analysis Running Scheduled Tasks Creating HTML to Email Forms Using SSL/TLS Migrating From Another Server Checking Your Web Site from Link Errors Converting ASP Scripts to PHP File Permission We provide our customers with tools and utilities for developing web applications. Naming Filenames and Directory Locations Each of your regular subdomains has their own web directory. You need to put all of your web contents there. For example, if your subdomain is named madrid.example.com and your username is u777, then its web directory is /home/u777/domain/madrid.example.com/web. If a file test.html is uploaded to this directory, then it can be visited by a web browser using http://madrid.example.com/test.html. Important In our server filenames are case sensitive. For example index.html is different than INDEX.HTML and Index.HTML. This is different than for example Microsoft® Windows® environment. Please make sure that you uploaded your files in with the intended case especially when using Microsoft® Windows®. Our web server will determine the file type from the file extension. The following lists commonly used file extensions for typical web files. * HTML files: .html or .htm * Javascript files: .js * CSS files: .css * JPEG images: .jpeg, .jpg, or .jpe * PNG images: .png * GIF images: .gif * WML files: .wml * WML scripts: .wmls * WBMP images: .wbmp * Shockwave Flash files: .swf Important Please make sure the file extension is in lowercase. Server Side Includes (SSI) From Apache manual: SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology. SSI is useful when you have a piece of HTML code that is massively duplicated in all your HTML files, like navigation headers. To simplify development, you can move that piece of common HTML code to a separate file, then use SSI on other HTML files to include it. To use SSI, the only requirement is that you need to name your HTML files with the extension .shtml. Note SSI is only useful for simple includes, for creating more complex web sites, you need to use full programming languages like PHP or Perl. For more information about SSI usage, please see the Apache web server SSI documentation. Using PHP Scripts PHP is the fastest growing language for web development. PHP is a language that is embedded on HTML code, simplifying web development. PHP is suitable for any sites that requires dynamically generated contents. To use PHP, you need to named your PHP files with .php, .php3, .php4 or .phtml. You can also define additional extensions to be parsed by PHP if you wish to do so. Important Traditionally, our system require every PHP files to be set with their executable bit on (chmod +x). However, as of June 2004, this is no longer the case. It is no longer required to do an AutoCorrect after uploading your PHP files. Note Our PHP system is CGI based, not the more common Apache module based. This has the advantage that we don't have to restrict you using safe_mode while still retaining security. That means you don't have to worry about PHP disabling some function calls. Configuring PHP Our customers can configure their PHP settings themselves. You don't have to rely on our administrators to install PHP modules or changing configuration parameters. You can even install your own PHP modules by yourself. To configure PHP, you need to do it from SiteManager. Go to Language Settings and then PHP Setttings. From there you will see the list of regular domains you have. Every regular subdomains can use the main global PHP settings or have their own PHP configuration. The configuration to use is shown in PHP Settings column. 'Use global configuration file' means the subdomain is using the main account's PHP configuration file. 'Use local configuration file' means the subdomain is using its own PHP configuration file. You can change that by using the action menu use local settings or revert to global respectively. To edit PHP configuration for subdomains that set to use local settings, you need to use view settings action menu. To edit the main global PHP configuration you need to use View global settings menu on the bottom of the page. Inside Configuration Menu Inside the configuration menu you change the way PHP works. To add modules, use the Edit Loaded Extensions menu. From there you can add or remove modules that will be used by the particular configuration. For example, you can enable gd and mysql module if you are going to use image functions and MySQL database. Caution Loading more extensions will require more resources on your account and might cause problems with PHP scripts. Please consider splitting multiple PHP functions into multiple subdomains if you need a lot of modules. You can also change various PHP configuration parameters from this menu. For example, you can change register_globals and magic_quotes_gpc settings here. For more information about PHP configuration parameters, please refer to the official PHP documentation. Caution Do not blindly change PHP settings without knowing their functions. Incorrectly altering PHP configuration might result in problems running PHP scripts. Note Since we don't use Apache module version of PHP, please do not attempt to alter configuration parameters using .htaccess file. It will result in web server errors. Installing Your Own PHP Module You have the option to install your own PHP module if the needed module is not already installed on our server. For example if you obtain a commercial module from a third party. To install a PHP module, go to Custom PHP extensions under PHP Settings menu. It will open a new page listing the currently installed custom PHP modules. You can upload a new PHP module by using Upload new extension menu here. Caution Please make sure that the module you are trying to install is compatible for the version of PHP on our server. Our system will tell you the current version of PHP when you are trying to upload the extension. You will also need to upgrade the PHP extension you uploaded whenever we upgrade PHP on our servers. After the module get installed, you can enable it just like any other modules using Edit Loaded Extensions menu. Installing PEAR Modules PEAR is is a framework and distribution system for reusable PHP components. Your application might need to use some PEAR modules, before you can run your application, you will need to install the appropriate PEAR modules. To manage PEAR modules, you need to go to Manage PEAR Packages menu from the main PHP Settings page. In that page, there will be a list of PEAR packages, globally installed or locally installed. You can install PEAR packages by using Install new PEAR module on the bottom of the screen. From there you can choose which package to install. The list of packages should be current as listed on PEAR web site. Manually Editing PHP Configuration File If you don't want to use SiteManager to configure PHP or if the setting you want to change is not editable yet on SiteManager, you can manually edit the php.ini files by yourself. Assuming your account username is u777, the global PHP configuration is located on /home/u777/var/lib/php/php.ini. And the local configuration for subdomain bangalore.example.com is /home/u777/domain/bangalore.example.com/php.ini. Warning Using SiteManager to configure your PHP settings after manually editing it could result in loss of your manual changes. Adding Another Extension To Be Used By PHP By default, our system will treat filenames ending with .php, php3. php4 or .phtml as PHP files. However, sometimes it is necessary to add additional files to be treated as PHP files. For example, if you want files ending with .html to be parsed as PHP files. To add additional extensions to be parsed as PHP, please do the following: 1. Log on to SiteManager if you haven't already logged on. 2. Go to File Manager and then choose Properties for a subdomain you want to add additional extension to. Or you can also choose Default Subdomain Properties if you want your additions to be recognized by all of your subdomains. 3. Go to section MIME Types, Apache Handlers, Charsets, Encoding, Language and then choose Map an extension to an Apache handler (AddHandler).. 4. On Apache Handler field, choose x-httpd-php. On File extension field, specify an extension (e.g. html). Click Add Extension to continue. 5. Repeat previous two steps if you need to add additional extensions to be recognized as PHP files. Differences From Apache Module Version of PHP There are several differences between Apache modules version of PHP and our unique PHP system. Most of the time you will not notice them, however there are a few differences that might affect your PHP scripts development: * Our PHP system run as CGI mode. This means PHP scripts run more or less the same way as CGI scripts like Perl, Python or Ruby scripts. * Apache specific functions are not available, these include but not limited to: apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_lookup_uri, apache_note, apache_request_headers, apache_response_headers, apache_setenv, ascii2ebcdic, ebcdic2ascii, getallheaders, virtual. Please see http://www.php.net/manual/en/ref.apache.php for more information about these Apache specific functions. While these functions are unavailable, there should be other ways to accomplish the same task. You will need to use other calls and functions that are not Apache specific. * PHP running inside Apache will honor php_flag and php_value directives inside .htaccess file. Since our system is not running Apache module version of PHP, these directives will cause error. In order to modify PHP settings on our system, please refer to the section called "Configuring PHP". * HTTP Authentication works a little differently. The PHP Manual at http://www.php.net/manual/en/features.http-auth.php states that HTTP authentication will not work with CGI version of PHP, however it does work on our system with a little modification. The following is an example of HTTP authentication on our system: Hello {$_SERVER['PHP_AUTH_USER']}.
"; echo "You entered {$_SERVER['PHP_AUTH_PW']} as your password.
"; } ?> Note that the only difference than the example from PHP manual is how we send status headers. * On some PHP providers, you are not allowed to configure PHP yourselves. Any reconfiguration or module additions will require pestering their system administrator. On our system, it is not necessary to get in touch with our system administrator to change PHP configuration (however we will be gladfully help you if you ask us). Please see the previous sections on how to configure PHP on our system. Using CGI Scripts in General CGI scripts are basically regular scripts that called by web browser. You can create CGI scripts by using Perl, Python, Ruby or even shell scripts and C/C++. To use CGI scripts you need to name your scripts with any of these extensions: .cgi, .pl, .py. You will also need to chmod +x or chmod 0755 your CGI scripts. AutoCorrect can do that automatically to all of your CGI scripts, please see the section called "Using AutoCorrect Feature" for more information. When developing CGI scripts, you might need information about the exact location of interpreters or utilities such as Perl interpreter or UNIX sendmail. These information can be obtained from Language Settings menu. Caution CGI scripts must be in UNIX text format. If you create the scripts within Microsoft® Windows® environment you will need to use ASCII mode when uploading using FTP, or fix the uploaded file afterwards by using AutoCorrect. Please see the section called "Using AutoCorrect Feature" for more information about AutoCorrect. Installing Perl CPAN Modules CPAN is a repository of Perl modules. Perl is shipped with command line tools to automatically install Perl modules. indoglobal.com goes a step further by offering an interface for customers to install CPAN modules from SiteManager. To install CPAN modules, go to Perl Settings under Language Settings from SiteManager. There you will see the currently installed Perl modules under your account. Click Perl Module Installation start installing Perl module. On the next screen you will see detailed instruction on how to install Perl module. First, you should try automatic install first. If it fails then you can try the other methods in order. Automatic installation sometimes won't work if the module in question requires user interaction when installing. To perform the other methods of installation, you need to log on to your shell account. Please refer to the section called "Logging in to UNIX Shell Account" for more information. Using Active Server Pages (ASP) Active Server Pages (ASP) is a web development environment commonly used in legacy Microsoft® Windows® based server environment. While indoglobal.com uses Linux servers exclusively, we also offer Sun ONE Active Server Pages for our customers who need to run their legacy ASP based scripts on our servers. Note If you starting a new development and not starting from existing legacy ASP based code, consider using programming language other than ASP. While our servers supports ASP, it is not the native environment for running legacy ASP based scripts, especially when the ASP code in question is developed under Microsoft® Windows® environment. Other languages like PHP or Perl are better supported on our servers. In order to use ASP, as usual you need to name your files with extension .asp. Make sure the extension is in lower case, especially when you are uploading from a Microsoft® Windows® environment. Please also note that filenames on our servers are case sensitive. This is different from Microsoft® Windows® environment where filenames are case insensitive. For more information about developing ASP applications using Sun ONE Active Server Pages, please see the official documentation. Tip If you find ASP is too limiting for developing your application, you can try converting your ASP scripts to PHP scripts. Please refer to the section called "Converting ASP Scripts to PHP" for more information. Difference From Microsoft® Windows® Version ASP's native environment is Microsoft® Windows® and therefore most ASP scripts also developed under Microsoft® Windows®. Since indoglobal.com uses Linux based servers exclusively, care must be taken when developing ASP based application. The following listed several differences between original Microsoft® Windows® version of ASP and Sun ONE ASP installed on our servers. * Case sensitivity. Filenames are case insensitive in Microsoft® Windows® environment, while under Linux they are case sensitive. It is advisable that you use lowercase to name files and also when referencing a filename inside your ASP code. * Database support. Most ASP application developed under Microsoft® Windows® system uses Microsoft® SQL Server(TM) or Microsoft® Access® for its database backend. However, under our servers there are no option to use either product, you will need to use MySQL or PostgreSQL as your application's database backend. If you already have database under Microsoft® SQL Server(TM) or Microsoft® Access® you will need to migrate your data to one of our supported database products. There are several utilities for converting your data to MySQL at http://www.mysql.com/doc/en/Contrib_converters.html. For PostgreSQL, there are also several useful conversion utilites at http://techdocs.postgresql.org/. * Connecting to database. ASP applications developed under Microsoft® Windows® typically use ODBC system DSN to make connection to database. However, for security reason we don't use system DSNs. Instead you will need to use DSN-less connection string. For more information about connecting to databases, please refer to the section called "Using MySQL Database in Your Application" or the section called "Using PostgreSQL Database in Your Application". ASP Components Other than the standard ASP components, there are also other popular ASP components: * SMTP sending component. We use the CDONTS.NewMail similar to NewMail component included with Microsoft IIS. However it does not include these properties and methods: AttachURL, ContentBase, ContentLocation, MailFormat, SetLocaleIDs, Version. * POP component. This component is used to retrieve email messages from a POP3 server. * File upload component. This component enables users to save files uploaded by site visitors to the server. For more information on how to use these components, please refer to ASP Online Help at http://aspdoc.indoglobal.com. Using AutoCorrect Feature AutoCorrect is a feature of SiteManager that will attempt to automatically fix common errors. At the moment, it will attempt to do the following. * Fix the attributes of home directory. Improper permission of your home directory could result in security hole or problem serving your web files. * Fix the attributes of web files. AutoCorrect will automatically fix attributes of web files such as HTML, or CGI. * Convert legacy Microsoft® Windows® text files to standard UNIX text format. Text files include most CGI scripts, HTML and PHP files. Using Microsoft® Windows® format will result in problems serving most CGI scripts. * Lowercase the extension of web files. File extensions such as .html, .cgi or .php must be in lowercase, AutoCorrect will try to automatically fix those. * Create support files, directories and symlinks if they are not already exist. Some directories and files under your home directory is required for some applications. Deleting these could result in problems. For example, PHP session support needs to store session files under var/state/php under your home directory, if this directory is missing, PHP session will not work correctly. Note Please try AutoCorrect first if you encountered errors on your web site. To use AutoCorrect, please do the following: 1. Log on to SiteManager if you haven't already done so. 2. Click on AutoCorrect on the navigation bar. 3. On the next screen you will be prompted by a confirmation screen. Click Yes and then click AutoCorrect. Access Control Configuration indoglobal.com provides an easy way to restrict access to part of your web site. You can manage your web users and groups information. You can also modify access control information for part of your web site. All can be done conveniently without leaving SiteManager. Managing Your Web Users and Groups Our SiteManager has a database for storing username and password information. You can use this database for authenticating access to part of your web site. You can manage this database by using Web User & Group from inside SiteManager There are several operation that can be done from this menu. * Creating new user. Click on Create new user menu and fill the information of the new user on the next screen. The most important part is User ID and password, they are used by your users to authenticate themselves. You can also fill the group membership if you want this user to be a member of a group. A user can be a member of more than one group. * Creating new group. Click on Create new group and fill the group information on the next screen. The important field here is Group ID. * Deleting a user or group. You can delete a user or group by using delete link on the right side of user or group ID you want to delete. * Editing a user or group. You can edit a user or group by using edit link on the right side of user or group ID you want to edit. Please note that you will not be able to change the user or group ID. Restricting Access to Part of Your Web Site There are several place where the above user & group database can be useful inside SiteManager. * Restricting access to part of your web site.. You can restrict access to part of your web site by using Access Control menu under file manager. Please see the section called "Using SiteManager's File Manager" for more information. * Restricting access for WebDAV users. You can restrict access for your WebDAV users by using DAV Access Control menu under filemanager. Please see the section called "Using WebDAV to Manage Files" for more information about WebDAV. * Restricting access to your log files analysis result. You can do that by using Site analysis access control under Log Files & Analysis menu. Please see the section called "Access Control Configuration" for information. Under each of those menus, you can configure who has access to a particular resource. On the configuration page you will see several fields. * Authentication String. This is the string sent to web browser as an identifier. You can leave this to default if you wish. * User Allowed to Access. Specify which class of users you want to allow access to this resource. You can allow any visitors, allow any authenticated user, allow users belong to specific group(s), or only allow specific user(s). To allow specific users or groups, you also need to specify in the selection box which users or groups will be allowed. * Host Allowed to Access. You can specify which host to allow or deny access here. You can allow all hosts except the listed hosts, or you can deny all hosts except the listed hosts. * Access Allowance. This field configures how user and host based authentication above interacts. You can choose if access granted whenever both user authentication and host authentication are successful. You can also choose to grant access if any of user authentication and host authentication is successful. Leave it to default if you don't understand. Creating a Graphical Counter You can easily create a graphical counter using file manager. 1. Log on to SiteManager if you haven't already logged on. 2. Go to File Manager menu and then click browse on the subdomain in which you want to create the counter. You also might want to browse for directory where you want to put the counter into. 3. Click on Create Counter when browsing your subdomain contents. 4. On the next screen you need to specify the name of the counter file. The counter will be created under the current directory. You also need to specify the digit style and starting value of the counter. You can choose from our extensive collection of digits consisting more than 500 digit styles! 5. Click on Create Counter to create the counter On the confirmation screen you can see the code you need to paste to your HTML files. For example if you created a counter named 'mainpage.count' then you will need to use the HTML fragment similar to this to call the counter: