Update to Mod_Mono on Fedora 9 Install Steps

View: New views
1 Messages — Rating Filter:   Alert me  

Update to Mod_Mono on Fedora 9 Install Steps

by David Driscoll :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


_______________________________________________
Mono-docs-list maillist  -  Mono-docs-list@...
http://lists.ximian.com/mailman/listinfo/mono-docs-list