Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2010, 03:19:34 PM

Home | Help | Search | Calendar | Login | Register
Loading...
Advanced search  
It appears you aren't registered with us, why not register and start discussing today!
+  MS Chat Forum
|-+  Computer Central
   |-+  Tips, tricks and tutorials
      |-+  Run ASP on XAMPP
« previous next »
Pages: [1] 2 3 4 Go Down Print
Author Topic: Run ASP on XAMPP  (Read 12669 times)
aldo
Administrator
*****
Offline Offline

Posts: 6,274


WWW
« on: October 23, 2008, 04:28:22 PM »

To go along with Myles Grey's topic of how to run ASP on Windows Vista, I will make a topic on how to install ASP.NET on an XAMPP Installation.
 
First off, if you have not already, download and install XAMPP, which can be downloaded at www.apachefriends.org
 
You will then need to download the ASP Installer at SourceForge, so download it, then run it. Choose to of course install it, but you will need to make sure that the install path is set to your Apache directory.
 
If you have installed XAMPP in C:\xampp\ your path for installing should be C:\xampp\apache\ then hit install, and you are almost done :D
 
Now open up C:\xampp\htdocs\apache\conf\extra\httpd-xampp.conf
 
You will need to add this between the <IfModule alias_module></IfModule> tags
Code: (httpd-xampp.conf) [Select]
#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
<IfModule mod_aspdotnet.cpp>
  AspNetMount /SampleASP "c:/xampp/asp_docs"
  Alias /SampleASP "c:/xampp/asp_docs"
  <Directory "c:/xampp/asp_docs">
    Options FollowSymlinks ExecCGI
    Order allow,deny
    Allow from all
    DirectoryIndex index.htm index.aspx
  </Directory>
  AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
  <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
    Options FollowSymlinks
    Order allow,deny
    Allow from all
  </Directory>
</IfModule>
#asp.net
Now of course save it, and you will need to restart Apache on your XAMPP Control Panel.

NOTE: Not working? Try this: http://mschat.net/forum/index.php?topic=574.msg8825#msg8825

Then open up C:\xampp\ and create a directory called asp_docs and go into the directory and make index.aspx and put this in it:
Code: [Select]
<%@ Page Language="VB" %>
<html>
   <head>
      <link rel="stylesheet"href="intro.css">
   </head>
   <body>
       <center>
       <form action="index.aspx" method="post">
           <h3> Name: <input id="Name" type=text>
           Category:  <select id="Category" size=1>
                          <option>One</option>
                          <option>Two</option>
                          <option>Three</option>
                      </select>
           </h3>
           <input type=submit value="Lookup">
           <p>
           <% Dim I As Integer
              For I = 0 to 7 %>
              <font size="<%=I%>"> Sample ASP.NET TEST</font> <br>
           <% Next %>
       </form>
       </center>
   </body>
</html>

Save, and open up http://localhost/SampleASP now if it was successful, you should see something like:
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
Sample ASP.NET TEST
 
Enjoy! :D
Source: http://weblogs.asp.net/israelio/archive/2005/09/11/424852.aspx
« Last Edit: April 29, 2009, 01:05:25 PM by aldo » Logged

Follow MS Chat on Twitter!
Has YouTube been slow for you? Annoyed by it? Let them know!
Myles
Programmer
Administrator
*****
Offline Offline

Posts: 1,487

7 > Vista > XP > *nix


« Reply #1 on: October 24, 2008, 05:10:18 AM »

Oh so that works with XAMPP? I understand these instructions better too anyway, lol. Okay, I'll do it tomorrow. Thanks.
Logged



Quote
I've been afraid to look for baby seals since. I'm absolutely traumatised.

aldo
Administrator
*****
Offline Offline

Posts: 6,274


WWW
« Reply #2 on: October 24, 2008, 01:40:12 PM »

Yeah, easy as pie :D
Logged

Follow MS Chat on Twitter!
Has YouTube been slow for you? Annoyed by it? Let them know!
Myles
Programmer
Administrator
*****
Offline Offline

Posts: 1,487

7 > Vista > XP > *nix


« Reply #3 on: October 24, 2008, 05:32:04 PM »

Meh, it didn't work for me. But we are probably running different versions of XAMPP anyway, considering I had SQLite installed by default and you didn't. What's your Apache version?

Also, it should be noted that you need to change occurrences of c:/xampp/asp_docs inside the configuration file (First code sample) to c:/your/install/path/of/xampp/asp_docs. Also, http://localhost/asp should be an alias for http://localhost/SampleASP if you can get it installed properly.
Logged



Quote
I've been afraid to look for baby seals since. I'm absolutely traumatised.

aldo
Administrator
*****
Offline Offline

Posts: 6,274


WWW
« Reply #4 on: October 24, 2008, 05:35:16 PM »

Did you turn Apache off then back on?
Logged

Follow MS Chat on Twitter!
Has YouTube been slow for you? Annoyed by it? Let them know!
Myles
Programmer
Administrator
*****
Offline Offline

Posts: 1,487

7 > Vista > XP > *nix


« Reply #5 on: October 25, 2008, 06:04:07 PM »

Yeah, I had it turned off in the process. I didn't just try the one set thing too, I tried heaps of different things.

Edit: Apache won't even start unless I comment out lines 2 and 5. I did check and modules/mod_aspdotnet.so does exist, so it must be either corrupt or not compatible with my version of Apache (2.2).
« Last Edit: October 26, 2008, 12:02:50 AM by Myles » Logged



Quote
I've been afraid to look for baby seals since. I'm absolutely traumatised.

aldo
Administrator
*****
Offline Offline

Posts: 6,274


WWW
« Reply #6 on: October 26, 2008, 02:20:27 PM »

Thats odd, because I had no troubles turning it off or on O.o
Logged

Follow MS Chat on Twitter!
Has YouTube been slow for you? Annoyed by it? Let them know!
Andrew0493
Windows Freak
*****
Offline Offline

Posts: 921


« Reply #7 on: November 04, 2008, 07:21:31 AM »

Is it possible to run this with Wamp, I recently switched back to Wamp?

Any help would be appreciated!
Logged

aldo
Administrator
*****
Offline Offline

Posts: 6,274


WWW
« Reply #8 on: November 04, 2008, 03:16:19 PM »

I am not sure... I don't see why not, but I have never used WAMP :/
Logged

Follow MS Chat on Twitter!
Has YouTube been slow for you? Annoyed by it? Let them know!
antimatter15
MS Chat Defender
*****
Offline Offline

Posts: 2,839

WWW
« Reply #9 on: November 04, 2008, 04:52:10 PM »

sure, they both use apache
Logged

Ajax Animator, a web-based, collaborative animation authoring environment.
Andrew0493
Windows Freak
*****
Offline Offline

Posts: 921


« Reply #10 on: November 05, 2008, 12:38:24 PM »

ya but the question is HOW? do I do that?

Anyone have an remote idea?
Logged

antimatter15
MS Chat Defender
*****
Offline Offline

Posts: 2,839

WWW
« Reply #11 on: November 05, 2008, 02:16:08 PM »

ya but the question is HOW? do I do that?

Anyone have an remote idea?

Edit the file equivalents. Maybe httpd.conf?
Logged

Ajax Animator, a web-based, collaborative animation authoring environment.
Andrew0493
Windows Freak
*****
Offline Offline

Posts: 921


« Reply #12 on: November 06, 2008, 06:50:48 AM »

Ya doesnt seem to work when I install it into the apache directory. :(
Logged

aldo
Administrator
*****
Offline Offline

Posts: 6,274


WWW
« Reply #13 on: November 06, 2008, 11:10:38 AM »

Yeah, but did you edit the httpd.conf file? or something of that like, and you then need to restart Apache so it can load it ;)
Logged

Follow MS Chat on Twitter!
Has YouTube been slow for you? Annoyed by it? Let them know!
davidbuehn
Newbie
*
Offline Offline

Posts: 3

« Reply #14 on: November 27, 2008, 10:40:21 AM »

I got an Error 500
Serverfehler!            Die Anfrage kann nicht beantwortet werden, da im Server     ein interner Fehler aufgetreten ist.     Der Server ist entweder überlastet oder ein Fehler in     einem CGI-Skript ist aufgetreten.     
 Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den  Webmaster hierüber.    Error 500Has anyone an idea?

Regards,
David
Logged
Pages: [1] 2 3 4 Go Up Print 
« previous next »
 


Login with username, password and session length

Icons by famfamfam
Copyright © 2008 - 2010 of MS Chat
Powered by SMF 2.0 RC2 | SMF © 2006–2009, Simple Machines LLC MS Chat Forum - Sitemap MS Chat Forum - RSS

We are in no way sponsored by or affiliated with Microsoft Corp. | Some things may be trademarked of Microsoft Corp.

* Stocks are obtained from Yahoo! Finance, these are delayed by Yahoo! for 15 minutes and MS Chat caches them for approx. 2 minutes.
MS Chat nor Yahoo! is not responsible or liable in anyway for the inaccuracy (or anything else) of any values, in part or in whole.

Page created in 0.321 seconds with 21 queries.