[Mono-list] Cannot run ASP.NET 4.5 / MVC4 application under CentOS6
Marco Ridoni
m.ridoni at gmail.com
Tue Mar 26 12:47:54 UTC 2013
I have this in my configuration:
MonoApplications production "/:/var/www/application"
<Location "/">
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.2. 192.168.0.
MonoSetServerAlias production
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
DirectoryIndex index.html Home.aspx
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
</Location>
and
<VirtualHost *:443>
...
MonoServerPath production "/opt/mono/bin/mod-mono-server2"
MonoDebug production false
...
</VirtualHost>
that are not strictly needed. IIRC I also tried to use a configuration
similar to yours (no "application tag" after "MonoApplications" but it
didn't work.
m.
2013/3/25 Dwobin <furism at outlook.com>
> Hi,
>
> I've been stuck on this problem for two days now and I fear I've reached
> the
> limits of my knowledge.
>
> I'm trying to run an ASP.NET 4.5 (MVC4 with Razor) application under
> CentOS
> 6, using Mono 3.0 and Apache2. I have compiled Mono and it works fine. I've
> added that line in etc/httpd/httpd.conf:
>
> Include conf.d/*.conf
>
> Then in conf.d I created mvcgui.conf, and this is the configuration:
>
> <VirtualHost _default_:80>
> MonoServerPath mvcgui "/opt/mono/bin/mod-mono-server4"
> MonoDebug mvcgui true
> MonoSetEnv ctgui MONO_IOMAP=all
>
> MonoApplications "/:/home/mvcgui/wwwroot"
> <Location "/">
> Allow from all
> Order allow,deny
> MonoSetServerAlias mvcgui
> SetHandler mono
> </Location>
> </VirtualHost>
>
> However, this configuration generates two errors. When I start the service
> I
> see this in the apache logs:
>
> [Mon Mar 25 10:55:49 2013] [notice] Apache/2.2.15 (Unix) DAV/2
> mod_mono/2.10
> configured -- resuming normal operations
> Listening on: /tmp/mod_mono_server_global
> Root directory: /
> Listening on: /tmp/mod_mono_server_global
> Root directory: /
> Error: Address already in use
> Error: Directory "/home/mvcgui/wwwroot/" not found.
> [root at localhost httpd]#
>
> I have no idea why the server doesn't see the wwwroot. The directory *is*
> there, and I added 'apache' user in the 'mvcgui' group. Then if I try to
> reach that server anyway, this is what appears in the logs:
>
> [Mon Mar 25 10:57:49 2013] [error] Not running mod-mono-server.exe because
> no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
> specified.
> [Mon Mar 25 10:57:51 2013] [error] Not running mod-mono-server.exe because
> no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
> specified.
> [Mon Mar 25 10:57:53 2013] [error] Not running mod-mono-server.exe because
> no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
> specified.
> [Mon Mar 25 10:57:55 2013] [error] Failed to connect to mod-mono-server
> after several attempts to spawn the process.
>
> Which is strange to me as, as you can see in the VHOST configuration, I do
> specify a MonoApplications directive. To be sure the VHOST config is read
> I've changed the MonoApplications path and I get the first error message on
> the modified path - meaning it's being read I think.
>
> I'm completely lost as to what to do next! Any help would be appreciated.
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Cannot-run-ASP-NET-4-5-MVC4-application-under-CentOS6-tp4659143.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130326/76a29238/attachment.html>
More information about the Mono-list
mailing list