Koozali.org: home of the SME Server

Mono-project on SME 7RC1

d_gerst

Mono-project on SME 7RC1
« on: May 07, 2006, 05:17:20 PM »
Hello,

This is an quick an dirty installation sript for mono-project. Some fixes have to be done if running virtual domains.

Download:
http://www.gerst.no-ip.com/SME7/mono/install_aspx.sh

Execution:
sh install_aspx.sh

Best regards,
Daniel

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Mono Install on SME7rc2
« Reply #1 on: May 19, 2006, 02:36:01 PM »
Hi Daniel

Sorry to be crossposting, if you like I'll remove other post (exact same content and let just this one).
 
I try to install mono on my SME7rc2 using sintall_aspx.sh script as suggested.  I have virtual domains (2 of them).
I got several errors:


Quote

Press any key to countinue or press Ctrl+C to abort
installation.

Downloading aspx runtime and libaries files...
Archive:  mono.zip
 extracting: bytefx-data-mysql-1.1.15-0.novell.i586.rpm
 extracting: ibm-data-db2-1.1.15-0.novell.i586.rpm
 extracting: mono-basic-1.1.15-0.novell.i586.rpm
 extracting: mono-complete-1.1.15-0.novell.i586.rpm
 extracting: mono-core-1.1.15-0.novell.i586.rpm
 extracting: mono-data-1.1.15-0.novell.i586.rpm
 extracting: mono-data-firebird-1.1.15-0.novell.i586.rpm
 extracting: mono-data-oracle-1.1.15-0.novell.i586.rpm
 extracting: mono-data-postgresql-1.1.15-0.novell.i586.rpm
 extracting: mono-data-sqlite-1.1.15-0.novell.i586.rpm
 extracting: mono-data-sybase-1.1.15-0.novell.i586.rpm
 extracting: mono-devel-1.1.15-0.novell.i586.rpm
 extracting: mono-extras-1.1.15-0.novell.i586.rpm
 extracting: mono-jscript-1.1.15-0.novell.i586.rpm
 extracting: mono-locale-extras-1.1.15-0.novell.i586.rpm
 extracting: mono-nunit-1.1.15-0.novell.i586.rpm
 extracting: mono-web-1.1.15-0.novell.i586.rpm
 extracting: mono-winforms-1.1.15-0.novell.i586.rpm
 extracting: libgdiplus-1.1.15-0.rhel4.novell.i386.rpm
 extracting: libgdiplus-debuginfo-1.1.15-0.rhel4.novell.i386.rpm
Installing mono-project runtime and library...
warning: sqlite2-2.8.16-1.el4.kb.i386.rpm: V3 DSA signature: NOKEY, key ID 3e13cf5b
error: Failed dependencies:
        libX11.so.6 is needed by libgdiplus-1.1.15-0.rhel4.novell.i386
        libXrender.so.1 is needed by libgdiplus-1.1.15-0.rhel4.novell.i386
        libfontconfig.so.1 is needed by libgdiplus-1.1.15-0.rhel4.novell.i386
        libungif.so.4 is needed by libgdiplus-1.1.15-0.rhel4.novell.i386
        pkgconfig is needed by sqlite2-devel-2.8.16-1.el4.kb.i386
    Suggested resolutions:
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/fontconfig-2.2.3-7.i386.rpm
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/libungif-4.1.3-1.el4.2.i386.rpm
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/pkgconfig-0.15.0-3.i386.rpm
        /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/xorg-x11-libs-6.8.2-1.EL.13.25.i386.rpm
Downloading xsp server to run aspx sites with apache...
Installing xsp server...
Archive:  webserver.zip
 extracting: xsp-1.1.15-0.novell.noarch.rpm
 extracting: mod_mono-1.1.14-0.rhel4.novell.i386.rpm
 extracting: mod_mono-debuginfo-1.1.14-0.rhel4.novell.i386.rpm
error: Failed dependencies:
        mono(Mono.Posix) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(Mono.Posix) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(Mono.Security) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(Mono.Security) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Configuration) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Data) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Data) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Web) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Web) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Web.Services) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Xml) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(System.Xml) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(mscorlib) = 1.0.5000.0 is needed by xsp-1.1.15-0.novell.noarch
        mono(mscorlib) = 2.0.0.0 is needed by xsp-1.1.15-0.novell.noarch
Modify apache server to run aspx sites...
Update apache config file...
Restarting apache...
Restarting httpd-e-smith                                   [  OK  ]
Creating root directory for xsp server (only primary ibay)...
Install demo files to show functionality of mono-project...
cp: cannot stat /usr/lib/xsp/test/*': No such file or directory
Removing installation directory...
Starting xsp server...
Please press CTRL+C after xspserver is started!
install_aspx.sh: line 102: xsp: command not found


Now your apache should be able to run aspx sites. Please remove
your index site from primary ibay to show demo aspx sites. Demo
sites are available at http(s)://your.domanin.com



Most of them are dependencies... so maybe use yum would fix them.
I'm concerned about to use yum and get more than I really need and broke something.
I think yum localinstall xxx would fix dependencies problems...but... not sure about how my server would be after that.

Thanks

Jáder
...

d_gerst

Mono-project on SME 7RC1
« Reply #2 on: May 19, 2006, 08:37:40 PM »
Hello,

I fixed the script. Now it is ready for SME 7 RC2.

Best reagrds,
Daniel

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
problems
« Reply #3 on: May 20, 2006, 02:35:12 PM »
Hi

I have bad luck with your script.
Now my apache is returning 503 - Service Temporarily Unavailable
and ALL my apache is offline!

Could you help me to fix it ?
Where to start to look at to find out what's happening?

From Apache error_log:
[Sat May 20 09:27:44 2006] [error] Not running mod-mono-server.exe because no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir specified.

On my httpd.conf I found SEVERAL times:
   #--------------------------------------------------------------------
    #Set mono handler for aspx
    #--------------------------------------------------------------------
    MonoApplications default "/:/home/e-smith/files/ibays/Primary/aspx"
    MonoDocumentRootDir "home/e-smith/files/ibays/Primary/aspx"
    <Location />
        SetHandler mono
    </Location>

that's the 28SetMonoHandler fragment...  he's all over the httpd.conf file on all shares... shouldn't be just on Primary? Isn't because of that all my apache is offline ?

I'll do some tests... but your help is welcome.

Thanks

Jáder
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
one step fwd
« Reply #4 on: May 20, 2006, 02:42:29 PM »
Hi

I discovered that the 28SetMonoHandler fragment has one missing
"/ " on start of MonoDocumentRootDir . Should be:

 #--------------------------------------------------------------------
#Set mono handler for aspx
#--------------------------------------------------------------------
MonoApplications default "/:/home/e-smith/files/ibays/Primary/aspx"
MonoDocumentRootDir "/home/e-smith/files/ibays/Primary/aspx"
<Location />
SetHandler mono
</Location>


But that just put mono online... all my apache and ibays is offline because all try to pass thru Mono... I just like to have one ibay as mono.
Can you help on this?

Thanks

Jáder
...

d_gerst

Mono-project on SME 7RC1
« Reply #5 on: May 20, 2006, 07:41:06 PM »
Hello,

I only test it with a fresh installed SME 7 server with no additional ibays. I will test with more ibays and more virtual domains today and fix it.

Best reagards,
Daniel

d_gerst

Mono-project on SME 7RC1
« Reply #6 on: May 20, 2006, 09:31:38 PM »
Hello,

I released a new script with following Bugfixes and Features:

- ASPX-Support for each virtual domain if required. if no aspx sites available apache take control, otherwise mono XSP-Server processes aspx sites.

- Mono XSP-Server could now be controlled via webpanel for each virtual domain.

Best regards,
Daniel

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
uninstall of Mono
« Reply #7 on: May 20, 2006, 09:32:06 PM »
Hi

I decide to remove mono from my server.
So I did:
Quote

rm /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28SetMonoHandler

rm /etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80ASPX

rpm -e bytefx-data-mysql ibm-data-db2 libgdiplus libgdiplus-debuginfo mono-basic mono-core mono-data-firebird  mono-data mono-data-oracle mono-data-postgresql mono-data-sqlite mono-data-sybase mono-devel mono-extras mono-jscript mono-locale-extras mono-nunit mono-web mono-winforms pkgconfig sqlite2 sqlite2-devel mono-complete xsp mod_mono

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service  httpd-e-smith restart
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
starting XSP
« Reply #8 on: May 22, 2006, 12:29:32 PM »
Hi Daniel

I sorry if I'm to suggest you some obvious, but you couldn't start XSP with a "&"at end to run on background?

Please apologize if this offend you... I'm doing it with good intentions!

Regards

Jáder

PS: Haven't tryed your new version of script (can afford take offline my site again). Will test it on VMWare later tonight!
...

d_gerst

Mono-project on SME 7RC1
« Reply #9 on: May 22, 2006, 04:29:58 PM »
Hello,

I fix it in the script, but i didn't test it (Backgroundprocessing). I'll do it later today.

Best regards,
Daniel