Results 1 to 6 of 6

Thread: ASP on Apache

  1. #1
    Senior Member
    Join Date
    Mar 2005
    Posts
    175

    ASP on Apache

    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:
    \"And life is what we make it. Always has been, always will be.\"

  2. #2
    Junior Member
    Join Date
    Apr 2005
    Posts
    10
    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.

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Posts
    10
    Also check this site out http://apacheworld.org/modmono/

  4. #4
    Senior Member
    Join Date
    Mar 2005
    Posts
    175
    Thanks for your help jackminder but I want use it on WinXP Pro.
    \"And life is what we make it. Always has been, always will be.\"

  5. #5
    Developer Extraordinar
    Join Date
    Jul 2002
    Location
    On the IRC
    Posts
    572
    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
    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
    From http://apacheworld.org/modmono/INSTALL (substitute the paths on there for your Windows paths)

    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

  6. #6
    Senior Member
    Join Date
    Jan 2002
    Posts
    1,207
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •