mail-archives/mono-list/2005-February/025607.html

143 строки
4.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] mod_mono &amp; xsp
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:giuseppe.greco%40agamura.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025605.html">
<LINK REL="Next" HREF="025606.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] mod_mono &amp; xsp
</H1>
<B>Giuseppe Greco
</B>
<A HREF="mailto:giuseppe.greco%40agamura.com"
TITLE="[Mono-list] mod_mono &amp; xsp">giuseppe.greco@agamura.com
</A><BR>
<I>Sat, 05 Feb 2005 22:28:08 +0100</I>
<P><UL>
<LI> Previous message: <A HREF="025605.html">[Mono-list] mod_mono &amp; xsp
</A></li>
<LI> Next message: <A HREF="025606.html">[Mono-list] mod_mono &amp; xsp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25607">[ date ]</a>
<a href="thread.html#25607">[ thread ]</a>
<a href="subject.html#25607">[ subject ]</a>
<a href="author.html#25607">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Neil,
Yes, finally I was able to get mod_mono and xsp working on FC3!
Here below is the procedure, step-by-step:
1. Create a file named mono.conf and save it into /etc/httpd/cond.d:
LoadModule mono_module modules/mod_mono.so
MonoApplications &quot;/demo:/usr/share/doc/xsp/test&quot;
Alias /demo &quot;/usr/share/doc/xsp/test&quot;
&lt;Directory /usr/share/doc/xsp/test&gt;
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmy
&lt;/Directory&gt;
2. Start mod-mono-server:
mod-mono-server --root /usr/local/share/doc/xsp
--applications /demo:. --nonstop &amp;
3. cd to /tmp and type:
chmod 666 mod_mono_server
4. Restart apache:
/etc/init.d/httpd restart
5. Open the following URL:
<A HREF="http://localhost/demo">http://localhost/demo</A>
That is it! As I told before, it would be nice
to either have a script under /etc/init.d making
that automatically, or have mod_mono invoking
mod-mono-server automatically (as it should).
j3d.
On Sat, 2005-02-05 at 11:50 -0700, Neil Zanella wrote:
&gt;<i> BTW, anyone get mod_mono and xsp working on FC3?
</I>&gt;<i>
</I>&gt;<i> Thanks,
</I>&gt;<i>
</I>&gt;<i> Neil
</I>&gt;<i>
</I>&gt;<i> On Sat, 05 Feb 2005 13:41:21 -0500, Gonzalo Paniagua Javier
</I>&gt;<i> &lt;<A HREF="mailto:gonzalo@ximian.com">gonzalo@ximian.com</A>&gt; wrote:
</I>&gt;<i> &gt; On Sat, 2005-02-05 at 15:30 +0100, Giuseppe Greco wrote:
</I>&gt;<i> &gt; &gt; Hi all,
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; &gt; mod_mono is configured to run mod-mono-server automatically, isn't it?
</I>&gt;<i> &gt; &gt; &gt; &gt;
</I>&gt;<i> &gt; &gt; &gt; no, at least not on my Mandrake machine. I had to start it with:
</I>&gt;<i> &gt; &gt; &gt; mono /usr/bin/mod-mono-server.exe --root /var/www/html/mtest --
</I>&gt;<i> &gt; &gt; &gt; applications /mtest:/var/www/html/mtest --nonstop &amp;
</I>&gt;<i> &gt; &gt; &gt; The --root parameter tells the ASP server where the aspx documents are
</I>&gt;<i> &gt; &gt; &gt; and the --application parameter also needs to proint to the dir of the
</I>&gt;<i> &gt; &gt; &gt; example.
</I>&gt;<i> &gt; &gt; &gt; And then change the rights on /tmp/mod_mono_server using:
</I>&gt;<i> &gt; &gt; &gt; chmod 666 /tmp/mod_mono_server
</I>&gt;<i> &gt; &gt; &gt; before it worked.
</I>&gt;<i> &gt; &gt; &gt; Hope that helps...
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; starting mod-mono-server first, and then httpd, I'm able to serve
</I>&gt;<i> &gt; &gt; ASP.NET pages... That means the documentation is wrong.
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; Where *exactly* is the documentation wrong?
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; -Gonzalo
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; _______________________________________________
</I>&gt;<i> &gt; Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>&gt;<i> &gt;
</I>&gt;<i>
</I>&gt;<i>
</I>--
----------------------------------------
Giuseppe Greco
::<i>agamura::
</I>
phone: +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email: <A HREF="mailto:giuseppe.greco@agamura.com">giuseppe.greco@agamura.com</A>
web: www.agamura.com
----------------------------------------
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025605.html">[Mono-list] mod_mono &amp; xsp
</A></li>
<LI> Next message: <A HREF="025606.html">[Mono-list] mod_mono &amp; xsp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25607">[ date ]</a>
<a href="thread.html#25607">[ thread ]</a>
<a href="subject.html#25607">[ subject ]</a>
<a href="author.html#25607">[ author ]</a>
</LI>
</UL>
</body></html>