Note:
On mono 3, the install scripts for xsp-2.10.2 is broken.
You get a HTTP 502 always when executing a website via fastcgi-mono-server4.
With this error message in the logfiles.
Code:
[error] 3384#0: *101 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8000"
You need to execute this script (if you don't parallel install, use PREFIX=/usr).
All it does is copy the 3 assemblies from the 4 gac to the 4.5 gac, and adjust the startup scripts in PREFIX/bin to use PREFIX/lib/mono/4.5
Code:
#!/bin/bash
# Your mono directory
PREFIX=/opt/mono-3.0.3
FILES=('mod-mono-server4'
'fastcgi-mono-server4'
'xsp4')
cd $PREFIX/lib/mono/4.0
for file in "${FILES[@]}"
do
cp "$file.exe" ../4.5
done
cd $PREFIX/bin
for file in "${FILES[@]}"
do
sed -ie 's|mono/4.0|mono/4.5|g' $file
done
Additionally, for debugging, it is helpful to start fastcgi-mono-server-4 with debugging enabled.
Use the switches
Code:
/loglevels=Debug /printlog=true
For example:
Code:
sudo /opt/mono-3.0.3/bin/fastcgi-mono-server4 /loglevels=Debug /printlog=True /applications=/:/var/www/mono/Mvc3Template /socket=tcp:127.0.0.1:9000
Bookmarks