LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2013, 08:48 PM   #1
south9204
LQ Newbie
 
Registered: Jul 2013
Posts: 4

Rep: Reputation: Disabled
How to install and run asp.net on RedHat6/Centos6


How to install mono, Apache on Linux and run APS.NET web site

Here we are using amd64, Redhat6.1, Apache2.2.15.

We need root login for Red hat/CentOS to performing installation below. ( If you are enjoy fixing installation problem/issue, you can try to use sudo -s)

For new Redhat 6.1 installed box:
#use yum to get latest update by
[root@linux tmp]# yum update
#use yum to get update by
[root@linux tmp]# yum list httpd httpd-devel make glib2-devel libpng-devel libjpeg-devel
giflib-devel libtiff-devel libX11-devel gcc* fontconfig-devel bison gettext bzip2
libtool automake autoconf wget unzip

#create directory we will use for installation
[root@linux tmp]# mkdir -p /opt/mono

#Download (or use in folder repos ) & extract source
[root@linux tmp]# wget http://download.mono-project.com/sou...2.10.9.tar.bz2
[root@linux tmp]# wget http://download.mono-project.com/sou...2.10.2.tar.bz2
[root@linux tmp]# wget http://download.mono-project.com/sou...o-2.10.tar.bz2
[root@linux tmp]# wget http://download.mono-project.com/sou...s-2.10.tar.bz2
[root@linux tmp]# tar -xjf mono-2.10.9.tar.bz2
[root@linux tmp]# tar -xjf xsp-2.10.2.tar.bz2
[root@linux tmp]# tar -xjf mod_mono-2.10.tar.bz2
[root@linux tmp]# tar -xjf libgdiplus-2.10.tar.bz2

#Compile and install libgdiplus
[root@linux tmp]# cd libgdiplus-2.10
[root@linux tmp]# ./configure --prefix=/opt/mono
[root@linux tmp]# make ; make install

#Compile and install mono
[root@linux tmp]# cd ../mono-2.10.9
[root@linux tmp]# ./configure --prefix=/opt/mono --with-libgdiplus=/opt/mono
[root@linux tmp]# make ; make install

#Set enviroment vars for further installation(make sure to also modify ~/.bash_profile)
#Please do this before go ahead, otherwise it is too easy to pass error given to you
#and that will be end of you are wondering why you installation does not work

[root@linux tmp]# export PATH=$PATH:/opt/mono/bin
[root@linux tmp]# export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

#Compile and install xsp
[root@linux tmp]# cd ../xsp-2.10.2
[root@linux tmp]# ./configure --prefix=/opt/mono
[root@linux tmp]# make ; make install

#Compile and install mod_mono
[root@linux tmp]# cd ../mod_mono-2.10
[root@linux tmp]# ./configure --prefix=/opt/mono --with-mono-prefix=/opt/mono
[root@linux tmp]# make ; make install
[root@linux tmp]# mv /etc/httpd/conf/mod_mono.conf /etc/httpd/conf.d/

#Now, in order to let apache mod_mono asp.net web site running:
#Set “SELINUX=permissive” for SeLinux
#Change tmp as

[root@linux tmp]# chmod 777 /tmp
#If you have “gdiplus.dll “ error on aspx page,
#Add /opt/mono/lib to /etc/ld.so.conf and run
[root@linux tmp]# Idconfig
#Restart the box and Apache if need




To testing your installation by
1. append these setting to end of /etc/httpd/conf/httpd.conf, remove one # that your choice
2. restart apache, even your box
3. in browser url enter hppt://localhost/AspNetOnApache

##For ASP.NET
Alias /AspNetOnApache "/opt/mono/lib/xsp/test"
MonoDebug true
##For Global mod_mono
#MonoApplications "/AspNetOnApache:/opt/mono/lib/xsp/test"
#MonoServerPath /opt/mono/bin/mod-mono-server4
#<Location /AspNetOnApache>
# SetHandler mono
#</Location>
##End of Global mod_mono

##For different mod_mono
#AddMonoApplications AspNetOnApache "/AspNetOnApache:/opt/mono/lib/xsp/test"
#MonoServerPath AspNetOnApache /opt/mono/bin/mod-mono-server4
#<Location /AspNetOnApache>
# MonoSetServerAlias AspNetOnApache
# SetHandler mono
#</Location>
##End of different mod_mono

##Or, better virtualhost setting and at url enter :http://localhost/
#<VirtualHost *:80>
# ServerName AspNetOnApache
# ServerAdmin web-admin@AspNetOnApache
# DocumentRoot /opt/mono/lib/xsp/test

# MonoServerPath AspNetOnApache "/opt/mono/bin/mod-mono-server4"

# MonoDebug AspNetOnApache true

# MonoApplications AspNetOnApache "/:/opt/mono/lib/xsp/test"
# <Location "/">

# MonoSetServerAlias AspNetOnApache
# SetHandler mono
# </Location>
#</VirtualHost>
 
Old 10-22-2013, 05:09 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,277

Rep: Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443Reputation: 4443
Quote:
Originally Posted by south9204 View Post
How to install mono, Apache on Linux and run APS.NET web site Here we are using amd64, Redhat6.1, Apache2.2.15.

We need root login for Red hat/CentOS to performing installation below. ( If you are enjoy fixing installation problem/issue, you can try to use sudo -s)
Ok...is there a question/problem in there somewhere? Is this a request for help, or a list of steps that you've done to get things working??
 
Old 10-22-2013, 05:10 PM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
In accordance with the Red Hat Enterprise Linux Errata Support Policy,
Extended Update Support for Red Hat Enterprise Linux 6.1 was retired on
May 31, 2013, and support is no longer provided. Accordingly, Red Hat will
no longer provide updated packages, including critical impact security
patches or urgent priority bug fixes, for Red Hat Enterprise Linux 6.1 EUS.
In addition, technical support through Red Hat's Global Support Services is
no longer provided
Time to upgrade.

Quote:
Originally Posted by TB0ne View Post
Ok...is there a question/problem in there somewhere?
+1
 
1 members found this post helpful.
Old 10-25-2013, 06:42 PM   #4
south9204
LQ Newbie
 
Registered: Jul 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
It is list of steps I have done and success. And it is also works for CentOS 6.4

As newbie, it was so hard and wast of time to install and let asp.net to run on CentOS, I would like leave here to help next Newbie.

As ask for help, does anyone know how to step by step install and run asp.net mvc 4 on mono mod_mono on apache?
 
Old 10-25-2013, 08:36 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
Redhat or CentOS might not be the best OS to try to use with MS's ASP.net

in a office/business environment that has to use Microsoft .net
i would run SELS/D
SUSE enterprise Linux Server / Desktop

Novell actively works with Microsoft
-- yes they went to the "darkside"
" Luke come to the darkside , we have cookies "

Novell dose work with Microsoft so that there products do work with windows "only" software
 
Old 10-25-2013, 08:54 PM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
IF you are running ASP for your self then you should learn to understand the risk and the problems, if you are trying to provide a ASP.net to others, than I recommend you get Windows Server, because sometimes ASP on Linux causes some unexpected bugs that aren't in the real ASP.net.
 
Old 10-26-2013, 01:18 AM   #7
south9204
LQ Newbie
 
Registered: Jul 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Angry MONO? who cares!

Novell has stopped support mono on Linux,
and there is no support mono from RedHat at all.
but Ubuntu does have "unofficial support" mono
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Run ASP.NET on Linux? ani_linux Linux - Newbie 1 02-04-2012 07:20 AM
ASP and ASP .NET running on Apache? isra_mv Linux - Server 1 10-28-2007 06:39 PM
How to run Microsoft ASP.Net Pages on Redhat Apache mskingdom Linux - Networking 2 11-04-2006 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration