Run ASP for XAMPP--let XAMPP support ASP

Source: Internet
Author: User



Today the classmate installed a xampp. To use FTP and MySQL.



But he used ASP to develop Web pages, and then didn't want to install IIS, and asked me to help him out.



Google on the internet, and found that someone abroad has sent a tutorial, but in English. Sort out the experience of your configuration and re-send it.



First of all, you have to xampp on the official Internet download installation XAMPP, the installation process official website has detailed instructions.



After the installation is complete, make sure your xampp is running successfully.



Then go to sourceforge here to download "Mod_aspdotnet" this plugin.



Download complete double-click Install. Directory is the Apache folder of the XAMPP installation directory.



Example: c:/xampp/apache/



Next Open your XAMPP installation directory (with the example of the XAMPP I installed on the C drive)



Open C:/xampp/apache/conf/extra



Locate the httpd-xampp.conf file and open it with a text document. (Please back up before making changes)



Find <ifmodule alias_module></ifmodule> This pair of tags.



Add the following code to the <ifmodule alias_module></ifmodule>



#asp. Net
LoadModule aspdotnet_module "Modules/mod_aspdotnet.so"
AddHandler ASP 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



Save and exit, and then xampp the installation directory (mine is C:/XAMPP) to create a new folder named Asp_docs (which will be placed here for later release of the website).



Under this folder, create a file named Index.aspx, and add the following code


<%@ page language= "VB"%>
<link rel= "stylesheet" href= "Intro.css" >
<body>
<center>
<form action= "index.aspx" method= "POST" >
Category: <select id= "category" Size=1>
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
<input type=submit value= "Lookup" >
<p>
<% Dim I as Integer
For I = 0 to 7%>
<font size= "<%=I%>" > Sample ASP. test</font> <br>
<% Next%>
</form>
</center>
</body>


After you save the exit, open Http://localhost/SampleASP to test whether your Apache resolves ASP correctly.



If you succeed, you should be able to see a small-to-large arrangement



Sample ASP. NET TEST



The page of this sentence.



So far, this tutorial is done. Congratulations. Enjoy your xampp.



Reprint: http://blog.csdn.net/nikejaycn/article/details/5086987



Run ASP for XAMPP--let XAMPP support ASP


Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.