mod_rewrite is working strangely while using mod_perl
Hi, I reported a bug that seems to be related to mod_rewrite of apache. It turns out, that the problem only occurs while using mod_perl. Note, that everything else is working fine with mod_perl. Anyway I'm not quite sure where this bug belongs to (mod_perl or mod_rewrite). I was asked to report a bug to your list too. Please have a look at http://issues.apache.org/bugzilla/show_bug.cgi?id=43514 for more information. Thanks. -- Marco Bretschneider Genslerstraße 38 22307 Hamburg 040/61198860 Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
Fw: Best version of Apache for Win32 deployment
Hi, Here is a message from somebody that monitors the mod_perl mailing list but cannot send messages to it. Can anyone comment? Thank you. Octavian, I solved it by going back to Activestate 820. I also found that the problem is not on Vista. Both Apache 2.22 and 2.24 have the problem. It can also be that because of some windows update the problems started. perlInterpStart is one of a few tuning parameters that can change the behaviour of the perlInterpreters, see the http://modperlbook.org/html/24- 3-1-Thread-Support.html. perlInterpStart tells how many interpreters are started at startup. You can set these parameters in the httpd.conf file of apache. I have tested on different hardware and the problem is seen on all of the computers with windows 2003sp2 and XPsp2. Can you post this on the Modper list, hopefully someone else has an answer. I still can not send to that list and do not know who to contact. Kind regards, Thomas -Original Message- From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: "Thomas" <[EMAIL PROTECTED]> Date: Fri, 5 Oct 2007 09:01:17 +0300 Subject: Re: Best version of Apache for Win32 deployment Hi Thomas, Thank you for your help. Yes, I also found that this problem appears only when running larger projects. If I try to run a simple "It works" web page, it works. I saw that even running a mod_perl program that just prints an "Hello world" text it also works (but not always). If I try to run a Catalyst app, which uses very many CPAN modules, most of the times it doesn't work. It is strange, because I had previously used Apache 2.2.4 with ActivePerl built 822 and mod_perl 2.0.3 and it works successfully on other computers running Windows XP Pro and XP MediaCenter. Can you tell me what hardware you are using? I think that this issue appeared because of my combination of hardware. I am using an Intel Core 2 duo at 3 GHz, 2 GB of RAM at 1066 MHz, an Assus motherboard with an Intel chipset (P35... or something with 35 in its name), a Creative SB X-FI EXtremeGamer sound card, an NVidia video card (7100 if I remember well), and a SATA 2 hard disk at 1 RPM. Another thing... Can you please tell me what perlInterpStart means? How can I modify that parameter of perl? And if you told that you also had this problem, can you tell me how do you made to solve it? Have you solved it by using ActivePerl 820? I have read tens of forums and asked about my problem on more mailing lists, but with no success. Thank you very much for helping me. Octavian - Original Message - From: "Thomas" <[EMAIL PROTECTED]> To: "'Octavian Rasnita'" <[EMAIL PROTECTED]> Sent: Thursday, October 04, 2007 8:18 PM Subject: RE: Best version of Apache for Win32 deployment Octavian, I am send you this direct because I have problems sending emails to modperl list ( not sure what is happening there). I have found similar problems with Activestate 822 an Modperl 2.03 from TheoryX. The problems are only whith larger modperl projects. Some times after a fresh restart it works, some time when I lower the perlInterpStart parameter it also works. These problems where not there in version 820. So maybe you can try running with 820 to that helps. Regards, Thomas den Braber > -Oorspronkelijk bericht- > Van: Octavian Rasnita [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 3 oktober 2007 19:38 > Aan: Randy Kobes; William A. Rowe, Jr. > CC: Foo JH; modperl@perl.apache.org > Onderwerp: Re: Best version of Apache for Win32 deployment > > Here it is what it happened: > > I've installed: > Apache/2.2.4 (Win32), Server built: Jan 9 2007 23:17:20 > perl, v5.8.8 built for MSWin32-x86-multi-thread built 822 > latest mod_perl from TheoryX > > After installing them, I started the web server and it worked fine and I > could access the success page. > I have tried stopping and starting it for more times with success. > > Then I've created a default Catalyst app named "Testing", using: > > catalyst Testing > > I was able to access the "Testing" application using its internal web > server, so it is working. > > Then I've created a virtual host for calling that Catalyst application. > Here > is the content of that virtualhost: > > > ServerName www.brk.ro > ServerAdmin [EMAIL PROTECTED] > DocumentRoot e:/web/Testare/root > > ErrorLog e:/web/Testare/logs/error.txt > CustomLog e:/web/Testare/logs/access.txt common > > > PerlRequire "e:/web/Testare/script/preload.pl" > > > Options Indexes > Order allow,deny > Allow from all > > SetHandler perl-script > PerlResponseHandler Testare > > > > > Of course, I created the directory "logs" under the "Testing" app > directory, > and I also created the program preload.pl that just "use" the "Testing" > module. > > And I tried starting the server, but it appeared an error window "Visual > Studio just in time debugger" and it also printed the following errors in > the command prompt: > > net start apache2 > > The Apache2 service is starting. > The Apache2 ser
Proba
proba
[1]mod_perl fail to handle scripts
after installing mod_perl-2.0.3 and configuring according to http://search.cpan.org/~mschout/Apache-AuthCookie-3.10/lib/Apache2/AuthCookie.pm I detect then perl-script respond itself in plain-text instead of running. Logs do not consist any error I'm confused. Resulting apache configs at links: http://apache.pastebin.ca/726563 http://apache.pastebin.ca/726564
Re: mod_rewrite is working strangely while using mod_perl
Marco Bretschneider wrote: > Hi, > > I reported a bug that seems to be related to mod_rewrite of apache. > It turns out, that the problem only occurs while using mod_perl. > Note, that everything else is working fine with mod_perl. Anyway I'm > not quite sure where this bug belongs to (mod_perl or mod_rewrite). I > was asked to report a bug to your list too. Please have a look at > > http://issues.apache.org/bugzilla/show_bug.cgi?id=43514 please explicitly add +SetupEnv to your PerlOptions under /folder fwiw, I just added a test for this to the mod_perl svn sources - it's not an .htaccess-based test but it does show env variables coming through. for the most part, the env communication between mod_rewrite and anyone else (mod_perl, mod_cgi, whomever) is pretty simple and clear - mod_rewrite populates the subprocess_env table, then mod_cgi or mod_perl calls a core apache API to populate %ENV at content-generation time. so, I'd like you to try a few things... first, please verify that this is not a problem with mod_cgi as well. that is, take your same setup, but use SetHandler cgi-script for your test and see if the problem persists. if mod_cgi does the right thing then I'll look into it further. --Geoff
Re: Best version of Apache for Win32 deployment
Hi, I've tried installing ActivePerl 5.8.8 built 820 and with mod_perl 2.03 and Apache 2.2.4 the web server can start and works fine. Could Active Perl 5.8.8 build 822 have a problem? Octavian - Original Message - From: "William A. Rowe, Jr." <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: "Randy Kobes" <[EMAIL PROTECTED]>; "Foo JH" <[EMAIL PROTECTED]>; Sent: Wednesday, October 03, 2007 11:25 PM Subject: Re: Best version of Apache for Win32 deployment Octavian Rasnita wrote: Well, I've uninstalled VS6 and VS.net, but this message still appears, so I have no where to go in Tools/Options/... You didn't bother to finish reading; http://httpd.apache.org/dev/debugging.html Which tells you how to enable/override drwtsn32 as your default error handler (-i flag I think, offhand).
Re: Best version of Apache for Win32 deployment
On Fri, 5 Oct 2007, Octavian Rasnita wrote: Hi, I've tried installing ActivePerl 5.8.8 built 820 and with mod_perl 2.03 and Apache 2.2.4 the web server can start and works fine. Could Active Perl 5.8.8 build 822 have a problem? Are the same versions of all modules being used with both ActivePerl 820 and 822 (outside of the core ones)? Could you post a minimal version of the problem? -- best regards, Randy
Re: monitoring server and which ports they are connected to.
On Fri, Oct 05, 2007 at 03:25:52PM -0600, Tyler Bird wrote: [...] > Hey this worked great for seeing servers connected to port 80, but it > didn't show any servers bound and listening to port 443. Sounds like a problem in your /etc/services file. > On my system I even did a telnet 192.168.0.252 443 and I got a successful > connection, but not output for any servers was showing > by running the comand: > > ss -a 'src :https' > > as root. > > Any idea if I need to change something. I looked at ss -h for additional > options and couldn't find any way to show the secure servers. [...] Have you tried ss -a 'src :443' ? It should show the sockets bound to port 443 (any protocol). -- Stephane
Re: monitoring server and which ports they are connected to.
Stephane Chazelas wrote: On Tue, Oct 02, 2007 at 01:01:52PM -0700, Manoj Bist wrote: Try 'sudo lsof -i:443'. [...] See also: ss -a 'src :https' (ss is part of iproute, the new suite of ip managment tools for Linux). Cheers, Stephane Hey this worked great for seeing servers connected to port 80, but it didn't show any servers bound and listening to port 443. On my system I even did a telnet 192.168.0.252 443 and I got a successful connection, but not output for any servers was showing by running the comand: ss -a 'src :https' as root. Any idea if I need to change something. I looked at ss -h for additional options and couldn't find any way to show the secure servers. Thanks so much. Tyler ss -a 'src :https'
Apache2::SizeLimit & Linux::Smaps on x86_64
I have an x86_64 machine running RHEL5 but with the mod_perl 2.0.3 from Fedora 7. Without Linux::Smaps installed, Apache2::SizeLimit thinks my processes are taking up 300MB and terminates them after every hit. ("top" thinks so too, but "free -m" quickly proves that's untrue.) With Linux::Smaps, Apache2::SizeLimit simply doesn't work at all, because Linux::Smaps apparently doesn't work under x86_64. See this RT bug I filed against Linux::Smaps: http://rt.cpan.org//Ticket/Display.html?id=29803 I do have a kernel that supports smaps, 2.6.18. -Max -- http://www.everythingsolved.com/ Competent, Friendly Bugzilla Services. And Everything Else, too.
Re: Apache2::SizeLimit & Linux::Smaps on x86_64
On 10/5/07, Max Kanat-Alexander <[EMAIL PROTECTED]> wrote: > I have an x86_64 machine running RHEL5 but with the mod_perl > 2.0.3 from Fedora 7. > > Without Linux::Smaps installed, Apache2::SizeLimit thinks my > processes are taking up 300MB and terminates them after every hit. > ("top" thinks so too, but "free -m" quickly proves that's untrue.) If top can't figure out how much memory a process is using, I don't see how SizeLimit is going to. Is it possible they really are using that much, but a lot of it is shared via copy-on-write? - Perrin
Re: Apache2::SizeLimit & Linux::Smaps on x86_64
On Sat, 6 Oct 2007 00:39:42 -0400 "Perrin Harkins" <[EMAIL PROTECTED]> wrote: > If top can't figure out how much memory a process is using, I don't > see how SizeLimit is going to. Is it possible they really are using > that much, but a lot of it is shared via copy-on-write? Yes, they really are using that much but nearly all of it is shared via copy-on-write, as far as I can tell. SizeLimit is supposed to be able to detect that situation on modern kernels if you have Linux::Smaps installed, according to its docs. (I have only MAX_UNSHARED_SIZE set.) -Max -- http://www.everythingsolved.com/ Competent, Friendly Bugzilla Services. And Everything Else, too.