LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-03-2017, 03:28 PM   #1
elsheepo
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 90

Rep: Reputation: 20
Slackware + Mono Project resulting in '503 Service Unavailable'


After a full install of Slackware64-14.2 to a Virtual-Machine, I updated via slackpkg,
Code:
slackpkg update && 
slackpkg install-new && 
slackpkg upgrade-all
I then installed sbotools and synced to the SlackBuilds.org repository,
Code:
installpkg sbotools-2.3.tar.gz && 
sbosnap fetch
then used sbotools to install mono and xsp,
Code:
sboinstall mono && 
sboinstall xsp
and copied the contents of /usr/lib64/xsp/test to /var/www/htdocs,
Code:
rm -R /var/www/htdocs/* && 
cp -R /usr/lib64/xsp/test/* /var/www/htdocs/
Then I installed mod_mono following the instructions found here: https://github.com/mono/mod_mono/blob/master/INSTALL.
Code:
tar xvfz mod_mono-*.tar.gz
cd mod_mono-X.Y.Z
./configure --prefix=/usr
make
make install
Then added these lines of code to /etc/httpd/httpd.conf,
Code:
########## Mono stuff ##########

Include /etc/httpd/mod_mono.conf

<Location /mono>
    SetHandler mono-ctrl
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>
and here's a look at my /etc/httpd/mod_mono.conf it has not been modified,
Code:
# mod_mono.conf

# Achtung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.

<IfModule !mod_mono.c>
    LoadModule mono_module /usr/lib64/httpd/modules/mod_mono.so
</IfModule>

<IfModule mod_headers.c>
    Header set X-Powered-By "Mono"
</IfModule>

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
I am able to access the mod_mono Control Panel in my web-browser, but any other requests sent, such as 127.0.0.1/index.aspx end with a "503 Service Unavailable". Any help? I've been stuck here for several days. Also, I know that mcs compiler works, because I have compiled a simple hello_world.exe written in C# and it works, also, when I ran xsp in the /var/www/htdocs directory, I was able to view the aspx in my web-browser as described here: http://www.mono-project.com/docs/web/aspnet/

Last edited by elsheepo; 04-03-2017 at 03:34 PM.
 
Old 04-04-2017, 09:32 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Obligatory question:

Anything in the Apache logs?
 
Old 04-04-2017, 11:36 AM   #3
elsheepo
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 90

Original Poster
Rep: Reputation: 20
[solved]

So It's working now. I just had to add some stuff to /etc/httpd/mod_mono.conf,
Code:
# Added this code

MonoAutoApplication enabled
MonoDebug false
MonoServerPath "/usr/bin/mod-mono-server"
MonoSetEnv LANG = en_US.UTF-8
MonoUnixSocket "/tmp/.mod_mono"

# moved this code over from httpd.conf

<Location /mono>
    SetHandler mono-ctrl
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>
restarted httpd, and presto! .aspx pages hosted!!
 
  


Reply



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
503 Service Unavailable backtracklinux Linux - Software 2 09-20-2013 03:36 AM
Yum update producing 503 Service Unavailable error lce411 Linux - Server 1 03-08-2013 02:14 AM
[SOLVED] Debian Vmware Server 2.0.2 503 Service Unavailable ibaydan Linux - Virtualization and Cloud 1 05-25-2010 09:02 AM
SendMail DNS: Service unavailable nutthick Linux - Newbie 1 01-24-2005 09:49 AM
Service unavailable tintin Linux - Newbie 2 11-25-2002 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:30 PM.

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
Open Source Consulting | Domain Registration