How-to: mod_mono

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
10,628
Location
LT, EU
Do the following on CentOS/Fedora/RHEL before starting the installation:
Code:
yum -y install libungif-devel freetype-devel libtiff-devel libjpeg-devel xulrunner-devel cmake
Installation:
Code:
cd /root
mkdir mono
cd mono
wget https://download.mono-project.com/sources/mono/mono-5.12.0.226.tar.bz2
tar xjf mono-5.12.0.226.tar.bz2
wget http://download.mono-project.com/sources/mod_mono/mod_mono-3.13.tar.gz
tar xzf mod_mono-3.13.tar.gz
cd mono-5.12.0.226
./configure --prefix=/usr
make -j 8
make install
cd ../mod_mono-3.13
./configure --prefix=/usr
make
make install
ldconfig
echo '#mod_mono' >> /etc/httpd/conf/extra/httpd-includes.conf
echo 'Include /etc/httpd/conf/mod_mono.conf' >> /etc/httpd/conf/extra/httpd-includes.conf
#skip the next line on FreeBSD
/etc/init.d/httpd restart
#skip the next line on CentOS/Debian/Fedora/Ubuntu
/usr/local/etc/rc.d/httpd restart
 
Last edited:
Hi I just have Mod_Mono installed on one of my servers and noticed that ConfigServer Security & Firewall - csf v5.41 through warnings about a directory created in /tmp called .wapi . That directory is related to Mod_Mono and information can be found on http://www.mono-project.com/Mono:Runtime .

In CSF it is possible to get rid of the check and warnings by adding the line /tmp/\.wapi in "csf.fignore" file (Directory Watching).

The installation was made by smtalk and it works like a charm.
Thanks Martynas for a great job. :)
 
Back
Top