Order Online


Online Community!

Visit our member forum.

 
  You are here: Home > FAQ

FAQ
Support

Online Tutorials

Helpful tutorials for beginners

General Questions

Is 40GB of bandwidth enough for my web site?
Can I resell my web hosting to other people?
Can I host adult content on your servers?
Do you offer a shopping cart?
How can you offer such low prices?
Why should I join Lunarpages?
Do you support SSH/Telnet access?

Extra Options
How much do you charge if I want more bandwidth?
How much do you charge if I want more storage?

JSP & Servlets
About JSP. . . .
How do i structure my JSP directories?
How do I connect to MySQL from Java?
More about Resin (jsp)
note: JSP will not function until your domain name is fully propogated to our servers.

ASP
What are the differences between Chilisoft / Sun One ASP and Microsoft ASP?
Do you support Microsoft Access database?
note: ASP will not function until your domain name is fully propogated to our servers.

Domain Name
How do I move my domain name to Lunarpages?
Who is my Registrar?
How do I change my name servers?
Why isn't my domain name working?
What name servers should I use?

Control Panel - control panel manual here
Your website statistics
How to password protect directories
How to use your file manager
How to manage your FTP accounts
How to backup your files
How do I add a mime type?
How do I change my passwords?
How do I create e-mail accounts?
What is a MySQL Database?
How to enable and disable the FrontPage Extensions

Need help building your website?
HTML Help


Is 40GB enough bandwidth for my website?


It should be more then enough for a web site that is not excessive in size (amount of pages) or daily traffic. For your site to use more then 40GB of transfer/bandwidth your site would have to be receiving a large amount of visitors on a daily basis and/or have many pages that are being accessed.

Example: Every time one of your web pages is viewed by someone on the internet, the size of that page goes towards your bandwidth usage. Below is an example of how many times a page would have to be viewed to reach 40GB of transfer

page size 30kb = 1,398,101 views
page size 40kb = 1,048,576 views
page size 50kb = 838,861 views
page size 60kb = 699,051 views

back to top

Can I resell my web space to other people?


Lunarpages does not allow subleasing www.yourcompany.com/client or free web space given to other clients. Our web plans are for single users only.

back to top

Can I host adult content on your servers?


We allow adult content. However you should contact our support desk to verify that your site fits our parameters.

back to top

Do you offer a shopping cart?


Our premium accounts have access to two shopping carts (Agora and Interchange).

back to top

How can you offer so much web space and bandwidth at your low prices?


We have found that majorities of people are not going to need a great deal of storage or bandwidth. Research shows the average web site is only 25MB. It all works out in the end, the people with small web sites are not over charged and the people with large web sites get a great deal for their money. Both see the benefits of using Lunarpages.

back to top

Why Lunarpages?


Lunarpages is a low cost and easy to use e-commerce web hosting service. We offer a full range of services which comes with a creation tool, extensive control panel, E-commerce enabling and free e-mail. You have come to the right place for all your hosting needs.

back to top

Do you support ssh / telnet access?


NO

Although the c-panel has an ssh/telnet section, it is disabled on all of our servers for security reasons.

back to top

Extra Bandwidth


If you need more bandwidth allocated to your account. You need to preorder it (you will never be automatically charged if you go over your monthly bandwidth allocation). The charge is $3.95 per extra GB.

back to top

Extra Storage


The charge for extra storage is $2.00/month per 25MB.

back to top

About JSP. . . .


What are Jsp’s/Servlets ?
Servlets are programs written in Java that run in conjunction with a Servlet Runner. Unlike previous attempts to provide the same sort of functionality. such as NSAPI, ISAPI, etc. Java Servlets run on most web servers with little or no modification.

Java Server Pages (JSP) is a scripting language that's a hybrid of Java and HTML. Much like ASP and PHP, it allows web designers to embed scripting code in their HTML pages. When a JSP page is hit for the first time, it gets compiled into a Java file. This Java file is then automatically compiled into a .class file and placed in your WEB-INF directory. Whenever you make changes to the JSP file then Resin automatically detects this and recompiles it.

What Servlet Runner do you use?
We use Resin v2.1.x. which provides fast response times, as the faster that pages load the more likely customers are to look at your entire site and to make a return visit. With fast loading pages, the traffic to your site will in turn grow, then Resin has the capacity to allow your site to expand accordingly.

Resin is acclaimed as one of the fastest and most stable Servlet Runners on the market.

What version of Java is supported?
Currently v1.4.0_01 and v1.4.1_01 (depending on the server)

How do I begin to develop Jsp’s / Servlets?
Sun offers a free Java IDE called “Sun One Community Ed.”, it’s a superb development tool that is easy to use and requires very little configuring. Simply install it and you’re ready to start developing.
You can download Sun One from the URL below, once the page has loaded, scroll down to the section titled “Sun TM ONE Studio 4 update 1, Community Edition - J2SETM 1.4.1 Cobundle section” . http://java.sun.com/j2se/1.4.1/download.html

NOTE: You might be asked to sign up to the “Sun Community” before you can download it, signing up is completely free and also gives you access to other Java development information.

Where can I learn more about developing Jsp’s / Servlets?
A highly recommended book is “Core Servlets & JavaServer Pages", fortunately this book is available online for free - You can download it from: http://pdf.coreservlets.com/
To read it you will need the Adobe Acrobat Reader (available from www.adobe.com).

Where do I put my Jsp’s?
Jsp’s can be stored anywhere you like inside the public_html directory.

Where do I put my Classes and Jars?
Classes are stored in WEB-INF/classes. Jars are stored in WEB-INF/lib.

What is the webapps directory for?
The webapps directory is for the deployment of .war (Web Archive) files, Web Archives allow a website to be compressed into 1 file which can be transported or uploaded to the server more easily than hundreds of separate files.

For an example please see: http://access1.sun.com/techarticles/simple.WAR.html

What is a web.xml?
The web.xml is kind of like a config file for Servlets, for Resin to find this it must be placed in WEB-INF/.

What Is JavaMail?
JavaMail is a collection of jar libraries that can be used to give a Java application the ability to send and receive emails.

How do I use JavaMail?
You must upload the JavaMail activation.jar and mail.jar into your WEB-INF/lib directory, these jar files are included with the JavaMail example (see below).

An example of using JavaMail can be downloaded from http://jsp.lunarpages.com/Mail.war, to use this example simple upload it into you public_html/webapps directory and wait for Resin to extract it – please note you will need to make some very small changes to the sendmail.jsp, (these are described in readme.txt) so you will need to download these, make the changes and then re-upload them.

Can I connect to mySQL from a Servlet or Jsp?
Yes you can the code for a sample Servlet can be found here: http://jsp.lunarpages.com/code/db.htm

What JDBC Drivers do you have available?
We have 2 mySQL JDBC Drivers installed in the classpath, the official Connector/J and mm.mySQL. The driver strings are:

Connector/J - String DRIVER = "com.mysql.jdbc.Driver";

mm.mySQL - String DRIVER = "org.gjt.mm.mysql.Driver";


back to top

JSP DIrectory Structure


 example
  •  index.html
  •  folder.gif
  •  article.gif
  •  post-article.xtp
  •  jsp-interest
    •  index.jsp
    •  article1.jsp
    •  article2.jsp
  •  WEB-INF
    •  lib
      •  bulletin-board.jar
    •  classes
      •  Navigation.class
      •  HelloWorld.class
    •  xsl
      •  default.xsl
      •  article.xsl


back to top

How do I connect to MySQL from Java?


import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;

public class dbTest extends HttpServlet {

// ensure to use the mysql driver
String driver = "org.gjt.mm.mysql.Driver";

// the "url" to our DB, notice the last part is the name of the DB
String url = "jdbc:mysql://localhost/ < YOUR DB NAME >";

// the DB username, note: the username must be associated with then db
// this is controlled through your LunarPages Control Panel.
String name = " <USER NAME>";

// our database password
String pass = "<PASSWORD>";

public void openJDBC(PrintWriter out)
{
try
{
// This is used just to test the DB connection, by making an empty table
String tableStr = "CREATE TABLE test (testid mediumint(8), name varchar(100))";

// Dynamically load the mm driver ...
Class.forName( driver );

// initialize the Connection, with our DB info ...
Connection con = DriverManager.getConnection( url, name, pass );

// tell JDBC to open an update ...
Statement stat = con.createStatement();

out.println( "<p> executing: " + tableStr + "</p>" );

// Execute our SQL update statement
stat.executeUpdate( tableStr );

out.println( "<p> success.... </p>" );

// close our JDBC connection
con.close();
}

catch (SQLException sqle)
{ out.println("<p> Error opening JDBC, cause:</p> <b> " + sqle + "</b>"); }

catch(ClassNotFoundException cnfe)
{ out.println("<p> Error opening JDBC, cause:</p> <b>" + cnfe + "</b>"); }
}

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
PrintWriter out = response.getWriter();
out.println("<html> <head><title>testServlet</title></head> <body> ");

out.println("<p>Attempting to open JDBC connection to:... </p> "+url+"");

openJDBC(out);

out.println("</body></html>");
}

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
doGet(request, response);
}

}



back to top

What are the differences between Chilisoft / Sun One ASP and Microsoft ASP?


Sun ONE Active Server Pages Supported Objects (vs. Microsoft ASP 3.0)
ASP Intrinsic Objects Sun ONE
Active Server Pages
v3.6.2
Microsoft
ASP 3.0
Application Object x x
  Collections:    
StaticObjects x x
Contents x x
Methods:    
Lock x x
Unlock x x
Events:    
Application_OnEnd x x
Application_OnStart x x
ASPError Object   x
ObjectContext Object   x
Request Object x x
  Collections:    
ClientCertificate   x
Cookies x x
Form x x
QueryString x x
ServerVariables x x
Properties:    
TotalBytes x x
Methods:    
BinaryRead x x
Response Object x x
  Collections:    
Cookies x x
Properties:    
Buffer x x
CacheControl x x
Charset x x
ContentType x x
Expires x x
ExpiresAbsolute x x
IsClientConnected x x
PICS x x
Status x x
Methods:    
AddHeader x x
AppendToLog x x
BinaryWrite x x
Clear x x
End x x
Flush x x
Redirect x x
Write x x
Server Object x x
  Properties:    
ScriptTimeout x x
Methods:    
CreateObject x x
Execute   x
GetLastError   x
HTMLEncode x x
MapPath x x
Transfer   x
URLEncode x x
Session Object x x
  Collections:    
StaticObjects x x
Contents x x
Properties:    
CodePage   x
LCID   x
SessionID x x
Timeout x x
Methods:    
Abandon x x
Contents.Remove x x
Contents.RemoveAll x x
Events:    
Session_OnEnd x x
Session_OnStart x x
Additional Components    
Content Linking Component x x
  Methods    
GetListCount x x
GetListIndex x x
GetNextURL x x
GetNextDescription x x
GetPreviousURL x x
GetPreviousDescription x x
GetNthURL x x
GetNthDescription x x
Ad Rotator Component x x
  Methods    
GetAdvertisement x x
Properties    
Border x x
Clickable x x
TargetFrame x x
Counters Component x x
  Methods    
Get x x
Increment x x
Remove x x
Set x x
Browser Capabilities Component x x
Content Rotator Component x x
  Methods    
GetAllContent x x
ChooseContent x x
Page Counter Component   x
Status Component   x
Session Component   x
Permission Checker Component   x
MyInfo Component x x
Tools Component x x
  Methods    
FileExists x x
Random x x
ProcessForm x x
Owner x x
PluginExists x x
Logging Utility Component   x
Chili!Mail Object    
CDONTS.NewMail x x
  Properties    
Bcc x x
Body x x
BodyFormat   x
Cc x x
ContentBase   x
ContentLocation   x
From x x
Importance x x
MailFormat   x
Retain x  
Subject x x
To x x
Value x x
Version   x
WrapLength x x
Methods    
AttachFile x x
AttachURL   x
Send x x
SetLocaleIDs   x
Chili!Upload Object    
Chili.Upload.1 x  
  Properties    
AllowOverwrite x  
SizeLimit x  
FileSize x  
SourceFileName x  
SourceFileExtension x  
Methods    
SaveToFile x  
Chili!POP3 Object    
Chili.POP3.1 x  
  Methods    
Connect x  
Delete x  
Disconnect x  
Reset x  
Collections    
Messages x  
  Objects    
Message x  
  Properties    
From x  
Subject x  
Size x  
DateSent x  
DateReceived x  
MsgID x  
MsgUID x  
HasAttachments x  
Message x  
Methods    
PreviewMessage x  
SaveAttachments x  
Collections    
To x  
Cc x  
Headers x  
Attachments x  
Objects    
Attachments x  
  Properties    
FileName x  
ContentType x  
FileSize x  
Base64 x  
Methods    
SaveToFile x  
Read x  
Scripting Objects    
Class Object   x
Dictionary Object x x
  Properties    
CompareMode x x
Count x x
Item x x
Key x x
Methods    
Add (Dictionary) x x
Exists x x
Items x x
Keys x x
Remove x x
RemoveAll x x
Err Object x x
  Properties    
Description x x
HelpContext x x
HelpFile x x
Number x x
Source x x
Methods    
Clear x x
Raise x x
FileSystemObject Object x x
  Properties    
Drives x x
Methods    
BuildPath x x
CopyFile x x
CopyFolder x x
CreateFolder x x
CreateTextFile x x
DeleteFile x x
DeleteFolder x x
DriveExists x x
FileExists x x
FolderExists x x
GetAbsolutePathName x x
GetBaseName x x
GetDrive x x
GetDriveName x x
GetExtensionName x x
GetFile x x
GetFileName x x
GetFileVersion   x
GetFolder x x
GetParentFolderName x x
GetSpecialFolder x x
GetTempName x x
MoveFile x x
MoveFolder x x
OpenTextFile x x
Drive Object x x
  Properties    
AvailableSpace x x
DriveLetter x x
DriveType x x
FileSystem x x
FreeSpace x x
IsReady x x
Path x x
RootFolder x x
SerialNumber x x
ShareName x x
TotalSize x x
VolumeName x x
Drives Collection x x
  Properties    
Count x x
Item x x
File Object x x
  Properties    
Attributes x x
DateCreated x x
DateLastAccessed x x
DateLastModified x x
Drive x x
Name x x
ParentFolder x x
Path x x
ShortName x x
ShortPath x x
Size x x
Type x x
Methods    
Copy x x
Delete x x
Move x x
OpenAsTextStream x x
Files Collection x x
  Properties    
Count x x
Item x x
Folder Object x x
  Properties    
Attributes x x
DateCreated x x
DateLastAccessed x x
DateLastModified x x
Drive x x
Files x x
IsRootFolder x x
Name x x
ParentFolder x x
Path x x
ShortName x x
ShortPath x x
Size x x
SubFolders x x
Type Not supported on UNIX x
Methods    
Copy x x
Delete x x
Move x x
CreateTextFile x x
Folders Collection x x
  Properties    
Count x x
Item x x
Methods    
Add x x
TextStream Object x x
  Properties    
AtEndOfLine x x
AtEndOfStream x x
Column x x
Line x x
Methods    
Close x x
Read x x
ReadAll x x
ReadLine x x
Skip x x
SkipLine x x
Write x x
WriteLine x x
WriteBlankLines x x
Match Object   x
Matches Collection   x
RegExp Object   x
SubMatches Collection   x


back to top

Do you support Microsoft Access Database?


No.

We do offer MYSQL database.

You may find interest in the Access2MySQL Converter. It is an effective application which allows you to easily convert Microsoft Access (MDB) databases to MySQL and vice versa, unlike similar tools, which commonly perform only one-way conversion. The program is extremely easy to use, it is implemented like a common wizard-like application, so even an inexperienced user will be able to work with it.



back to top

How do I move my domain to Lunarpages?


If you purchased a new domain name with your hosting package, your domain name will be set up automatically. You do not have to do anything.

If you have an existing domain name and want the domain name transferred to Lunarpages, you have to change your name servers.

You may find out where your domain name was originally purchased at here.

back to top

Who is my Registrar?


Domain: http://www.  


back to top

How do I change my name servers?


Login to your registrar (variations might occur, depending on registrar).

Replace the name servers listed, with the Lunarpages name servers given to you in your welcome email.



DNS - CHANGE SETTINGS TUTORIALS:

Making DNS changes at 000Domains.com
Making DNS changes at Dotster.com
Making DNS changes at Enom.com
Making DNS changes at GoDaddy.com
Making DNS changes at MelbourneIT.com.au
Making DNS changes at NameCheap.com
Making DNS changes at NetworkSolutions.com
Making DNS changes at OpenSRS.net
Making DNS changes at Register.com
Making DNS changes at StarGate.com
Making DNS changes at DRAMS (dramsystem.com)



back to top

Why isn't my domain name working?


It will take from 24 - 72 hours for your domain name to work after you transfer it to Lunarpages. This is normal.

If you experience any other problems with your domain name, please email support.



back to top

What name servers should I use?


In order for your domain name to work, you need to make sure you use the name servers given to you in your welcome email.

back to top

Web / FTP Stats


The Web / FTP Stats option gives you access to your site's web statistics such as how many visitors accessed your website, how much data that was downloaded, errors etc.



back to top

Protect Directories


The Password Protect Directory feature in your Control Panel allows you to restrict access to a particular directory within your account and allow access by assigning usernames and passwords to individuals that you choose to allow such access.

To access this feature click on Web Protect. You will be asked to select the directory that you want to protect, simply click the text link of the directory name and you will be taken to the screen where you complete the specifics for user information.

You will need to enter a unique name (Protected Resource Name) for this password protection in the upper section of the screen. The name must be a single word or phase with no spaces. Enter the name and click the save button. Now you are ready to add users that can have access to the specific directory.

To add a new user, simply input the username and password and click Save. You will be taken to a screen that will confirm the new user and you can click the link on the bottom of the screen to go back and add more users.

To change a password for a user, simply input the username and the new password for the user and click Save.

NOTE: This feature might not work with Front Page Extensions Installed.

NOTE: Usernames and passwords MUST be from 6 to 8 characters long. Any less than 6 or greater than 8 will cause your protected directory cease to function and you will receive an error when trying to enter the directory.

To delete a user, select the user from the list and click the Delete button.



back to top

File Manager


The File Manager Option within your Control Panel can prove to be a very powerful feature. It will handle many of the functions that an FTP or Telnet client will handle, all from within your browser. With the File Manager you can set permissions, upload files from your hard drive, create and edit html files and create subdirectories.

When you click on the File Manager feature inside your Control Panel, you will find that the screen is divided into three frames.

The left frame will show you your directories and files:



The upper right hand frame is your action frame, and the lower right hand frame is your trash folder:



Within each directory on the left frame, you will see links to create a new file, create new folder, or upload files. These actions pertain specifically to the directory that you are currently in. You will also see a column of numbers to the right of each folder and file. The far right column are the current permission settings for that specific folder or file and the column to the left of the permissions is the actual size of the that file or folder. When you click on the graphic next to the text link for a folder, it will open that folder and display the files and folders within that folder. When you click on the actual text link for a folder or file, actions for that directory or file are displayed in the upper right hand corner of your screen:

Locate your public_html folder and click on the text link for it. You will see the actions for the folder appear in the upper right hand corner of your screen:



Actions are pretty self-explanatory, so we'll forgo explaining what each do.

However, if you will locate a file rather than a folder within your directory listing and click on the text link of a file, you will see that the action screen will change to the specific actions pertaining to actual files and you will notice that the actions that you can perform for files are quite different from those of a folder:



By clicking on Show File, a new window will open and show you what the file actually looks like in your browser. By clicking on Edit File, you will be taken to a window where you can actually edit the html code within the file itself and save the changes. You can also change the permissions for the file, or copy, move, delete, or rename.

Remember, DO NOT DELETE OR RENAME any files that the system creates. Also, remember that any files that you want available on the World Wide Web, must be placed within your public_html folder.



back to top

The FTP Manager


Multiple FTP Accounts

Users whose account plans include Multiple FTP accounts can setup ftp access for users through the FTP Feature inside your Control Panel. From inside the FTP feature, click on FTP Accounts and add a username and password for the user that you are granting ftp access. The user then can access your account utilizing the same instructions you received with your welcome email.

Anonymous FTP

Virtual domain account users whose plans include Anonymous FTP can allow anonymous FTP access to visitors wishing to download or upload files to your web site as if you were running your own FTP server. You can enable (and disable) ANON FTP access within the FTP Feature inside your Control Panel.

If you are going to allow people to upload files to your site, make sure you keep track of your disk space usage via your Control Panel.

Do not allow your disk space usage to get too close to your maximum disk space allocation or you may experience problems accessing your site via FrontPage and/or be unable to upload or modify files.

Once you enable ANON FTP in your Control Panel, files can be accessed anonymously via an FTP client.

Anonymous visitors wishing to access your site via FTP must use your domain name as the FTP hostname, username of anonymous and password of guest.

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.

For security the following applies

Only the incoming directory can be written by anonymous users
Sub-directories cannot be created by anonymous users
The incoming directory is not readable by anonymous users

To access the anonymous FTP site via the web, use the following address: ftp://yourdomain.com/pub/



back to top

Backup


The backup option will allow you to backup and compress your files and databases. It also allows you to download your backup files to store at a secure location.



back to top

Mime Types


This feature does not work with FrontPage. FrontPage users will need to add Mime Types from the FrontPage program itself.

The MIME Types option in your Control Panel allows you to set certain programs to be used for specific extensions.

In easier-to-understand terms, MIME Types helps your web server to identify what type of file is being requested by the browsers. For instance, when the web server gets a request from a browser such as Internet Explorer or Netscape for a file that ends in .html, the web server knows that it is an HTML document because that extension is stored as a Mime Type. If the web server gets a request from a browser for a file that ends in .gif, the web server knows that it is an image because that too is stored as a Mime Type. This applies to every file, image, application, etc. that may be requested by a web browser. If the extension is not stored as a Mime Type, the web server will not recognize it and will not be able to assist the browser and that particular file type will not be viewable by the user.

Mime types are identified by the server by the following format:

subtype/type extension

For example adding the following two Mime Types will allow users to view ipx images on your web pages:

application/x-ipscript .ips
application/x-ipix .ipx

application identifies the subtype, x-ipscript identifies the application, and .ips identifies the extension used for that application.



back to top

Changing your passwords


Changing Passwords for Control Panel, FTP and FrontPage.

When your website is initially setup you are provided with a temporary password to access your account.

It is extremely important to change this password immediately.

To change your password click on the Change Password option and follow the instructions. When changing your password, you need to choose a password with at least 6 character but with not more than 8 characters.

NOTE: The system is setup to detect easy passwords. It will not allow you to change your password unless you use a mixture of numeric and alphabetic characters.

When you change your password for accessing your Control Panel you are also changing your password for your FTP and FrontPage access, therefore you will need to change the password inside your FTP/FrontPage programs. You are also changing the password for your default email account (see changing email passwords below).

If you are unable to access your Control Panel because you've lost your password, you will need to submit a Technical Support Request form and provide us with a new password. Passwords are one way encrypted, therefore, we cannot access your password.

Changing Passwords for Email Accounts.

The password for your root (default) email account is the same as the password you use to access your account via your control panel or through ftp and FrontPage. To change the password for all other email accounts enter your control panel and click on Add/Remove Accounts. You will then see the option to change password to the right of each email account.



back to top

MySQL Database


MySQL is a database engine that you can use with your web site. You can create a new database, and manage it from the control panel. You will be able to add/edit/delete tables, fields, and values. You can also run queries on the database if you need to.



back to top

Microsoft FrontPage


The FrontPage Extensions option allows you to install FrontPage extensions which are necessary in order to use FrontPage with your site. You can also verify that they are installed or remove them if you do not wish to use them anymore.



back to top