Setup local SunONE ASP test environment on your PC

From Lunarpages Web Hosting Wiki
Jump to: navigation, search

First, on your local Windows PC setup Apache locally, as this is required before proceeding with SunONE ASP. A how-to on setting up Apache can be found at:

Now, download SunONE ASP after you get Apache running correctly. The download page is at (pick the one for Windows 2000/XP; although it notes XP Pro it will run on Home Edition as well):

After it downloads, simply doubleclick on the program (fpr example, sunone_asp4.0.1-win.exe), then follow the installation instructions. You will need to stop Apache and then restart it during the installation. If you do not know how to do this, you can go to Start -> Run, then enter net stop Apache to stop and net start Apache to start. You will also need to restart your computer after completing installation to ensure all components are configured correctly.

After you restart the computer, check ASP is running along with Apache simply by going to http://localhost/caspsamp/default.asp and you should see a page there with handy tips and code. The installation automatically includes the following components:

  • Chili!Mail
  • Chili!POP3
  • Chili!Upload

A handy code included with the installation is a page at http://localhost/caspsamp/diag/server.asp You can view the source code and then create this on your account online.

The code would be the following:

 <table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#666699" class="list">
 <tr bgcolor="#666699">
 <td>
 <font color="#FFFFFF" size="3" face="Geneva, Arial, Helvetica, san-serif">
 <strong>Server Variable</strong>
 </font>
 </td>
 <td>
 <font color="#FFFFFF" size="3" face="Geneva, Arial, Helvetica, san-serif">
 <strong>Value</strong>
 </font>
 </td>
 </tr>
 <% For Each vName In Request.ServerVariables %>
 <tr>
 <td height="26" valign="top" bgcolor="#E3E3E3"> <strong><font color="#666699"><%= vName %>:</font></strong>
 </td>
 <td bgcolor="#FFFFFF"> <font color="#666699">
 <%
 Select Case Request.ServerVariables(vName)
 Case ""
 Response.Write("<font color=""#FF0000""><strong>NULL</strong></font>")
 Case Else
 Response.Write(Request.ServerVariables(vName))
 End Select
 %>
 </font> </td>
 </tr>
 <% Next %>
 </table>

Please post at the following location if you have questions concerning this how-to:

http://www.lunarforums.com/forum/index.php?topic=22944.0

Share |
Want to read this in another language?