Hello everybody, I have a rather stupid question. Is it possible to run ASP scripts on Apache Server? Please answer.
Thanks for anticipated help.
- :S:
Printable View
Hello everybody, I have a rather stupid question. Is it possible to run ASP scripts on Apache Server? Please answer.
Thanks for anticipated help.
- :S:
Yes there is mod_asp. However I am not 100% sure if it has been ported over to Apache 2.x. It has been a while since I have used it.
Also check this site out http://apacheworld.org/modmono/
Thanks for your help jackminder but I want use it on WinXP Pro.
There is a Windows version of Mono that has ASP at http://www.mono-project.com/Downloads (Google is your friend) it also includes GTK# and Mono itself. Once it's installed follow
From http://apacheworld.org/modmono/INSTALL (substitute the paths on there for your Windows paths)Quote:
CONFIGURING APACHE
==================
Copy the file /home/user/mono/mod_mono/src/.libs/libmod_mono.so to /home/user/mono/install/apache2/lib/
Copy ModMono.dll to a place where the Mono runtime will find it, usually this means /usr/lib/ or wherever the
rest of assemblies are located.
Edit /home/user/mono/install/apache2/conf/httpd.conf :
Listen 8080
LoadModule mono_module /home/user/mono/install/apache2/lib/libmod_mono.so
MonoApplication /mono /home/user/mono/install/xsp/server/test
The MonoApplication directive takes two arguments. The first one is the virtual path, which is part
of the URL used to access your application. The second one is the physical path, the directory
where the application resides. In this case is the directory containing the XSP test pages.
Only one MonoApplication directive is currently allowed.
NOTE: If a machine.config is not installed in your path, which normally occurs during Mono installation,
you may need to create a ModMono.exe.config. This file needs to be placed in the application base dir, in this case
/home/user/mono/install/xsp/server/test/
You can find an example for the contents of this file in the data/machine.config subdirectory of the Mono distribution.
You can now start Apache with
/home/user/mono/install/apache2/bin/apachectl start
Mono's very good. I used it for a bit for C#, but didn't have much time. There should be a lot of IDE for .NET avaliable for Windows (MonoDevelop for Linux [probably Windows too] is great).
Good luck.
microburn
ASP.NET is NOT the same as ASP - they are mutually incompatible.
To run ASP on Apache, you can apparently do it by loading the asp DLL using the ISAPI module in Apache. This probably breaks the licence agreement that comes with Windows. Obviously this only works on win32 where you already have a ASP.dll installed (as part of IIS (but IIS does not need to be running))
There are various other third party solutions, such as Chillisoft which also claim to be able to. These do not run ASP on Apache, but rather, use a third party emulator that is mostly compatible - it's not likely to work with compiled COM objects however (on non-win32 platforms).
ASP.NET is a completely different scenario - see Microburn's instructions above.
Slarty