This is possibly one of the easiest local testing environments to setup I have ever done. If you already have Apache running on your local Windows system, it will take about 5 minutes after downloading SunONE ASP off the Sun site to install it to your system.
First, setup Apache locally as this is required before proceeding with SunONE ASP. A how-to on setting up Apache can be found at:
http://www.ricocheting.com/server/apache.htmlNow, 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 which I have):
http://www.sun.com/download/products.xml?id=3f4e6fe6After it downloads, simply doubleclick on the program (mine was called 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 here. I call it the aspinfo page (like the phpinfo equivalent). You can see a copy of what it outputs at:
http://stoneofendar.com/test3.aspThe 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 let me know if you have any questions, and hope you enjoy setting this up locally. I was amazed how easy it was to do myself
