[Mono-list] Virtual Hosts Problem
Help I am running mono 1.1.7 and mod mono 1.0.9 and cannot more than one named virtual host to work. This is the relevant extract from my httpd.conf file. VirtualHost *:80 ServerAlias test1.selestial.com ServerName test1.selestial.com DocumentRoot /var/www/test1 DirectoryIndex index.html AddMonoApplications default /:/var/www/test1 Location / SetHandler mono /Location /VirtualHost VirtualHost *:80 ServerAlias test2.selestial.com ServerName test2.selestial.com DocumentRoot /var/www/test2 DirectoryIndex index.html AddMonoApplications test2 /:/var/www/test2 Location / SetHandler mono /Location /VirtualHost Only the virtual host configured with the default application path works. i.e. AddMonoApplications default On the other virtual host I get the usual Service Temporarily Unavailable. If I configure the virtaul hosts without mono then they work fine. HELP! Howard Cole www.selestial.com ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Virtual Hosts Problem
Another case of RTFM. I changed httpd.conf as follows: VirtualHost *:80 ... AddMonoApplications test2 test1.selestial.com:/:/var/www/test1 Location / MonoSetServerAlias test2 SetHandler mono /Location /VirtualHost Now works fine. Although I cannot get both working on the same path. Sorry to annoy you all. Howard Cole www.selestial.com Howard Cole wrote: Help I am running mono 1.1.7 and mod mono 1.0.9 and cannot more than one named virtual host to work. This is the relevant extract from my httpd.conf file. VirtualHost *:80 ServerAlias test1.selestial.com ServerName test1.selestial.com DocumentRoot /var/www/test1 DirectoryIndex index.html AddMonoApplications default /:/var/www/test1 Location / SetHandler mono /Location /VirtualHost VirtualHost *:80 ServerAlias test2.selestial.com ServerName test2.selestial.com DocumentRoot /var/www/test2 DirectoryIndex index.html AddMonoApplications test2 /:/var/www/test2 Location / SetHandler mono /Location /VirtualHost Only the virtual host configured with the default application path works. i.e. AddMonoApplications default On the other virtual host I get the usual Service Temporarily Unavailable. If I configure the virtaul hosts without mono then they work fine. HELP! Howard Cole www.selestial.com ___ 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] Is my RHEL4 mod_mono install ok?
Hi, Just a quick question to find out if my Mod Mono installation is valid. This morning I installed mono 1.1.7 xsp/mod_mono 1.0.9 on a Centos4 (equivalent to RHEL4) machine using the Redhat RPMs from the download area. All went OK apart from the mod mono RPM from the download site which required httpd rpm to be installed. I had already installed httpd 2.0.54 from source so I forced the mod mono RPM to install with the rpm --force --install The test site appears to work fine. Not being much of an linux man, I was just looking for some conformation that this forced install will not cause me problems later on. Regards, Howard Cole www.selestial.com P.S. I was using mono1.0.5 previously and had to do some jiggery-pokery in the /etc/init.d/httpd file to get multiple virtual hosts working with mono. Is this still necessary? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Change Website Content without rebooting XSP/Apache/mod mono.
Hi, Whenever I make modifications to a mono asp website, I stop apache, kill any running mono processes and then copy the new files to the server. I then restart apache. Do I need to kill both to serve the new aspx and html files? Regards, Howard Cole www.selestial.com ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] IMAP libraries
Does anyone know of any .NET IMAP/POP3 libraries - commercial or otherwise that are compatible with mono? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Adding DELETE CASCADE to an existing foreign key
Hi, I have a table created as: create table test ( id serial8, foreign_id int8 not null references foreign(id) ); What PSQL ALTER TABLE command can I use to cascade deletes, changing the column definition to: foreign_id int8 not null references foreign(id) on delete cascade Thanks Howard Cole www.selestial.com ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Creating a single mod_mono session for multiple virtual directories
Hi, I have configured mod_mono to run with multiple site configuration as defined here: http://www.gotmono.net/documentation/mod-mono-howto.html However, this launches 2 processes for mod_mono_server for each virtual directory, which eats into my available resources. Is it possible to have virtual directories running with a single version of mod_mono_server? By the way I am using Mono 1.0.5 on WhiteBox ES3 Howard Cole www.selestial.com ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] escaping a string for sql
For postgres, you also need to replace \ public string escape (string s) { s = s.Replace(\\, ); // Replace \ with \\ s = s.Replace(\', \'\'); // Replace ' with '' (SQL Standard) //s = s.Replace(\, \\\); not necessary if enclosed in single quotes. return s; } Howard Cole www.selestial.com ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mod_mono xsp
I'm still unable to run the ASP.NET demo... does anybody know whether or not SELinux has an impact when running Apache with mod_mono? I had two problems with FC3 and Apache/XSP 1. The FC3 apache distributed with FC3 is restricted by SELinux to certain directories, so for example, I could not serve files from the /home/... areas. Disabling SE linux fixed this. 2. FC3 apache httpd.conf file set a username for apache to run under (See httpd.conf entries for Group=apache and User=apache). This prevents XSP from running in its usual configuration because it cannot get permissions on the /tmp/... file that it creates for a socket. Therefore, set the Group and User to the Apache defaults (Which I think are Group=, User=nobody please check) then XSP starts fine. Hope this helps Howard Cole www.selestial.com ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] CVS Repository for Npgsql
Rumour has it that there is a mono copy of the Gborg CVS repository for Npgsql. Ive tried logging on to :pserver:[EMAIL PROTECTED]:/mono but cannot checkout any npgsql their. I cannot find the GBorg repository either. Anyone know where any of them are? Howard Cole www.selestial.com ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Configure Problem
As the output states, you probably need to set the PKG_CONFIG_PATH environment variable to look in the directories with the *.pc files. On my Fedora FC3 build I use the following: $ export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig Howard Cole www.selestial.com Baris KANLICA wrote: Hi All, I have a problem. When I was make ./configure -- prefix/usr/local for installation mono, computer is giving this error : checking for pkg-config... /usr/bin/pkg-config Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found checking for glib-2.0 =3D 1.3.11... Package glib-2.0 was not found in = the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found configure: error: Library requirements (glib-2.0 =3D 1.3.11) not met; = consider adjusting the PKG_CONFIG_PATH environment variable if your = libraries are in a nonstandard prefix so pkg-config can find them. How is I make Best Regards, Baris KANLICA Netpa IT Manager ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Apache user configuration with mono_module
The need to start mod-mono-server rather than a fork from apache is only necessary if you run apache under a dedicated user name, and have the following type of setup in your httpd.conf file: Group apache User apache Under this configuration, running mono as an apache fork gives the following message in your browser 503 Service Temporarily Unavailable If you have the default httpd build options then the httpd.conf file is set to: Group #-1 User nobody The defaults work fine with mono; there is no need to set the permissions on the /tmp/mod-mono-server. Howard www.selestial.com Amish Munshi wrote: On Wed, Dec 22, 2004 at 05:25:15PM +, Howard Cole wrote: I feel this should feature more prominently in the mono documentation otherwise many people that run apache as a different user are going to waste several days as I have, or switch back to windows! I spent approx 2-3 hrs due to this problem, finally google gave me the answer. :-) I have written a document on how to set this up. I am not sure how good the document quality is so I have not made it available to google (It is in sxw format) at http://www.munshi.biz/mono . Also I noticed that I need not start mod-mono-server, the document I read mentioned that I have to start mod-mono-server myself, but if you follow the instructions mentioned in the above document, mod-mono-server starts by itself (Apache forks it). Amish. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Apache user configuration with mono_module
Thanks for the help Shawn, you were right, but I didn't realise the lengths you had to go to! A more in-depth solution can be found at the following link. http://www.gotmono.com/cgi-bin/yabb/YaBB.pl?board=ASPX;action=display;num=1077210208 A summary of the problem is that the user that the httpd daemon runs under needs access to the /tmp/mod_mono_server file. However, mod-mono-server needs to be running before you can change the permissions on this file! When the process stops, the file is deleted. The solution is to start the mod-mono-server in the background and to keep it running. Then do a chown apache /tmp/mod_mono_server. This can be accomplished on the command line as follows: $ cd /var/www/html $ mono /usr/bin/mod-mono-server.exe --root /var/www/html --applications /test:/var/www/html /dev/null $ chown apache /tmp/mod_mono_server The alias and root directory should match those in httpd.conf The linked article shows how to do this as a service at startup. I feel this should feature more prominently in the mono documentation otherwise many people that run apache as a different user are going to waste several days as I have, or switch back to windows! Howard www.selestial.com Howard Cole wrote: Still get the same error (http 503). There must be some other file somewhere that apache cannot find or execute? I have upgraded to v1.0.5 but still have the same problem. Shawn Vose wrote: I think you need to chmod it to 766 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list