Update to Mod_Mono on Fedora 9 Install Steps

"David Driscoll" <[email protected]> Wed, 12 Nov 2008 15:30:20 -0500
Newsgroups gmane.comp.gnome.mono.documentation
Message-ID <[email protected]>
--===============1476921530==
Content-Type: multipart/alternative; 
	boundary="----=_Part_18181_7105373.1226521820235"

------=_Part_18181_7105373.1226521820235
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

 I went thru the Fedora 9 Install steps and wanted to document
corrections/updates to help others when they go thru the process:

The start page of this document is:
http://mono-project.com/Mod_mono

which then links to:
http://www.inprose.com/articles/10-enable-aspnet-support-in-fedora-linux.html

Here are the steps that enabled me to get Mod_Mono working on Fedora 9 using
the xsp asp.net test application provided when xsp is installed.

link to documentation: http://endurotracker.blogspot.com/

Content:

Summary:
 Install and configure Mono (.net framework) on Fedora 9.

Notes: Yum did not seem to detect the dependencies of between xsp and
mod_mono
if you follow the order of the steps at :
http://www.inprose.com/articles/10-enable-aspnet-support-in-fedora-linux.html
You end up with fc9 version of mod_mono, but a fc10 version of xsp which is
bad.
You want all your libraries to be a  fc10 version.
Your web server, Apache can be the fc9 version.

Steps:

1) Install Apache fc9: yum install httpd
2) Disable SELinux, from UI , click System -> Administration -> SELinux
Management ( from linked article above mentions that from command line:
setenforce 0 , but I could not get this to work)
3) Install fc10 mod_mono from rawhide repository ( which depends on
mono-core, mono-web, and xsp, so this will can installed all at the same
time in this step):
    yum install --enablerepo=rawhide mod_mono
4) Grant permissions to apache user to execute and create directories under
var/run ( apache runs under user: apache by default), command line: chmod
777 /var/run -R

5) After the successful install we need to configure Apache to allow it to
run Mono applications (typical usage asp.net web pages, and .asmx web
services).
In this test case , we are using the test asp.net pages that got installed
under /usr/lib/xsp/test when we installed xsp above in the install mod_mono
step.
On completion of this step, we can open our browser and go to
http://localhost/test to see our Mono Test Page in action.

   Edit /etc/httpd/conf/httpd.conf

   Add these entries to the end of the file
           MonoAutoApplication enabled

MonoServerPath test /usr/bin/mod-mono-server2

Alias test "/usr/lib/xsp/test"

MonoApplications test "/test:/usr/lib/xsp/test"

         <Location />

MonoSetServerAlias test

SetHandler mono

<Location />


6) Done! Go to go to http://localhost/test to test your setup.





-- 
David J. Driscoll

------=_Part_18181_7105373.1226521820235
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,<br><br>&nbsp;I went thru the Fedora 9 Install steps and wanted to document corrections/updates to help others when they go thru the process:<br><br>The start page of this document is:<br><a href="http://mono-project.com/Mod_mono">http://mono-project.com/Mod_mono</a><br>
<br>which then links to:<br><a href="http://www.inprose.com/articles/10-enable-aspnet-support-in-fedora-linux.html">http://www.inprose.com/articles/10-enable-aspnet-support-in-fedora-linux.html</a><br><br>Here are the steps that enabled me to get Mod_Mono working on Fedora 9 using<br>
the xsp <a href="http://asp.net">asp.net</a> test application provided when xsp is installed.<br><br>link to documentation: <a href="http://endurotracker.blogspot.com/">http://endurotracker.blogspot.com/</a><br><br>Content:<br>
<br>Summary:<br>
&nbsp;Install and configure Mono (.net framework) on Fedora 9.<br><br>Notes: Yum did not seem to detect the dependencies of between xsp and mod_mono<br>if you follow the order of the steps at : <a href="http://www.inprose.com/articles/10-enable-aspnet-support-in-fedora-linux.html">http://www.inprose.com/articles/10-enable-aspnet-support-in-fedora-linux.html</a><br>
You end up with fc9 version of mod_mono, but a fc10 version of xsp which is bad.<br>You want all your libraries to be a&nbsp; fc10 version.<br>Your web server, Apache can be the fc9 version.<br>
<br>
Steps:<br>
<br>
1) Install Apache fc9: yum install httpd<br>2) Disable SELinux,
from UI , click System -&gt; Administration -&gt; SELinux Management (
from linked article above mentions that from command line: setenforce 0
, but I could not get this to work)<br>3) Install fc10 mod_mono from
rawhide repository ( which depends on mono-core, mono-web, and xsp, so
this will can installed all at the same time in this step): <br>&nbsp;&nbsp;&nbsp; yum install --enablerepo=rawhide mod_mono<br>4)
Grant permissions to apache user to execute and create directories
under var/run ( apache runs under user: apache by default), command
line: chmod 777 /var/run -R &nbsp;&nbsp; <br>
<br>
5) After the successful install we need to configure Apache to allow it
to run Mono applications (typical usage <a href="http://asp.net">asp.net</a> web pages, and .asmx
web services).<br>In
this test case , we are using the test <a href="http://asp.net">asp.net</a> pages that got installed
under /usr/lib/xsp/test when we installed xsp above in the install
mod_mono step.<br>On completion of this step, we can open our browser and go to <a href="http://localhost/test">http://localhost/test</a> to see our Mono Test Page in action.<br>
&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp; Edit /etc/httpd/conf/httpd.conf<br>
<br>
&nbsp;&nbsp; Add these entries to the end of the file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
MonoAutoApplication enabled<br>
<p class="MsoNormal" style="margin-left: 33pt;">
  MonoServerPath test /usr/bin/mod-mono-server2
</p>
<p class="MsoNormal" style="margin-left: 33pt;">
  Alias test "/usr/lib/xsp/test"
</p>
<p class="MsoNormal" style="margin-left: 33pt;">
  MonoApplications test "/test:/usr/lib/xsp/test"
</p>
<p class="MsoNormal" style="margin-left: 33pt;">
  
  </p>
  

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;Location /&gt;<br>

<p class="MsoNormal" style="margin-left: 33pt;">
  MonoSetServerAlias test
</p>
<p class="MsoNormal" style="margin-left: 33pt;">
   SetHandler mono
</p>
<p class="MsoNormal" style="margin-left: 33pt;">
  &lt;Location /&gt; <br></p><p class="MsoNormal" style="margin-left: 33pt;"><br></p><p class="MsoNormal" style="margin-left: 33pt;">6) Done! Go to go to <a href="http://localhost/test">http://localhost/test</a> to test your setup.<br>
</p><br><br><br><br clear="all"><br>-- <br>David J. Driscoll<br><br>

------=_Part_18181_7105373.1226521820235--

--===============1476921530==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mono-docs-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-docs-list

--===============1476921530==--