Hi Martin, Sorry, you are still running into problems. You are right, if you are using /usr as your prefix, you shouldn't need to worry about the ld.conf.so.d entry.
When I look at the command on my running webserver, I see the following: /opt/mono-3.0/bin/mono /opt/mono-3.0/lib/mono/4.5/mod-mono-server4.exe --filename /tmp/mod_mono_server_site --applications /:/srv/www/site --nonstop --root /srv/www/site Seeing you are using the default prefix, you should be fine with /usr/bin/mod-mono-server4 as you have it. However, perhaps it doesn't like the format you are specifying the arguments (try dropping the '='), or perhaps try adding the nonstop and root arguments. Does that get you any further? -m On Thu, Jul 11, 2013 at 4:24 PM, Martin Thwaites <monofo...@my2cents.co.uk>wrote: > So I've got a little further in debugging. > > I think this has to do with loading applications from the commandline > maybe? > > I've tried running this command (looks like this is what mod_mono is > trying to run: > > /usr/bin/mod-mono-server4 --filename="/tmp/mod_mono_server_test" > --applications="/test:/var/www/test/" > > This gives an error saying that the applications parameter is not correct: > > mod-mono-server4 > Handling exception type ArgumentException > Message is Should be something like [[hostname:]port:]VPath:realpath > IsTerminating is set to True > System.ArgumentException: Should be something like > [[hostname:]port:]VPath:realpath > at Mono.WebServer.ApplicationServer.AddApplicationsFromCommandLine > (System.String applications) [0x00000] in <filename unknown>:0 > at (wrapper remoting-invoke-with-check) > Mono.WebServer.ApplicationServer:AddApplicationsFromCommandLine (string) > at Mono.WebServer.Apache.Server.Rea > > I added a bit of debug code to the above method, and found that what's > being passed in is "applications" as a string instead of what was passed on > the commandline. Anybody else getting this? > > Thanks, > Martin > > On Tue, Jul 9, 2013 at 11:31 PM, Martin Thwaites <monofo...@my2cents.co.uk > > wrote: > >> Thanks mike. >> >> Couple of things though, I'm using ubuntu server, so it doesn't use >> SELinux apparently. >> >> The directory is set to a+rw (as a last resort) so permissions shouldn't >> be an issue. I've also su'd to the www-data user and run mod-mono-server4 >> directly in that directory, it worked fine. >> >> Finally, I'm not sure about the prefix thing, I'm using ./autogen.sh >> --prefix=/usr, but the downloaded code is in /opt/mono-3.0. It doesn't >> produce the file you've specified in /etc/ld.conf.so.d, plus I'm not sure >> it's needed as I'm installing to /usr? >> >> Thanks for what you've sent so, far, any further insight based on the >> above? >> >> Martin >> >> >> On Thu, Jul 4, 2013 at 5:59 PM, Mike Morano <mmor...@mikeandwan.us>wrote: >> >>> Hello, >>> >>> I was doing something similar today - moving a working site to a >>> different machine (running a new fedora19 install). Your issue sounds a >>> bit different from mine, but thought I'd send some of the things that >>> caught me when getting this up and running again in apache: >>> >>> 1) selinux - although I don't know what a good fix for this is, i had to >>> disable selinux. >>> - edit /etc/selinux/config: SELINUX=disabled >>> - reboot (perhaps there is a way to reload the config if not done >>> manually, but my machine is not a production server) >>> >>> 2) mono prefix location >>> - I compile all of mono to a unique prefix on my machine: >>> /opt/mono-3.0 >>> - When I ran apache, was getting issue where it could not find >>> libmonoPosixHelper.so. To fix this, I did the following: >>> a) cd /etc/ld.so.conf.d/ >>> b) echo '/opt/mono-3.0/lib' > mod_mono.conf >>> c) ldconfig >>> d) systemctl restart httpd.service (restart apache - not sure >>> if this is the same as what you would need to do on ubuntu) >>> >>> >>> In terms of permissions, I had previously made sure that the user that >>> runs apache has appropriate access to the directory structure hosting the >>> site. On my system, that is the apache user/group. Just make sure the >>> directory hosting the site and parent paths are accessible. >>> >>> Also, I have a couple extra settings in my apache config, so perhaps >>> take a look at this in the mod_mono man pages to see if it helps: >>> MonoWapiDir, MonoUnixSocket. In particular, make sure apache has rw acess >>> to the location pointed to by MonoWapiDir. >>> >>> >>> After the above was completed, my site worked via apache on the new >>> machine. >>> >>> Good luck, >>> Mike >>> >>> >>> On Wed, Jul 3, 2013 at 9:21 PM, Danny <dgorto...@gmail.com> wrote: >>> >>>> No idea. >>>> >>>> >>>> On 07/03/2013 05:30 PM, Martin Thwaites wrote: >>>> >>>>> Is this message not getting through? is it just that no one knows the >>>>> answer, can someone just send a simple "No idea" so I know this is >>>>> getting through. It's the first time I've used the list. >>>>> >>>>> >>>>> On Mon, Jul 1, 2013 at 9:49 PM, Martin Thwaites >>>>> <monofo...@my2cents.co.uk >>>>> <mailto:monofo...@my2cents.co.**uk<monofo...@my2cents.co.uk>>> >>>>> wrote: >>>>> >>>>> I'm trying to get mono working from source so i can try and get >>>>> some >>>>> .net 4.5 website stuff working. I'm using Ubuntu Server 13.04, and >>>>> I followed this: >>>>> >>>>> http://stackoverflow.com/**questions/13365158/installing-** >>>>> mono-3-0<http://stackoverflow.com/questions/13365158/installing-mono-3-0> >>>>> >>>>> Apart from the libgdiplus, I can get everything to compile, >>>>> however, >>>>> when I've installed mod_mono, I keep getting the following in the >>>>> log... >>>>> >>>>> [Mon Jul 01 21:20:57 2013] [error] Failed to connect to >>>>> mod-mono-server after several attempts to spawn the process. >>>>> >>>>> I enable debug on the compile and got this in the logs.. >>>>> >>>>> [Mon Jul 01 21:20:55 2013] [warn] getting unix socket path >>>>> [Mon Jul 01 21:20:55 2013] [warn] Socket file name >>>>> /tmp/mod_mono_server_**GalleryLive >>>>> [Mon Jul 01 21:20:55 2013] [warn] try_connect: -1 >>>>> [Mon Jul 01 21:20:55 2013] [warn] After setup_socket >>>>> [Mon Jul 01 21:20:55 2013] [warn] No backend found, will start a >>>>> new >>>>> copy. >>>>> [Mon Jul 01 21:20:55 2013] [warn] Acquiring the >>>>> /tmp/mod_mono_dashboard_**GalleryLive_2.lock lock for backend >>>>> start >>>>> [Mon Jul 01 21:20:55 2013] [warn] config->servers [0]->dashboard >>>>> == 0x0 >>>>> [Mon Jul 01 21:20:55 2013] [warn] config->servers [1]->dashboard == >>>>> 0x7F2F61407000 >>>>> [Mon Jul 01 21:20:55 2013] [warn] xsp address 0x7f2f6599c6c8, >>>>> dashboard 0x7f2f61407000 >>>>> [Mon Jul 01 21:20:55 2013] [warn] getting unix socket path >>>>> [Mon Jul 01 21:20:55 2013] [warn] Socket file name >>>>> /tmp/mod_mono_server_**GalleryLive >>>>> [Mon Jul 01 21:20:55 2013] [warn] try_connect: -1 >>>>> [Mon Jul 01 21:20:55 2013] [warn] backend cannot be connected to. >>>>> [Mon Jul 01 21:20:55 2013] [warn] Starting backend for alias >>>>> GalleryLive >>>>> [Mon Jul 01 21:20:55 2013] [warn] Applications: /:/var/www/gallery/ >>>>> [Mon Jul 01 21:20:55 2013] [warn] Config file: (null) >>>>> [Mon Jul 01 21:20:55 2013] [warn] Config dir.: (null) >>>>> [Mon Jul 01 21:20:55 2013] [warn] Listen port: (null) >>>>> [Mon Jul 01 21:20:55 2013] [warn] Listen address: (null) >>>>> [Mon Jul 01 21:20:55 2013] [warn] Started new backend, sleeping 2s >>>>> to let it configure >>>>> [Mon Jul 01 21:20:55 2013] [warn] child started >>>>> [Mon Jul 01 21:20:55 2013] [warn] PATH: >>>>> /usr/local/bin:/usr/bin:/bin >>>>> [Mon Jul 01 21:20:55 2013] [warn] serverdir: /usr/bin >>>>> [Mon Jul 01 21:20:55 2013] [warn] PATH after: >>>>> /usr/bin:/usr/local/bin:/usr/**bin:/bin >>>>> [Mon Jul 01 21:20:55 2013] [warn] getting unix socket path >>>>> [Mon Jul 01 21:20:55 2013] [warn] Backend socket path: >>>>> /tmp/mod_mono_server_**GalleryLive >>>>> Warning: unparsed command line arguments: >>>>> /tmp/mod_mono_server_**GalleryLive /:/var/www/gallery/ >>>>> >>>>> >>>>> It seems there there is no "/tmp/mod_mono_server_**GalleryLive" >>>>> socket >>>>> for it to connect to, so the error makes sense, but I can't see why >>>>> this is the case. >>>>> >>>>> I can run mod-mono-server4 from the desired directory, and it seems >>>>> to run fine. >>>>> >>>>> I've run sites using mod-mono from the repos before, but this is >>>>> the >>>>> first time I've compiled from source. >>>>> >>>>> vhost config is (this is also copied some a server using the repos >>>>> and is working): >>>>> >>>>> <VirtualHost *:80> >>>>> ServerAdmin webmaster@localhost >>>>> ServerName gallery.internal.com < >>>>> http://gallery.internal.com> >>>>> >>>>> >>>>> DocumentRoot /var/www/gallery/ >>>>> MonoServerPath GalleryLive "/usr/bin/mod-mono-server4" >>>>> >>>>> MonoApplications GalleryLive "/:/var/www/gallery/" >>>>> <Location "/"> >>>>> Allow from all >>>>> Order allow,deny >>>>> MonoSetServerAlias GalleryLive >>>>> SetHandler mono >>>>> </Location> >>>>> >>>>> ErrorLog /var/log/apache2/error.log >>>>> >>>>> # Possible values include: debug, info, notice, warn, >>>>> error, crit, >>>>> # alert, emerg. >>>>> LogLevel debug >>>>> >>>>> CustomLog /var/log/apache2/access.log combined >>>>> >>>>> </VirtualHost> >>>>> >>>>> I'm thinking that this could be a permissions error somewhere, but >>>>> I've run out of places to look. >>>>> >>>>> Any ideas? >>>>> >>>>> >>>>> >>>>> >>>>> ______________________________**_________________ >>>>> Mono-list maillist - Mono-list@lists.ximian.com >>>>> http://lists.ximian.com/**mailman/listinfo/mono-list<http://lists.ximian.com/mailman/listinfo/mono-list> >>>>> >>>>> ______________________________**_________________ >>>> Mono-list maillist - Mono-list@lists.ximian.com >>>> http://lists.ximian.com/**mailman/listinfo/mono-list<http://lists.ximian.com/mailman/listinfo/mono-list> >>>> >>> >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list@lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> > > _______________________________________________ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > >
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list