Please read our FAQ section below or contact support@2uhost.com
Control Panel

You can access your control panel at: http://www.yourdomain.com/cpanel/   There is a detailed list of all functions and information on how to use them.
E-Mail

What are the mail server entries I should use?

Both incoming and outgoing mail servers should be setup as mail.yourdomain.com

How do I setup POP3 accounts?

Login to your control panel as a site admin. Then add a user. The name of the user will also serve as an email account. So if you add a user bob, your site is also then configured to receive mail for user@yourdomain.com.

Can a user receive email addressed to multiple names, and if so how?

Yes, a user can receive email for multiple aliases. To set this up, login to your control panel and click the envelope icon next to the user you wish to setup aliases for. The middle box on the page that loads is where you can setup your aliases. So if you want the user bob to receive mail for webmaster@ and sales@, you would merely put webmaster and sales in the Aliases box. Make sure to put them on separate lines.

How do you setup Email Forwards?

Login to the control panel for your site. Once you have done this you will be presented a list of the users for your site. Click the envelope icon for the user taht you want to forward mail for. The page that loads will have three boxes. The top box is for your Forward Address. Put the address you want mail forwarded to. Note that if you have the user bob, with the aliases webmaster and sales, anything at bob@, webmaster@, and sales@ will be forwarded to the address you specify.

How do I setup an auto-responder for an email account?

To setup an auto-responder you will need to be logged into the control panel. Now click on the envelope icon, beside the user you wish to set an auto-responder for. The page that loads up will have three boxes. Select the bottom box, which is for "vacation response" Type the message in the box that you want it to send. Note that by enabling this feature for a user that receives mail for an alias as well, the auto-responder will be sent out for those.

Can I have both an E-mail Forward and an Auto-Responder?

No !!

How do I setup a catch-all email account?

Every account starts out with a default "catch-all" account for its domain. This email box will grab all mail heading to ANYNAME@yourdomain.com. The login for this box is simply the same main account login you received after signing up. Thus, if your root account is "test@homepage.net" (login of "homepage" - first 8 letters of your domain), there is no need to request an alias to your root account, because all names under your domain already are filtered into this account.

Why I Can't send mail?

Our SMTP servers are configured as secure relays. This means that you cannot simply reference "mail.yourdomain.com" as an Outgoing mailserver unless you successfully log in via one of your pop3 accounts at "mail.yourdomain.com' before you try to send. This is a mandatory setting to prevent spammers from using our mailservers as havens for unsolicited email. If you are getting a "relaying prohibited" or "disconnected by administrator" error, it means that you haven't logged into the pop3 server at your domain before you tried to send through the smtp server at your domain. To log in, you need to check for mail first.

In addition to this, you might not be able to send regardless of if you check mail successfully. Some ISPs have it set so that their users cannot use an outbound SMTP server to relay messages. If you are still experiencing problems sending through your domain, and are certain that you have logged in via pop3 to an account at your domain, you might want to contact your local ISP to see if they do allow their users to use outbound smtp servers.

How can I enable webmail for an account?

All e-mail accounts created from the "Add/Remove accounts" section of your Mail Menu have webmail access - there is nothing you need to do to enable it.

  What is the correct URL to login to webmail?

You can either login via your control panel, or by visiting http://yourdomain.com/webmail/ , notice the following / (thats needed!). You can also use: http://yourdomain.com:2095/ - the username would be the FULL e-mail address for that account, and the password would be the password established for that e-mail account.

TOP of Page


What is CGI?
CGI, Common Gateway Interface, includes programs that run on the server to enhance the quality and functionality of a web site. There are many resources on-line that allow the downloading of free cgi scripts.
( For instance: http://www.worldwidemart.com/scripts )
or ( http://www.cgi-resources.com/Programs_and_Scripts/
http://www.hotscripts.com/Perl/Scripts_and_Programs )

  Do you allow CGI to run on your servers?

We do allow running of cgi scripts on the servers, however they must conform to our acceptable server resource usage policy. If we deem that a script is using an excessive amount of server resources, your account will be disabled.
  Whats the correct path to perl?
Before a cgi script will work certain modifications must be made to them. Certain paths must be specified in some scripts. After the "#" in the first line of the perl script, the path to perl must be specified. /usr/bin/perl should suffice for this path. Below is a printout of a "whereis perl" from our system.

perl: /usr/bin/perl

  What is the exact physical path to your root directory on the webserver?

The path to your root directory is: /home/username/  Obviously, substitute "username" with the login you were assigned when you first received your account details. Also, keep in mind that when you configure your CGI, that your /public_html is included in your path. For instance, if you have a guestbook.pl script in your /cgi-bin, the exact physical path to that file is: /home/username/public_html/cgi-bin/guestbook.pl

  Why doesn't my CGI work?

Make sure when you upload the CGI file DO NOT upload in binary mode, instead use ASCII mode. Uploading in binary will cause the server not to recognize the scripts as executables. Most FTP clients will upload .pl or .cgi files in binary mode by default so you will need to change this. You will need to upload the scripts into your cgi-bin directory for security reasons, however they will execute from anywhere within your account. The last step is to set the file permissions. This is otherwise known as chmoding and can be done from most FTP clients.

  Links to places where you can learn CGI/Perl?
The following is a list of sites we recommend

http://www.ora.com/info/cgi/intro.html
http://208.16.5.2/~myrkatz/journal/cgitutor/
http://www.web-consult.com/web/perl.html
http://www.extropia.com/Scripts/Book/Mis/appendix_a.html
http://lightsphere.com/dev/class/

  I get a permissions error when executing my CGI program, what should they be set at?
CGI Scripts: chmod 755
Data Files: chmod 664

  I am having a problem with my CGI script. Do you have any advice before contacting support?
Below are solutions to some of the more common CGI script problems.

When I activate my CGI program, I get back a page that says "Internal Server Error. The server encountered an internal error or mis-configuration and was unable to complete your request."

This is generally caused by a problem within the script. Check your script settings again to see that you have entered the correct server information and have set the correct permissions for the script. If this information is correct, you'll need to contact whoever wrote or is distributing the script for further assistance.

I am being told "File Not Found," or "No Such File or Directory."

Upload your Perl or CGI scripts 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 a back slash 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 back slash (\) 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.
TOP of Page

What is SSI?
Server Side Includes allow users to create documents which provide simple information to clients on the fly. Such information can include the current date, the file's last modification date, and the size or last modification of other files. In its more advanced usage, it can provide a powerful interface to CGI and shell programs.
When using a UNIX system it is sometimes necessary to enable certain HTML files executable for the purpose of using SSI. Server Side Includes are often used to run a cgi script. An include is called with an example such as this: After you insert your include, you must mark the HTML file as executable so the server will parse the file. This is done using one of two options.

1.) Renaming the file to .shtml: On our server any file name .shtml will be parsed. So instead of having an index.html file, you would name it index.shtml. This is the easiest way of enabling includes.

2.) CHMODing the file to 777: With CHMOD 777 you can also mark a file as executable. It is important to only make the files which you want parsed executable. This poses certain security issues, as well as a strain on our resources, as the processor has to work harder to
parse a file.

  Can I have an .html file calling SSI?
Yes and No. You can modify the MIME type by creating a .htaccess file or adding it in the Control Panel to allow for server parsed .html files. Otherwise you will be beter off placing SSI in .shtml files.
You can get away with using .html instead of .shtml if:
In the .htaccess file put:
AddType text/x-server-parsed-html .html
This will allow for .html server-parsed files.

TOP of Page

Frontpage General Info

FrontPage extensions are included free upon request with all accounts. Keep in mind that you will need a copy of the FrontPage program from Microsoft before you can begin following the directions below:

  Login

Choose "Open FrontPage Web" from the File Menu in FrontPage Explorer. It will ask you for a Web Server of File Location. Enter http://yourdomain.com and then "list webs". Next, you will need to select (double-click) the root web. The requested login and password will be the same as your FTP account.

  Usage:

FrontPage supplies you with two separate interfaces. The FrontPage explorer is used to manage the files within your web site. If you open a file in your web site another program called FrontPage Editor will open. When you are connected to your web then all changes made to any file you edit will be saved to your web.
*Note: Although the software documentation states that you can create the site on your computer and then "publish" it to the web server, we do not recommend this. Many times publishing to the server from your computer will loose the Interactive web bots features that you may have setup when designing your site on your local computer. We recommend that you create your entire site by being connected to your web and saving directly to the server. To move files already created on your web site use the Import command found under the File menu within FrontPage Explorer to select the files to import to the server. This is by far the best method for moving files from your hard drive to the server. Using FTP to upload is not recommended as this may overwrite important files. Also, do not edit .htaccess files since FP uses these.
Additional support documents and complete usage instructions can be found at Microsoft's official FrontPage Home Page. http://www.microsoft.com/frontpage

PHP MySQL

Can I use the mysql program via SSH?

Yes you can. In order to access your database, type the following at the prompt: "mysql -u (your user name) -p (your database name)" It will ask for a password, enter your password and you are in. For more information, please visit http://www.mysql.com

  How do I connect to my database from perl?
#!/usr/bin/perl
use DBI;
my $database="YourDataBaseName";
my $database_server="localhost";
my $database_server_type="mysql";
my $database_user_id="YourUserID";
my $database_password="YourPassword";

$dbh = DBI->connect("DBI:$database_server_type:$database:$database_server", $database_user_id, $database_password) or die "Couldn't Connect To My Database";

  How do I connect to my database from PHP?

The easiest way to manipulate your database is through phpMyAdmin, which is on all of our servers.
$mysql_link = mysql_connect("localhost", "username", "password"); mysql_select_db("yourdomainname", $mysql_link);

For further information, please visit the php website: http://www.php.net, or refer to your favorite php documentation.

  need a PHP and mySQL tutorial - HELP!
Excellent PHP/mySQL tutorial for newbies to advanced:

  What file extension should I use on my php scripts?
.php, .php3 or .php4
TOP of Page