Re: [users@httpd] weird httpd processes

2005-06-09 Thread kalin mintchev
i found a client connected to the process but could not find the client's ip number in any of the logs of the server. so i assume its some remote application that is hitting directly the offending script. but how do i get to that?!? like somebody mentioned it's probably not written in the logs u

Re: [users@httpd] php scripts run except in cgi-bin

2005-06-09 Thread Ivan Barrera A.
>>> Anyone have any pointers on getting php scripts to run from the cgi-bin directory? I can run php scripts fine so long as they are not in the default cgi-bin folder. > > > Hmmm... I'm guessing this person wants to run the php module, not php > as a CGI. Hence the problem is th

Re: [users@httpd] Apache 1.3 caching problem...

2005-06-09 Thread abc
Any pointers Joshua On Fri, 10 Jun 2005 abc wrote : >Hi experts... > >Our new Apache 1.3's perl module is reading a file. Now even if I delete that file, the app works because Apache is caching that file. The problem is it not picking up the changes made to that file. So we have to restart t

Re: [users@httpd] php scripts run except in cgi-bin

2005-06-09 Thread Joshua Slive
On 6/9/05, Ivan Barrera A. <[EMAIL PROTECTED]> wrote: > Jean-Christophe Montigny wrote: > > (be aware, that is an obvious question) > > > > Do you have the line > > #/usr/bin/php > > #!/path/to/exe > > > > > (or whatever your path to php is) at its beginning? > > > > As well, you cannot send ra

[users@httpd] Apache 1.3 caching problem...

2005-06-09 Thread abc
Hi experts... Our new Apache 1.3's perl module is reading a file. Now even if I delete that file, the app works because Apache is caching that file. The problem is it not picking up the changes made to that file. So we have to restart the Apache every time we change the file. We don't want that.

RE: [users@httpd] ProxyPassReverse in context

2005-06-09 Thread Axel-Stéphane SMORGRAV
Well, if you have a fix, you've got yourself a customer... I've got time to patch, recompile and test. -ascs -Original Message- From: Nick Kew [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 1:03 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] ProxyPassReverse in c

Re: [users@httpd] Can't run any php or any other exec file. Error 500. Premature end of script headers

2005-06-09 Thread Jean-Christophe Montigny
While my answer to the other thread about php scripts not running might not work for that case, it is obvious it applies in yours.. You need to send the string Content-type: text/html before sending any data, or it fails with error 500. Google for the exact string. Miguel - Globalview wrote:

Re: [users@httpd] Can't run any php or any other exec file. Error 500. Premature end of script headers

2005-06-09 Thread Miguel - Globalview
In addition, if this helps, I get this info in suexec.log: "emerg: failed to setuid (10082: php431)" Miguel - Globalview wrote: Hello all! I am facing a weird thing with running any binary or script of any language, PHP or Shell script in my Apache. When I run the .PHP script, error_log show

Re: [users@httpd] Blocking repeated requests.

2005-06-09 Thread Joshua Slive
On 6/9/05, Krist van Besien <[EMAIL PROTECTED]> wrote: > Hello, > > We run a web portal for mobile phones. The problem we have is that > some phones have buggy web clients, that sometimes sent bursts of 200 > or more of identical requests, that overwhelm the application server > our webserver for

Re: [users@httpd] Limit Traffic for specific files

2005-06-09 Thread Joshua Slive
On 6/8/05, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > how can I limit the traffic which certain files generate in a certain time. > For example: I don't want downloading of the file xyz.iso to generate more > traffic that 10 GB per month? > I'm using Apache 2. There is no easy way to do

RE: [users@httpd] how to alter and use environmanet vaaiables with mod_rewrite

2005-06-09 Thread Axel-Stéphane SMORGRAV
Here it goes: # Initialise an environment variable with some stuff RewriteCond %{ENV:DN}="" RewriteRule .* - [E=DN:/A/B/C/D] # Substitute a / in DN with _ and start over again (N-flag) until there are no more / RewriteCond %{ENV:DN}(.*)/

RE: [users@httpd] Web server corrupting image?

2005-06-09 Thread PMilanese
Open the file, save it as another name, and try it again. The header may be corrupt or something. While many graphics apps overlook that stuff, I do not think browsers are smart enough to do so. I assume you are sure that it is a .gif, because if not it could just be a mime issue. -Origin

Re: [users@httpd] Can't run any php or any other exec file. Error 500. Premature end of script headers

2005-06-09 Thread Davide Bianchi
Miguel - Globalview wrote: > "... Premature end of script headers: > In addition, I created a test shell script testing, that usually works > fine: > "#!/bin/sh > echo " Just for testing purposes..."; This isn't a correct CGI. A Cgi should start by sending back some 'headers', minimal requirements

Re: [users@httpd] php scripts run except in cgi-bin

2005-06-09 Thread Ivan Barrera A.
Jean-Christophe Montigny wrote: > (be aware, that is an obvious question) > > Do you have the line > #/usr/bin/php #!/path/to/exe > (or whatever your path to php is) at its beginning? > > As well, you cannot send raw data just like a normal php script. > Just like any CGI you need to send the

Re: [users@httpd] php scripts run except in cgi-bin

2005-06-09 Thread Jean-Christophe Montigny
(be aware, that is an obvious question) Do you have the line #/usr/bin/php (or whatever your path to php is) at its beginning? As well, you cannot send raw data just like a normal php script. Just like any CGI you need to send the string Content-type: text/html there's another line but I cannot

[users@httpd] Can't run any php or any other exec file. Error 500. Premature end of script headers

2005-06-09 Thread Miguel - Globalview
Hello all! I am facing a weird thing with running any binary or script of any language, PHP or Shell script in my Apache. When I run the .PHP script, error_log shows me: "... Premature end of script headers: /var/www/owner/any_domain.com/cgi-bin/php431" Browser shows me: "Internal Server Er

[users@httpd] php scripts run except in cgi-bin

2005-06-09 Thread gradeAstudent.com.au
Anyone have any pointers on getting php scripts to run from the cgi-bin directory? I can run php scripts fine so long as they are not in the default cgi-bin folder. Alas, however, a survey program I am trying to test (not written by me) needs to have its scripts in the cgi-bin folder for some reaso

[users@httpd] how to alter and use environmanet vaaiables with mod_rewrite

2005-06-09 Thread Tilman Baumann
Hi, i have a problem which is seem to be swamped with. I want to make a substitute on a variable for later use in mod_rewrite. I have users which are Authorizing themselves via ssl cleint auth (mod_ssl and +FakeBasicAuth) These users access all the same url (they are relatively dump scripts)

Re: [users@httpd] Apache 2 aborting downloads

2005-06-09 Thread Sai Jai Ganesh Gurubaran
Hi, Thanks for the reply setting the directives did help. But when we applied the load we are getting the same problem. On Analysis we find that it turns out to be a segmentation fault. strace - gives the following output: [pid 20887] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout) [pid 20887]

RE: [users@httpd] Restart Errors (apache 2.0.50)

2005-06-09 Thread Axel-Stéphane SMORGRAV
I also think that it is likely that a port is not freed quickly enough... There are a couple of fixes in Apache 2.0.54 that may be relevant to this problem: Refer to the changelist for details. I therefore think that it might be worthwhile to try to reproduce the restart problem with 2.0.54. Al

[users@httpd] Blocking repeated requests.

2005-06-09 Thread Krist van Besien
Hello, We run a web portal for mobile phones. The problem we have is that some phones have buggy web clients, that sometimes sent bursts of 200 or more of identical requests, that overwhelm the application server our webserver forwards its requests to. Is there a way to filter these requests out

RE: [users@httpd] Fw: signal Bus error with apache Apache/2.0.54 with SSL pages

2005-06-09 Thread Boyle Owen
Plain text please... To recap, you upgraded from 1.3 to 2 and now you get occassional bus errors. My guess is that certain requests are triggering a call to a function in an extension module or library and that the module was compiled for 1.3 and is not compatible with apache 2. To find the re

[users@httpd] mod_headers with mod_sm20

2005-06-09 Thread Alexander Mueller
Hi, I am having an Apache 2 configuration running with Netegrity's (now Computer Associates) SiteMinder mod_sm20 module and am trying to alter certain outgoing headers with mod_headers. However it doesnt seem to work as expect and I suspect that is because mod_headers is possibly called prior

RE: [users@httpd] rewrite exclude

2005-06-09 Thread Axel-Stéphane SMORGRAV
I am not sure whether you want to redirect any request for a URL path that starts with /abc, or if only requests for /abc/ or /abc should be redirected. I assumed the former: RewriteRule ^/abc/ http://www.mynewsite.com/jsp/services/abc.jsp [R=301,L] RewriteRule .* http://www.mynewsite.com/