Web Hosting Forum | Lunarpages

Author Topic: Setup local SunONE ASP test environment on Windows 2000/XP  (Read 66558 times)

Danielle

  • Guest
Setup local SunONE ASP test environment on Windows 2000/XP
« on: December 31, 2004, 09:31:42 PM »
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.html

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 which I have):

http://www.sun.com/download/products.xml?id=3f4e6fe6

After 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.asp

The code would be the following:

Code: [Select]
<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  :)

Offline KenBice

  • Newbie
  • *
  • Posts: 5
    • http://veronalacrosse.com
Setup local SunONE ASP test environment on Windows 2000/XP
« Reply #1 on: January 28, 2005, 08:08:58 AM »
Danielle,
Thank you for offering up the details on how to set up a similar environment on my XP machine.

You may want to also include a few other pieces for those of us who are using more of the site. For example, I've downloaded MySQL, which then requires MyODBC.

It took me quite a while to figure out that I needed MyODBC, then a while longer to figure out how to install a DSN for it. Maybe these could be added instructions? Sorry I'm probably not the best one to add them in here...

I have the MySQL working right on my machine, but I can't get to it through MyODBC. However, I can get to my databasea on Lunarpages through MyODBC using a DSN I've set up (and enabling my IP address from the Lunarpages end). So I at least have something I can use to test with.

However, there's still something that doesn't match up between environments. I have a set of ASP pages that work perfectly well on my localhost, hitting the Lunarpages copy of my database, but when I run it from my website, it brings down ASP on that server, and they disable my access to ASP. So even though it's a reasonably good testing environment, remember that it isn't exactly like the setup at Lunarpages.
-- Ken

Danielle

  • Guest
Setup local SunONE ASP test environment on Windows 2000/XP
« Reply #2 on: January 28, 2005, 08:55:12 AM »
Hi KenBice,

Actually the DSN bit might be not helping for the connection as we only support DSN-less connections:

http://www.lunarforums.com/forum/viewtopic.php?t=5844

There are other posts about this if you look for DSN ASP in a forum search.  Try changing the connection string and see if that helps or open a new thread and provide the connection string for troubleshooting by members here to see if we can help further.

Thanks.

Offline KenBice

  • Newbie
  • *
  • Posts: 5
    • http://veronalacrosse.com
Setup local SunONE ASP test environment on Windows 2000/XP
« Reply #3 on: January 28, 2005, 09:32:05 AM »
I understand. For my connection when running on the Lunarpages domain, I change out my connection string so it's the normal "Driver={Mysql};..." string. I read the connection string from a file.

I don't think the connection string is a problem. However, until I can get my ASP access back, I can't figure out what IS my problem...

-- Ken

Offline caldernet

  • Space Explorer
  • ***
  • Posts: 8
    • http://www.calder.net/
Apache not detected by ASP installation
« Reply #4 on: February 17, 2005, 06:37:29 PM »
(I originally posted this when I had the problem described below. Once I fixed it, I decided to edit this posting to include the solution.)

[Original Post]
I installed Apache which went fine...I can see the Apache screen at http://localhost/, but when I install ASP, sunone_asp4[1].0.1-win.exe, on the "Choose a Web Server" page, Apache is not detected.

Even when I browse for local web servers and it wants to find httpd.conf which exists at c:\Program Files\Apache Group\Apache2\conf, clicking OPEN doesn't allow me to proceed.

--------
[My Solution]
In httpd.conf I had the line
     ServerName localhost

It should read
     ServerName localhost:80

Once changed, the ASP installation recognized Apache no problem.  :yey:

Bruce C.
http://www.calder.net/
http://www.getswap.com/
The Calder Gazette
Opinion and more.
http://www.calder.net/

Offline Edward Collin

  • Newbie
  • *
  • Posts: 2
    • Dog Training
Re: Setup local SunONE ASP test environment on Windows 2000/XP
« Reply #5 on: December 07, 2010, 01:40:31 AM »
I have a computer running Windows XP home edition and i would like to
have a local web server for testing my classic asp pages. What would u
advice to me ?

thx

Offline zaminur143

  • Newbie
  • *
  • Posts: 4
Re: Setup local SunONE ASP test environment on Windows 2000/XP
« Reply #6 on: March 16, 2011, 09:31:17 PM »
Quote
After 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.
I used to use OS Windows XP. I was wondering about some of your information. lol
But at last i've found my way.  :bounce: Thanks KenBice for ur useful post.
« Last Edit: March 16, 2011, 09:35:09 PM by zaminur143 »
Zaminur

 

Share |