Mono configuration in Linux-Linux Enterprise Application-Linux server application information. For more information, see. Mono-related installation packages can be downloaded at http://www.go-mono.com/download.html
Download apache2 from www.apache.org
1. Install the gcc compiling environment (skip this step if necessary)
Rpm-ivh * cc *
2. Install apache2
Tar xvzf httpd-2.0.47.tar.gz
Cd httpd *
./Configure -- prefix =/mono/apache2 -- enable-so
Make
Make install
3. Install the rpm of all downloaded mono (mono runtime, mono-0.26, etc)
Rmp-ivh *. rpm
3. Install xsp
Tar xvzf xsp-0.5.tar.gz
Cd xsp-0.5
Make
Make install
4. Install mono (if pkgconfig is not available, install mono from the linux installation disk first)
Tar xvzf mod_mono-0.4.tar.gz
./Configure -- with-apache2 =/mono/apache2 -- with apxs =/usr/sbin/apxs
Make
Make install
Cd src
Make-f makedll. mak
Copy ModMono. dll/usr/lib
5. Configure apache
Include/mono/apache2/conf/mono. conf
Add a file named mono. conf to httpd. conf as follows:
LoadModule mono_unix_module modules/mod_mono_unix.so
MonoApplicationUnix/TestC/tmp/mod_mono_server
6. Run the program
Start
Mono mod-mono-server.exe -- virtual directory name
Start apache.
Apachectl start
If an error occurs, check the apache2/logs/error_log file.
7. If a blank page appears
Open the/etc/mono/machine. config file
Comment out the following lines: