[PHP] apache or php limit?

2011-05-30 Thread Peet Grobler
Hi there, new to this list.

I have a problem I can't seem to figure out. Here goes.

PHP page has 100s of textboxes on it. Submit on the development machine,
everything works as expected. Submit on live machine - only part of the
$_POST variables are there. The script doesn't stop executing - it
executes just fine with the limited data.

I've checked:
- post_max_size - more than enough (8M). Increased to 512M and
  re-tested, this is definately not the problem.
- memory_limit - same thing (increased from 128M to 512M)
- apache2.conf is the same on both hosts (except for ServerName,
  etc.
- php.ini is the same on both machines (except for debugging information
  turned on on development machine).
- I enabled debugging and logging on the live machine, but there's
  nothing in the logs.

Can anyone point me in any direction please. It boggles the mind that
the exact same script works fine on one machine, but not the other,
given that apache and php configs are the same.

flu:~# apache2 -v
Server version: Apache/2.2.16 (Debian)
Server built:   Mar 22 2011 20:56:31
flu:~# php -v
PHP 5.3.3-7+squeeze1 with Suhosin-Patch (cli) (built: Mar 18 2011 17:22:52)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
flu:~# cat /proc/version
Linux version 2.6.26-2-686 (Debian 2.6.26-26lenny1) (da...@debian.org)
(gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu
Nov 25 01:53:57 UTC 2010
flu:~#


If this is the wrong place to ask please point me in some direction.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache and PHP segfaults on Redhat EL5

2011-01-07 Thread Daniel Brown
On Thu, Jan 6, 2011 at 22:55, Jimmy Stewpot mail...@oranged.to wrote:

 Is there a method or way that I can enable a 'debug' mode in php which would 
 help me track down and identify the root cause of these problems?
 If anyone has any suggestions on what I can do to try and get further down 
 the track to enlightenment I would be really appreciated.

Natively, no, but the de facto standard is Derick's Xdebug package
(http://xdebug.org/).  If you can, compile PHP from source and do away
with the EL5 package.  That'll most likely rid you of the segfaults,
but will leave their cause as an unsolved mystery.  If you're okay
with giving up and not knowing, you'll probably save yourself a lot of
time and headaches.

-- 
/Daniel P. Brown
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache and PHP segfaults on Redhat EL5

2011-01-07 Thread Greg Bair
On Fri, 7 Jan 2011 16:24:13 -0500
Daniel Brown danbr...@php.net wrote:

 On Thu, Jan 6, 2011 at 22:55, Jimmy Stewpot mail...@oranged.to
 wrote:
 
  Is there a method or way that I can enable a 'debug' mode in php
  which would help me track down and identify the root cause of these
  problems? If anyone has any suggestions on what I can do to try and
  get further down the track to enlightenment I would be really
  appreciated.
 
 Natively, no, but the de facto standard is Derick's Xdebug package
 (http://xdebug.org/).  If you can, compile PHP from source and do away
 with the EL5 package.  That'll most likely rid you of the segfaults,
 but will leave their cause as an unsolved mystery.  If you're okay
 with giving up and not knowing, you'll probably save yourself a lot of
 time and headaches.
 

Also, you might try asking on a RH list or forum, this might be a known
issue with a workaround.  If all else fails, file a bug.

-- 
Greg Bair
PHP Developer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache and PHP segfaults on Redhat EL5

2011-01-06 Thread Jimmy Stewpot
Hello,

I have been working over the last few months to try and get to the bottom of 
why our apache processes are regularly being killed with a Sig 11 (Segmentation 
Fault). Here are the messages in the kern.log

httpd[22309]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21819]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[19168]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21597]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[22871]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[22090]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21970]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[22315]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21808]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21801]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[20469]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[23509]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21967]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21814]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[24017]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[21605]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[24329]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[23573]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[24328]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[22301]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[24636]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[25028]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[22869]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6
httpd[25030]: segfault at 7fffd01b4ffc rip 2b1f935c064c rsp 
7fffd01b4f90 error 6


We literally have thousands of those, I have tracked it down as far as being 
caused by mod_php in apache (Redhat 5 update 5). However when I enabled 
coredump's in apache I don't get anything. I can however get a dump if I send a 
manual sig 11 to the process. Which brings me to my questions.

Is there a method or way that I can enable a 'debug' mode in php which would 
help me track down and identify the root cause of these problems?
If anyone has any suggestions on what I can do to try and get further down the 
track to enlightenment I would be really appreciated.

Regards,

Jimmy. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-02 Thread Lester Caine

Jonathan Tapicer wrote:

What version, VC6 or VC9, TS or NTS? I use VC6 TS and the dll is there...


Of cause no one has asked yet which version you use if you have to test 
BOTH Apache and IIS ;)


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Pablo Viquez

Hi,

I just downloaded the new stable version of PHP 5.3 and I couldnt find the 
php5apache2_2.dll file.


Is the apache module on windows no longer supported?

Thanks! 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Jonathan Tapicer
What version, VC6 or VC9, TS or NTS? I use VC6 TS and the dll is there...

On Wed, Jul 1, 2009 at 7:31 PM, Pablo Viquezpviq...@pabloviquez.com wrote:
 Hi,

 I just downloaded the new stable version of PHP 5.3 and I couldnt find the
 php5apache2_2.dll file.

 Is the apache module on windows no longer supported?

 Thanks!
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Adam Shannon
Yes, you need to use the V6 installer, I did the same thing with the V9 and
it won't work.  Only after uninstalling PHP did I see that line of text
saying which one to use...

On Wed, Jul 1, 2009 at 5:54 PM, Jonathan Tapicer tapi...@gmail.com wrote:

 What version, VC6 or VC9, TS or NTS? I use VC6 TS and the dll is there...

 On Wed, Jul 1, 2009 at 7:31 PM, Pablo Viquezpviq...@pabloviquez.com
 wrote:
  Hi,
 
  I just downloaded the new stable version of PHP 5.3 and I couldnt find
 the
  php5apache2_2.dll file.
 
  Is the apache module on windows no longer supported?
 
  Thanks!
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
- Adam Shannon ( http://ashannon.us )


Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Pablo Viquez

Sorry my mistake, I was looking in the wrong built.

Thank you!

- Original Message - 
From: Adam Shannon a...@ashannon.us

Newsgroups: php.general
To: Jonathan Tapicer tapi...@gmail.com
Cc: Pablo Viquez pviq...@pabloviquez.com; php-general@lists.php.net
Sent: Wednesday, July 01, 2009 5:50 PM
Subject: Re: [PHP] Apache module PHP 5.3 on Windows


Yes, you need to use the V6 installer, I did the same thing with the V9 
and

it won't work.  Only after uninstalling PHP did I see that line of text
saying which one to use...

On Wed, Jul 1, 2009 at 5:54 PM, Jonathan Tapicer tapi...@gmail.com 
wrote:



What version, VC6 or VC9, TS or NTS? I use VC6 TS and the dll is there...

On Wed, Jul 1, 2009 at 7:31 PM, Pablo Viquezpviq...@pabloviquez.com
wrote:
 Hi,

 I just downloaded the new stable version of PHP 5.3 and I couldnt find
the
 php5apache2_2.dll file.

 Is the apache module on windows no longer supported?

 Thanks!
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
- Adam Shannon ( http://ashannon.us )




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] apache and PHP / Eclipse

2008-12-13 Thread Eduardo Vizcarra
I am having a hard time trying to get some pages work. I have PHP 5.2.8, 
Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All 
packages were installed, and configured, the strange thing is that pages 
commonly work but when I add a new line (e.g. an echo line) with a dummy 
text, Apache crashes and it is restarted


I am using Eclipese europa to create the code

e.g. I have this code and the page works:
include 'upper_pagina.php';
include 'forma.php';
 $link = mysql_connect(127.0.0.1,root,root);
 if (!$link)
 {
  echo table width='100%' border='0' cellspacing='0' cellpadding='5' 
bordercolor='FF'\n;

  echo tr\n;
  echo td bgcolor='FF9327'\n;
  echo bLa Base de datos no esta disponible en este momento.BR;
  echo Disculpe las molestias, intente mas tarde/b;
  echo /td\n;
  echo /tr\n;
  echo /table\n;
 }
 mysql_select_db(estoydevacacionesdb) or die(No pudo seleccionarse la 
BD.);

 $busquedasql1 = select * from servicios;
include 'bottom_pagina.php';

but if I add a new line   ($servicios1 = mysql_query($busquedasql1);) before 
the last include line, apache crashes, it has been very hard for me to 
identify what it is causing this problem


any clue ?

Regards
Eduardo 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache ErrorDocument / PHP header() interaction does not work as expected

2007-05-09 Thread Marc Liyanage


I recently worked on error handling and three related issues/ 
questions came up.



1.) I am trying to trigger Apache ErrorDocument handlers by setting  
appropriate HTTP status codes in my PHP code, but I don't get the  
expected results.


My PHP file:


?php
header(HTTP/1.0 500 Internal Server Error);



In my Apache configuration I have this:


ErrorDocument 500 test error 500 handler


The status code is sent to the browser, but the ErrorDocument handler  
is never triggered, it looks like Apache passes the value on to the  
client, but does not interpret it.


The last posting on this page suggests something to this effect:

http://www.webmasterworld.com/apache/3205630.htm


This surprises me, is that really how it works? In my Perl  
applications running under mod_perl, returning status 500 does  
*both*, send that status to the browser and make Apache interpret and  
act upon the value. What is mod_perl doing differently?


I can actually have two separate status values, one that gets sent to  
the browser (Apache2::RequestRec::status()), and one that is returned  
to the Apache server (the handler() method's return value). Does  
something similar exist in PHP? Or do I really have to replicate the  
ErrorDocument functionality in my PHP code?



2.) In my tests with mod_perl just now I also realized that mod_perl  
will properly signal an error 500 condition to Apache if a Perl error  
such as a syntax error or an unhandled exception occurs. A configured  
ErrorDocument 500 handler will be triggered, as I would expect it to be.


It seems that PHP does not signal an error 500 to Apache when PHP  
code fails. Wouldn't this be a useful addition for exactly this  
reason (ability to use Apache ErrorDocument).



3.) While playing around with set_error_handler(), I also saw that  
syntax errors are not trappable with a custom error handler. I use an  
autoloader that loads classes on demand, and if one of the class  
files loaded at run-time has a syntax error, my error handler is  
bypassed. Combined with the inability to trigger ErrorDocuments  
described above, doesn't this mean that it is absolutely impossible  
to hide such errors from users by replacing them with a friendly  
error page when using PHP?


That would mean that I am not even able to emulate the ErrorDocument  
feature in PHP code.







_
Marc Liyanage   http://www.entropy.ch

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] apache and PHP on win2k3 server error

2005-12-20 Thread Peter Palermo
Hello,
 
When I am trying to load PHP as a module (php4apache.dll), it gives me

error at the time of starting Apache Server. Error is like - 



[Thu Jan 31 13:11:11 2002] [warn] 

Loaded DSO D:/php/sapi/php4apache.dll uses plain Apache 1.3 API, this

module might crash under EAPI! (please recompile it with -DEAPI)
Do you know how I can fix this or where I can download a copy of PHP already
compiled with -DEAPI (i am using PHP 4.3.11)?
 

 Thank you,

Peter Palermo

I.T. Coordinator

Venetor Group - Hamilton

 

420 Grays Road

Hamilton, ON  L8E 4H6

Toll Free:  888.664.5007

Office:  905.664.5007 (ext. 5661)

Fax:  905.561.4062

Email:   [EMAIL PROTECTED] blocked::mailto:[EMAIL PROTECTED] 

 
file:///C:/Documents%20and%20Settings/ppalermo/Application%20Data/Microsoft
/Signatures/www.venetor.com www.venetor.com  http://www.venetor.com/
http://www.venetor.com 

The information in this message (including its attachments) is CONFIDENTIAL
and may be legally privileged. It is intended solely for the addressee.
Access to this message by anyone else is unauthorized. If you are not the
intended recipient, notify the sender by return e-mail and delete this
message from your system. Any disclosure, copying, or distribution of the
message, or any action or omission taken by an unauthorized recipient in
reliance on it, is prohibited and may be unlawful. Our Company does not
guarantee that this communication is free of viruses, interceptions or
interference, and does not endorse the sender's personal opinions or similar
information, which may be contained in this message.

 


[PHP] apache 1.3.33 + PHP chunked Transfer-Encoding forbidden error

2005-08-30 Thread Root
Здравствуйте, php-general.

Hi all.
I have some problem with my Apache server.
When some user try open php script using mobile fone  some chat
program I get this errors on my log file:

[Mon Aug 29 18:37:39 2005] [error] [client 127.0.0.1] chunked Transfer-Encoding 
forbidden: /chat/index.php
[Mon Aug 29 18:40:46 2005] [error] [client 127.0.0.1] chunked Transfer-Encoding 
forbidden: /chat/index.php
[Mon Aug 29 19:04:55 2005] [error] [client 127.0.0.1] chunked Transfer-Encoding 
forbidden: /chat/index.php
[Mon Aug 29 19:16:01 2005] [error] [client 127.0.0.1] chunked Transfer-Encoding 
forbidden: /chat/index.php
[Mon Aug 29 21:08:17 2005] [error] [client 127.0.0.1] chunked Transfer-Encoding 
forbidden: /chat/index.php
[Mon Aug 29 21:18:56 2005] [error] [client 127.0.0.1] chunked Transfer-Encoding 
forbidden: /chat/index.php

How i can solve this problem?

-- 
С уважением,
 Root  mailto:[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache 2.0.52 + PHP 4.3.9 configuration problem, for Linux Fedora 3.

2005-07-26 Thread nferrac
Hi,

I have Apache 2.0.52 with PHP 4.3.9, running on a Linux Fedora 3, and cannot
write through PHP on any folder, except for /tmp. 
No matter which permissions, owner or group are set for the folders or files,
they never become writable.

When I execute the following script, I have always obtain as a result, that The
file is not writable, although it should be, because test.txt has Apache as its
owner and group, and permissions for reading, writing and executing for the
owner, group and others.

In Apache, the user and group are set to Apache, and in PHP the safe mode is 
off.
-
?php
$filename1 = '/opt/ilias/www/htdocs/ilias3/setup/test.txt';
$filename2 = '/opt/ilias/www/htdocs/ilias3/setup';
$filename3 = '/tmp';

clearstatcache();
if (is_writable($filename1)) {
   echo 'The file is writable';
} else {
   echo 'The file is not writable';
}

clearstatcache();
if (is_readable($filename1)) {
   echo 'The file is readable';
} else {
   echo 'The file is not readable';
}

clearstatcache();
if (file_exists($filename1)) {
   echo The file exists;
} else {
   echo The file does not exist;
}
? 
--

Have you ever experienced a problem like this? 


Thanks a lot,
Nancy.

-
This mail sent through IMP: http://horde.org/imp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...

2005-07-11 Thread Burhan Khalid

Rasmus Lerdorf wrote:
[ snip ]

A better option may be to just use mod_rewrite.  Something along the
lines of:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.html$  $1.php [T=application/x-httpd-php,L]

You should verify this with the mod_rewrite docs, but this should only
rewrite a request for whatever.html to whatever.php if whatever.html
doesn't exist.  I suppose you could also add a condition to only do the
rewrite if $1.php exists.


I tried something similar to the above. I had a directory that has 
sample php scripts that I use for explaining a concept.  I was hoping 
that the following mod_rewrite would take all requests for .phps and 
parse them as x-httpd-php-source, but it doesn't work, as phps files are 
parsed as php.


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+\.php)s$ $1 [T=application/x-httpd-php-source,L]

Does anyone know of a way to make this work? Is it even possible?

Rasmus:

  A few months back you posted some Apache settings that allow one to 
run both php5 and php on the same Apache instance using mod_proxy 
(iirc).  Can you please post that again? I can't seem to google for it 
in the archives.


Thanks,
Burhan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...

2005-07-10 Thread Raymond C. Rodgers
On Sat, 2005-07-09 at 02:04 -0700, Rasmus Lerdorf wrote:
 Raymond C. Rodgers wrote:
  I'm trying to write an error handler in PHP to try to avoid sending the
  browser a 404 error message. Basically, if someone
  requests /whatever.html on the server and it doesn't exist, my 404 error
  handler checks to see if /whatever.php exists, if so, it then includes
  that file.
  
  That part works fine.
  
  The part that I'm having trouble with is if /whatever.html happens to be
  the target of a form POST. With GET requests, the data is available in
  either $_SERVER['REDIRECT_QUERY_STRING'] or (worst case)
  $_SERVER['REQUEST_URI']. That's easy enough to parse and turn into
  $_REQUEST and/or $_GET. However, it seems that POSTed data just vanishes
  into thin air. $_POST is not set, of course, and I've been trying to
  read data using file_get_contents('php://input') but nothing is
  returned... Is this a bug in PHP, Apache, not a bug but an unimplemented
  feature, security precaution, or what? Am I missing something simple to
  get the POSTed data?
 
 No, you can't do what you are trying to do the way you are trying to do
 it.  Apache changes the original POST to a GET request on the internal
 errordocument redirect so PHP can't get at the original posted data.
 Well, it probably could with some hacking, but the web server has
 specifically told us that this is not a POST request anymore, so we
 respect that.

Thanks for the information. I would have thought the information would
still be available some where, some how, since $_SERVER provides a great
deal of information about the redirected request. (Such as the
REDIRECT_REQUEST_METHOD, REDIRECT_QUERY_STRING, etc. indexes.) Oh well,
live and learn. :-)

Raymond

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...

2005-07-10 Thread Rasmus Lerdorf
Raymond C. Rodgers wrote:
 On Sat, 2005-07-09 at 02:04 -0700, Rasmus Lerdorf wrote:
No, you can't do what you are trying to do the way you are trying to do
it.  Apache changes the original POST to a GET request on the internal
errordocument redirect so PHP can't get at the original posted data.
Well, it probably could with some hacking, but the web server has
specifically told us that this is not a POST request anymore, so we
respect that.
 
 Thanks for the information. I would have thought the information would
 still be available some where, some how, since $_SERVER provides a great
 deal of information about the redirected request. (Such as the
 REDIRECT_REQUEST_METHOD, REDIRECT_QUERY_STRING, etc. indexes.) Oh well,
 live and learn. :-)

Yeah, you would think so.  But keep in mind that all of those are
provided by the web server.  It's not PHP doing it.  We tend to try to
play by the rules of the web server we are running under.  Not doing so
tends to get us into all sorts of trouble.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...

2005-07-09 Thread Raymond C. Rodgers
I'm trying to write an error handler in PHP to try to avoid sending the
browser a 404 error message. Basically, if someone
requests /whatever.html on the server and it doesn't exist, my 404 error
handler checks to see if /whatever.php exists, if so, it then includes
that file.

That part works fine.

The part that I'm having trouble with is if /whatever.html happens to be
the target of a form POST. With GET requests, the data is available in
either $_SERVER['REDIRECT_QUERY_STRING'] or (worst case)
$_SERVER['REQUEST_URI']. That's easy enough to parse and turn into
$_REQUEST and/or $_GET. However, it seems that POSTed data just vanishes
into thin air. $_POST is not set, of course, and I've been trying to
read data using file_get_contents('php://input') but nothing is
returned... Is this a bug in PHP, Apache, not a bug but an unimplemented
feature, security precaution, or what? Am I missing something simple to
get the POSTed data?

Thank you,
Raymond

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...

2005-07-09 Thread Rasmus Lerdorf
Raymond C. Rodgers wrote:
 I'm trying to write an error handler in PHP to try to avoid sending the
 browser a 404 error message. Basically, if someone
 requests /whatever.html on the server and it doesn't exist, my 404 error
 handler checks to see if /whatever.php exists, if so, it then includes
 that file.
 
 That part works fine.
 
 The part that I'm having trouble with is if /whatever.html happens to be
 the target of a form POST. With GET requests, the data is available in
 either $_SERVER['REDIRECT_QUERY_STRING'] or (worst case)
 $_SERVER['REQUEST_URI']. That's easy enough to parse and turn into
 $_REQUEST and/or $_GET. However, it seems that POSTed data just vanishes
 into thin air. $_POST is not set, of course, and I've been trying to
 read data using file_get_contents('php://input') but nothing is
 returned... Is this a bug in PHP, Apache, not a bug but an unimplemented
 feature, security precaution, or what? Am I missing something simple to
 get the POSTed data?

No, you can't do what you are trying to do the way you are trying to do
it.  Apache changes the original POST to a GET request on the internal
errordocument redirect so PHP can't get at the original posted data.
Well, it probably could with some hacking, but the web server has
specifically told us that this is not a POST request anymore, so we
respect that.

With Apache2 you could use Multiviews to do this by setting PHP up as a
handler and telling Apache that it returns type text/html (we don't do
this by default because PHP doesn't always return text/html) and then
let multiviews take care of turning your request for /whatever.html into
a real request for /whatever.php.  And the POST data would be intact.

For Apache1 you could probably use a type-map file.  Have a read through
http://httpd.apache.org/docs/content-negotiation.html

A better option may be to just use mod_rewrite.  Something along the
lines of:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.html$  $1.php [T=application/x-httpd-php,L]

You should verify this with the mod_rewrite docs, but this should only
rewrite a request for whatever.html to whatever.php if whatever.html
doesn't exist.  I suppose you could also add a condition to only do the
rewrite if $1.php exists.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] apache with php\fastcgi

2005-05-08 Thread Solotony
From: Solotony [EMAIL PROTECTED]
Subject: Apache 2.0 + mod_fastcgi + PHP
Newsgroups: gmane.comp.apache.user
Summary: 
Keywords: 

I have Apache 2.0.52 with mod_fastcgi 2.4.2 and PHP 4.3.11 installed on Gentoo 
box.

When starting apache (php as fast-cgi) it runs w/o any problems, but after 
some requests (500 - 1500) php die. 
It doesn't depend on method fastcgi server is started (FastCgiServer or 
FastCgiExternalServer) - in both cases it die.

How to repare it?


Apache config (part related to fastcgi):
--

ScriptAlias /std-cgi/ /usr/std-cgi/

LoadModule fastcgi_module extramodules/mod_fastcgi.so

IfModule mod_fastcgi.c
AddHandler fastcgi-script .fcg .fcgi .fpl
AddHandler php-script .php
FastCgiConfig -maxClassProcesses 5 -maxProcesses 1000 -restart 
-killInterval 10
FastCgiServer /usr/std-cgi/php-fcgi -processes 1
#FastCgiExternalServer /usr/std-cgi/php-fcgi -host localhost:8002
Location /std-cgi/php-fcgi
SetHandler fastcgi-script
/Location
Action php-script /std-cgi/php-fcgi
/IfModule

---

error_log
---
[Sat May 07 22:48:49 2005] [notice] Digest: generating secret for digest 
authentication ...
[Sat May 07 22:48:49 2005] [notice] Digest: done
[Sat May 07 22:48:50 2005] [notice] FastCGI: process manager initialized (pid 
19004)
[Sat May 07 22:48:50 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
started (pid 7450)
[Sat May 07 22:48:50 2005] [warn] pid file /var/run/apache2.pid overwritten -- 
Unclean shutdown of previous Apache run?
[Sat May 07 22:48:50 2005] [notice] Apache/2.0.52 (Gentoo/Linux) 
mod_fastcgi/2.4.2 configured -- resuming normal operations
[Sat May 07 22:49:18 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
7450) terminated by calling exit with status '0'
[Sat May 07 22:49:18 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
restarted (pid 8374)
[Sat May 07 22:50:01 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
8374) terminated by calling exit with status '0'
[Sat May 07 22:50:01 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
restarted (pid 30308)
[Sat May 07 22:50:35 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
30308) terminated by calling exit with status '0'
[Sat May 07 22:50:35 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
restarted (pid 1591)
[Sat May 07 22:51:24 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
1591) terminated by calling exit with status '0'
[Sat May 07 22:51:24 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi has 
remained running for more than 30 seconds, its restart interval has been 
restored to 5 seconds
[Sat May 07 22:51:24 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
restarted (pid 8757)
[Sat May 07 22:52:58 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
8757) terminated by calling exit with status '0'
[Sat May 07 22:52:58 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
restarted (pid 21006)
[Sat May 07 22:53:35 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
21006) terminated by calling exit with status '0'
[Sat May 07 22:53:35 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
restarted (pid 5268)
[Sat May 07 22:54:03 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
5268) terminated by calling exit with status '0'
[Sat May 07 22:54:03 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi 
restarted (pid 1000)
[Sat May 07 22:54:22 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi (pid 
1000) terminated by calling exit with status '0'
[Sat May 07 22:54:22 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Sat May 07 22:54:31 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Sat May 07 22:54:41 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Sat May 07 22:54:51 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Sat May 07 22:54:52 2005] [error] [client 192.168.1.115] FastCGI: comm with 
server /usr/std-cgi/php-fcgi aborted: idle timeout (30 sec)
[Sat May 07 22:54:52 2005] [error] [client 192.168.1.115] FastCGI: incomplete 
headers (0 bytes) received from server /usr/std-cgi/php-fcgi
[Sat May 07 22:55:01 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi has 
failed to remain running for 30 seconds given 3 attempts, its restart interval 
has been backed off to 600 seconds
[Sat May 07 22:55:11 2005] [warn] FastCGI: server /usr/std-cgi/php-fcgi has 
failed to remain running for 30

[PHP] Apache and PHP

2005-02-28 Thread Gustav Wiberg
Hi there!
I've just installed Apache on a new computer. (just for testing)
It's Windows XP. I've then installed PHP and it says that Apache could be 
not configured automatically.

Newbies question as hell probably but here it goes:
I can access my Apache-server, I have the document-root to c:\webb and the 
apace-files is in c:\program\Apache
I've changed a little in httpd.conf file and restarted the Apace-service. I 
have changed the documentRoot and another parameter that was very alike 
documentRoot...

But my problem...
The sourcecode for PHP shows when I access the http-server with php-files.
I don't cant getting any full support answers on this, just give me hints... 
:-)

/G
@varupiraten.se 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache and PHP

2005-02-28 Thread dan
Gustav Wiberg wrote:
Hi there!
I've just installed Apache on a new computer. (just for testing)
It's Windows XP. I've then installed PHP and it says that Apache could 
be not configured automatically.

Newbies question as hell probably but here it goes:
I can access my Apache-server, I have the document-root to c:\webb and 
the apace-files is in c:\program\Apache
I've changed a little in httpd.conf file and restarted the 
Apace-service. I have changed the documentRoot and another parameter 
that was very alike documentRoot...

But my problem...
The sourcecode for PHP shows when I access the http-server with php-files.
I don't cant getting any full support answers on this, just give me 
hints... :-)

/G
@varupiraten.se
Check out:
http://www.php.net/manual/en/install.windows.apache2.php
Pay particular attention to the AddType directives.  This will make 
Apache process PHP files.

Hope that helps
-dant
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache and PHP

2005-02-28 Thread Mike Smith
For Apache2.x: http://www.php.net/manual/en/install.windows.apache2.php

For Apache1.x: http://www.php.net/manual/en/install.windows.apache1.php

Mike

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache and PHP

2005-02-28 Thread Gustav Wiberg
Hi there!
Thanx! :-)
I hope I can solve this myself now... :-)
/G
@varupiraten.se
- Original Message - 
From: dan [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Monday, February 28, 2005 11:23 PM
Subject: Re: [PHP] Apache and PHP


Gustav Wiberg wrote:
Hi there!
I've just installed Apache on a new computer. (just for testing)
It's Windows XP. I've then installed PHP and it says that Apache could be 
not configured automatically.

Newbies question as hell probably but here it goes:
I can access my Apache-server, I have the document-root to c:\webb and 
the apace-files is in c:\program\Apache
I've changed a little in httpd.conf file and restarted the Apace-service. 
I have changed the documentRoot and another parameter that was very alike 
documentRoot...

But my problem...
The sourcecode for PHP shows when I access the http-server with 
php-files.

I don't cant getting any full support answers on this, just give me 
hints... :-)

/G
@varupiraten.se
Check out:
http://www.php.net/manual/en/install.windows.apache2.php
Pay particular attention to the AddType directives.  This will make Apache 
process PHP files.

Hope that helps
-dant
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache and PHP

2005-02-28 Thread Jochem Maas
Gustav Wiberg wrote:
Hi there!
Thanx! :-)
I hope I can solve this myself now... :-)
If you get stuck another good line of approach might be
to install a preconfigured bundle (php/apache/mysql) and
then possibly compare you configs with theres e.g:
http://www.devside.net/
http://www.apachefriends.org/en/xampp-windows.html
http://www.en.wampserver.com/
I have no experience with any of these - but if time is short
they may help you out.
for a php5 as an apache module you would add something like:
LoadModule php5_module C:/php/php5apache2.dll
AddType application/x-httpd-php .php
to httpd.conf. if you get stuck don't forget to mention
binary versions and php sapi your using (cgi or module).
/G
@varupiraten.se
- Original Message - From: dan [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Monday, February 28, 2005 11:23 PM
Subject: Re: [PHP] Apache and PHP

Gustav Wiberg wrote:
Hi there!
I've just installed Apache on a new computer. (just for testing)
It's Windows XP. I've then installed PHP and it says that Apache 
could be not configured automatically.

Newbies question as hell probably but here it goes:
I can access my Apache-server, I have the document-root to c:\webb 
and the apace-files is in c:\program\Apache
I've changed a little in httpd.conf file and restarted the 
Apace-service. I have changed the documentRoot and another parameter 
that was very alike documentRoot...

But my problem...
The sourcecode for PHP shows when I access the http-server with 
php-files.

I don't cant getting any full support answers on this, just give me 
hints... :-)

/G
@varupiraten.se

Check out:
http://www.php.net/manual/en/install.windows.apache2.php
Pay particular attention to the AddType directives.  This will make 
Apache process PHP files.

Hope that helps
-dant
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-09 Thread Mikey
[snip]
Hope everybody else is sending this guy read receipts?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-09 Thread Wil Hitchman
I definetly amIRRITATING!
- Original Message - 
From: Mikey [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Wednesday, February 09, 2005 6:10 AM
Subject: RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems


[snip]
Hope everybody else is sending this guy read receipts?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-09 Thread John Nichel
Wil Hitchman wrote:
I definetly amIRRITATING!
- Original Message - From: Mikey [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Wednesday, February 09, 2005 6:10 AM
Subject: RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

[snip]
Hope everybody else is sending this guy read receipts?
Not me.  I asked him to turn them off...noticed that a few other people 
did too.  Sent a receipt to flood him, and they were still on, so now 
his email address has been added to 'badmailfrom'.  Maybe the rejection 
emails he gets will strike a nerve. ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Richard Lynch
 :-( The downside would be, IMHO, that I would need to pro-actively check
 everything that is going on concerning PHP, in order to prevent any major
 problems. (one and a halve month ago, some clients on an other
 installation
 who hadn't mainted phpBB also caused me the necessary problems). Also,
 when
 clients are non-commercial, a good programmer is out of the question
 (which
 applies to this case too). I wonder how mass hosting companies get arround
 these issue's?

To add to this -- I suspect some good hosts actively check the directories
of their clients, and search for known security flawed software, such as
specific versions of phpBB and formmail.pl and so on.

When you find a client running known security flawed software, you deal
with them, quickly and politely, but with clear cut no nonsense
requirements:

Upgrade it now or lose the account.

Who owns the box?  You, or your friend?

Non-profits can always find a free programmer or a donor to hire the
programmer or...

There are even organizations that exist solely to provide services like
this to non-profits.  One small one I know of run by guys in Chicago is
here:
http://npotechs.org/

I'm sure that there are others.

Perhaps you could donate some training to the non-profit, to get their
programmer up to speed, even.

Your other option is to not allow PHP, nor Perl, nor any kind of CGI, nor...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Richard Lynch
[EMAIL PROTECTED] wrote:
That's definitely not good.

But there is only so much you, and PHP, can do to stop a bad programmer
from chewing up resources.

 I'm pretty sure that you can prevent this somehow!
 There is no way any OS with respect for themself, will
 allow any user installed programs (like PHP) to crash the
 server!

 You should try check out the freebsd mailling lists. I'm pretty sure
 they can help you out! :) Please also make sure you run the latest
 versions
 of apache and php.

 Good luck finding the error!
 Simon


 Btw I run FreeBSD 5.3-STABLE, Apache 2.0.52_4 and PHP 5.0.3_2
 when i try to run an endless loop, using a lot of memory, I get an
 Allowed memory size of 8388608 bytes exhausted (tried to allocate
 256 bytes)
 And absolutely no effect on the system!

Try this:
?php
  for ($i = 0; $i = 0; $i--);
?

I think that compiles down into such a tight loop that PHP interrupts
never get a chance to check on Memory usage or cpu usage...

At least, it USED to...

PHP may very well be much better at this, but I'm willing to bet that
somebody can always find a way to break this.

Plus, some things are out of PHP's control -- If you use GD to create an
image that's too large, PHP relies on GD to cope with that, as it must, by
design.

I believe GD and PHP play well together in this regard, but can you
guarantee that EVERY extension always will?  I doubt it.

Unless your PHP install is *really* boring, with none of the fun/powerful
extensions that make PHP so incredibly useful, then, most likely,
somewhere in the realm of all possible PHP code a user can type, there is
at least one (1) script that will somehow bring the server to its knees.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Sander Holthaus - Orange XL

  :-( The downside would be, IMHO, that I would need to pro-actively 
  check everything that is going on concerning PHP, in order 
 to prevent 
  any major problems. (one and a halve month ago, some clients on an 
  other installation who hadn't mainted phpBB also caused me the 
  necessary problems). Also, when clients are non-commercial, a good 
  programmer is out of the question (which applies to this 
 case too). I 
  wonder how mass hosting companies get arround these issue's?
 
 To add to this -- I suspect some good hosts actively check 
 the directories of their clients, and search for known 
 security flawed software, such as specific versions of phpBB 
 and formmail.pl and so on.

I could write a PERL-script for that :-) For wide-used scripts (such as
PHPBB) automation would be a doable and good sollution, but for custom
scripts, it will be quite a challenge.

 When you find a client running known security flawed 
 software, you deal with them, quickly and politely, but with 
 clear cut no nonsense
 requirements:
 
 Upgrade it now or lose the account.
 
That would be the right thing indeed. Though I do find that many times,
people either have severe technical difficulty upgrading (usually installing
was already quite a tough cookie for them, being used to the more point and
click of Windows). Or perhaps just to the fear of it. 
It always comes down to a lack of knowledge and understanding from the user.
Educating users in this regard is not easy.
 
 Non-profits can always find a free programmer or a donor to 
 hire the programmer or...
 
 There are even organizations that exist solely to provide 
 services like this to non-profits.  One small one I know of 
 run by guys in Chicago is
 here:
 http://npotechs.org/
 
 I'm sure that there are others.

Thanks! That looks like a very nice addition to my to-do and to-look-at
bookmark list :-)

Kind Regards,
Sander Holthaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Sander Holthaus - Orange XL
 Sander Holthaus - Orange XL wrote:
 Sander Holthaus - Orange XL wrote:
 
 ...
 
 Fix or disable that script.
  
  
  I wish I could, but I'm not a PHP-programmer (can read it 
 and can do 
  some basic programming, but I lack in-depth knowledge of PHP).
   
 
 well disabling it is fairly easy ;-) rm -f ./xxx.php

chown  chmod would be less invasive :-)
 
 a script that functions is a one that doesn't crash the box.
 quick'n'dirty or inefficient scripts don't have to cause 
 problems per se,
 his script is just plain borked. if you need to ensure the box is
 running then you _can't_ let him run it till its fixed, friend or not.
 besides if it is a friend then presumably you are offering 
 space/resources
 for free - under such circumstances your interest in keeping 
 the machine up
 precludes his interest in functionality and ASAP programming - and
 would be understanding of your interests (just as you seem to 
 be of his ;-). no?

Indeed.

  :-( The downside would be, IMHO, that I would need to 
 pro-actively check
  everything that is going on concerning PHP, in order to 
 prevent any major
  problems. (one and a halve month ago, some clients on an 
 other installation
  who hadn't mainted phpBB also caused me the necessary 
 problems). Also, when
  clients are non-commercial, a good programmer is out of the 
 question (which
  applies to this case too). I wonder how mass hosting 
 companies get arround
  these issue's?
 
 by not garanteeing full uptime ;-) and having lots of machine 
 across which to
 spread the risk etc.

That makes sense :-/ Must be quite frustrating from times to times being a
sysadmin at such a company.

Kind Regards,
Sander Holthaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread Sander Holthaus - Orange XL
I'm running Apache 2.0.52 and PHP 5.03 in a jailed (Virtual Private Server)
FreeBSD 4.10 envirorement. PHP 5.03 is running as php_mod and was installed
quite recently. Since then (better, since someone started using it) I've
been getting these errors in the httpd-error log:
 
Allowed memory size of 8388608 bytes exhausted (tried to allocate 79 bytes)
 
And this one in the php-error log:
 
[06-Feb-2005 17:25:50] PHP Fatal error:  Allowed memory size of 8388608
bytes exhausted (tried to allocate 6587593 bytes) in
xxx/xxx/xxx/xxx/xxx/xxx.php on line 53
 
I also see several thousands of notices in the PHP-error log within the
time-frame of a single second, plus diveded by zero, etc.
 
Of course, I asked the programmer to fix all of these issues.Among others,
there was a script that outputted a html-form with 2 columns, 100 rows each
containing select-boxes with 100 full names (and those 100 names were the
same of every column/row in that form :-|). 
 
But the problem is not so much that someone is using broken and the most
inefficient scripts, but more that they are crashing the entire box!
 
When these scripts are run, the box becomes totally unresponsive, afterwards
all cgi and php request to Apache fail with a 500 error and sometimes the
whole box crashes completely, apparently from memory exhaustion. :-(
 
It this a bug somewhere in PHP, Apache or FreeBSD?
 
How can I protect myself against this? I can't manually check every script,
and the memory and time limits in php.ini (20s for exe, 30s for input and
8MB for mem) don't seem effective here. What are my options to make Apache 2
and PHP 5 full proof against such scripts?
 
Kind Regards,
Sander Holthaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread Richard Lynch
Sander Holthaus - Orange XL wrote:
 I'm running Apache 2.0.52 and PHP 5.03 in a jailed (Virtual Private
 Server)
 FreeBSD 4.10 envirorement. PHP 5.03 is running as php_mod and was
 installed
 quite recently. Since then (better, since someone started using it) I've
 been getting these errors in the httpd-error log:

 Allowed memory size of 8388608 bytes exhausted (tried to allocate 79
 bytes)

 And this one in the php-error log:

 [06-Feb-2005 17:25:50] PHP Fatal error:  Allowed memory size of 8388608
 bytes exhausted (tried to allocate 6587593 bytes) in
 xxx/xxx/xxx/xxx/xxx/xxx.php on line 53

Fix or disable that script.

 I also see several thousands of notices in the PHP-error log within the
 time-frame of a single second, plus diveded by zero, etc.

Are they coming from the same script?...

Again, fix or disable that script.

 Of course, I asked the programmer to fix all of these issues.Among others,
 there was a script that outputted a html-form with 2 columns, 100 rows
 each
 containing select-boxes with 100 full names (and those 100 names were the
 same of every column/row in that form :-|).

You're simply going to have to work with that programmer to get them to
write better code, or not work with them (terminate their account).

 But the problem is not so much that someone is using broken and the most
 inefficient scripts, but more that they are crashing the entire box!

That's definitely not good.

But there is only so much you, and PHP, can do to stop a bad programmer
from chewing up resources.

 When these scripts are run, the box becomes totally unresponsive,
 afterwards
 all cgi and php request to Apache fail with a 500 error and sometimes the
 whole box crashes completely, apparently from memory exhaustion. :-(

 It this a bug somewhere in PHP, Apache or FreeBSD?

No.  It's a bug in the script/program that causes the crash.

 How can I protect myself against this? I can't manually check every
 script,

You can identify the culprit script, and disable it, and notify the client
that they are violating their terms of service to run it again on a
production server until it is debugged.

Get them to install PHP on their own machine and develop on that.

 and the memory and time limits in php.ini (20s for exe, 30s for input and
 8MB for mem) don't seem effective here. What are my options to make Apache
 2
 and PHP 5 full proof against such scripts?

NOTHING is foolproof.  Ever.

You can change those numbers and be more harsh, but that will affect ALL
users, not just the one who's bringing your box down.

You would be far better off, for all your clients, to deal directly with
the client who's causing the problems.

Perhaps get them in touch with a good progammer, or up-sell them your
services in fixing their scripts or...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread [EMAIL PROTECTED]
Richard Lynch wrote:
That's definitely not good.
But there is only so much you, and PHP, can do to stop a bad programmer
from chewing up resources.
I'm pretty sure that you can prevent this somehow!
There is no way any OS with respect for themself, will
allow any user installed programs (like PHP) to crash the
server!
You should try check out the freebsd mailling lists. I'm pretty sure
they can help you out! :) Please also make sure you run the latest versions
of apache and php.
Good luck finding the error!
Simon
Btw I run FreeBSD 5.3-STABLE, Apache 2.0.52_4 and PHP 5.0.3_2
when i try to run an endless loop, using a lot of memory, I get an
   Allowed memory size of 8388608 bytes exhausted (tried to allocate 
256 bytes)
And absolutely no effect on the system!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread Sander Holthaus - Orange XL
 Sander Holthaus - Orange XL wrote:
  I'm running Apache 2.0.52 and PHP 5.03 in a jailed (Virtual Private
  Server)
  FreeBSD 4.10 envirorement. PHP 5.03 is running as php_mod and was 
  installed quite recently. Since then (better, since someone started 
  using it) I've been getting these errors in the httpd-error log:
 
  Allowed memory size of 8388608 bytes exhausted (tried to allocate 79
  bytes)
 
  And this one in the php-error log:
 
  [06-Feb-2005 17:25:50] PHP Fatal error:  Allowed memory size of 
  8388608 bytes exhausted (tried to allocate 6587593 bytes) in 
  xxx/xxx/xxx/xxx/xxx/xxx.php on line 53
 
 Fix or disable that script.

I wish I could, but I'm not a PHP-programmer (can read it and can do some
basic programming, but I lack in-depth knowledge of PHP).
 
  I also see several thousands of notices in the PHP-error log within 
  the time-frame of a single second, plus diveded by zero, etc.
 
 Are they coming from the same script?...

Those notices, yes.
 
 Again, fix or disable that script.
 
  Of course, I asked the programmer to fix all of these issues.Among 
  others, there was a script that outputted a html-form with 
 2 columns, 
  100 rows each containing select-boxes with 100 full names 
 (and those 
  100 names were the same of every column/row in that form :-|).
 
 You're simply going to have to work with that programmer to 
 get them to write better code, or not work with them 
 (terminate their account).

As it is a personal friend, it is an difficult situation. Getting him to
write better code isn't easy, he's mainly interested in functionality and
getting program done ASAP.

  But the problem is not so much that someone is using broken and the 
  most inefficient scripts, but more that they are crashing 
 the entire box!
 
 That's definitely not good.

Nope, and I can't figure out why. I've set the memory limits in php.ini plus
some additional things in httpd.conf (RLimitMEM, etc), but for some reason,
memory keeps getting consumed. What I find really troublesome is that it
effects both php (running as mod_php) and cgi. After some time, cgi-scripts
start failing too with:

Out of memory during large request for 134221824 bytes, total sbrk() is
134369280 bytes., referer: ...

Which makes no sense to me at all.

 But there is only so much you, and PHP, can do to stop a bad 
 programmer from chewing up resources.
 
  When these scripts are run, the box becomes totally unresponsive, 
  afterwards all cgi and php request to Apache fail with a 
 500 error and 
  sometimes the whole box crashes completely, apparently from memory 
  exhaustion. :-(
 
  It this a bug somewhere in PHP, Apache or FreeBSD?
 
 No.  It's a bug in the script/program that causes the crash.
 
  How can I protect myself against this? I can't manually check every 
  script,
 
 You can identify the culprit script, and disable it, and 
 notify the client that they are violating their terms of 
 service to run it again on a production server until it is debugged.
 
 Get them to install PHP on their own machine and develop on that.

They did actually, though it was a Windows box, with prety much the standard
configuration.
 
  and the memory and time limits in php.ini (20s for exe, 30s 
 for input 
  and 8MB for mem) don't seem effective here. What are my options to 
  make Apache
  2
  and PHP 5 full proof against such scripts?
 
 NOTHING is foolproof.  Ever.
 
 You can change those numbers and be more harsh, but that will 
 affect ALL users, not just the one who's bringing your box down.
 
 You would be far better off, for all your clients, to deal 
 directly with the client who's causing the problems.
 
 Perhaps get them in touch with a good progammer, or up-sell 
 them your services in fixing their scripts or...

:-( The downside would be, IMHO, that I would need to pro-actively check
everything that is going on concerning PHP, in order to prevent any major
problems. (one and a halve month ago, some clients on an other installation
who hadn't mainted phpBB also caused me the necessary problems). Also, when
clients are non-commercial, a good programmer is out of the question (which
applies to this case too). I wonder how mass hosting companies get arround
these issue's?

Thanks for the input! 

Kind Regards,
Sander Holthaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread John Nichel
Please turn off your request for read reciepts when posting to a mailing 
list.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread Jochem Maas
John Nichel wrote:
Please turn off your request for read reciepts when posting to a mailing 
list.

ohhh :-( I was enjoying that ;-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-07 Thread Jochem Maas
Sander Holthaus - Orange XL wrote:
Sander Holthaus - Orange XL wrote:
...
Fix or disable that script.

I wish I could, but I'm not a PHP-programmer (can read it and can do some
basic programming, but I lack in-depth knowledge of PHP).
 
well disabling it is fairly easy ;-) rm -f ./xxx.php

I also see several thousands of notices in the PHP-error log within 
the time-frame of a single second, plus diveded by zero, etc.
Are they coming from the same script?...

Those notices, yes.
 

Again, fix or disable that script.

Of course, I asked the programmer to fix all of these issues.Among 
others, there was a script that outputted a html-form with 
2 columns, 

100 rows each containing select-boxes with 100 full names 
(and those 

100 names were the same of every column/row in that form :-|).
You're simply going to have to work with that programmer to 
get them to write better code, or not work with them 
(terminate their account).

As it is a personal friend, it is an difficult situation. Getting him to
write better code isn't easy, he's mainly interested in functionality and
getting program done ASAP.
a script that functions is a one that doesn't crash the box.
quick'n'dirty or inefficient scripts don't have to cause problems per se,
his script is just plain borked. if you need to ensure the box is
running then you _can't_ let him run it till its fixed, friend or not.
besides if it is a friend then presumably you are offering space/resources
for free - under such circumstances your interest in keeping the machine up
precludes his interest in functionality and ASAP programming - and
would be understanding of your interests (just as you seem to be of his ;-). no?

But the problem is not so much that someone is using broken and the 
most inefficient scripts, but more that they are crashing 
the entire box!
That's definitely not good.

...

:-( The downside would be, IMHO, that I would need to pro-actively check
everything that is going on concerning PHP, in order to prevent any major
problems. (one and a halve month ago, some clients on an other installation
who hadn't mainted phpBB also caused me the necessary problems). Also, when
clients are non-commercial, a good programmer is out of the question (which
applies to this case too). I wonder how mass hosting companies get arround
these issue's?
by not garanteeing full uptime ;-) and having lots of machine across which 
to
spread the risk etc.
Thanks for the input! 

Kind Regards,
Sander Holthaus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Robin Getz
Hi.
I am trying to get Apache 2.0.52 / PHP 4.3.10 working with some scripts I 
am using.

I have a file named /www/projects which is a php script.
When I type the url: www.site/projects/variable
I want variable passed to the script projects
I have the the http.conf set up as:
Files projects
  SetInputFilter  PHP
  SetOutputFilter PHP
  AcceptPathInfo  On
/Files
Which used to work with apache 2.0.40 and php 4.2.3 - but what happens now, 
is I actually get passed the php script back as text to the browser.

Any thoughts? I poked around on google, and saw at 
http://dan.drydog.com/apache2php.html

However, SetOutputFilter / SetInputFilter no longer works for me. It used 
to work with an earlier PHP 4.x or Apache 2 version, but not with Apache 
2.0.47/PHP 4.3.3. I understand this (PHP as an Apache 2 filter) is 
experimental, so I don't use it anymore

I tried things like:
  AddType text/html   php
But I keep getting the same thing in my browser:
?php
/**
 * Projects Redirector
 *
---snip---
?
Any thoughts? Thanks in advanced.
-Robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Andrew Kreps
On Fri, 31 Dec 2004 11:39:51 -0800, Robin Getz
[EMAIL PROTECTED] wrote:
 Hi.
 
 I am trying to get Apache 2.0.52 / PHP 4.3.10 working with some scripts I
 am using.
 
 
 Which used to work with apache 2.0.40 and php 4.2.3 - but what happens now,
 is I actually get passed the php script back as text to the browser.
 


Robin, I had the same problem with my latest PHP install on Apache 2. 
I had to add this line to my httpd.conf:

AddType application/x-httpd-php .php

I had a custom compiled PHP 5.0.2, which added the LoadModule line,
but not the AddType.  You may also want to include index.php in your
DirectoryIndex.  Let me know if this works for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Robin Getz
Andrew Kreps wrote:
I had to add this line to my httpd.conf:
AddType application/x-httpd-php .php
I have this and the DirectoryIndex - the problem is that my script does not 
end in a .php extention. (GForge )

If I rename the file projects.php and point to that, it works, but that 
means an entire re-write of the existing GForge.

I guess the question is - how to make a file that does not end in .php or 
have any extension, be understood as a php file?

Thanks
-Robin 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread John Nichel
Robin Getz wrote:
Andrew Kreps wrote:
I had to add this line to my httpd.conf:
AddType application/x-httpd-php .php

I have this and the DirectoryIndex - the problem is that my script does 
not end in a .php extention. (GForge )

If I rename the file projects.php and point to that, it works, but that 
means an entire re-write of the existing GForge.

I guess the question is - how to make a file that does not end in .php 
or have any extension, be understood as a php file?

Thanks
-Robin
AddType application/x-httpd-php .php .gforce .this .that .etc
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Brian Duke
What exactly does your script end in?
I think you can make up your own extension and add it as well just tell
apache what to use when it sees it. I.E.
 
AddType application/x-httpd-php .fred 

I can't guarantee that's true but I think you can.

 -Original Message-
 From: Robin Getz [mailto:[EMAIL PROTECTED]
 Sent: Friday, December 31, 2004 12:55 PM
 To: [EMAIL PROTECTED]
 Cc: php-general@lists.php.net
 Subject: RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...
 
 Andrew Kreps wrote:
 
 I had to add this line to my httpd.conf:
 
 AddType application/x-httpd-php .php
 
 I have this and the DirectoryIndex - the problem is that my script does
 not
 end in a .php extention. (GForge )
 
 If I rename the file projects.php and point to that, it works, but that
 means an entire re-write of the existing GForge.
 
 I guess the question is - how to make a file that does not end in .php or
 have any extension, be understood as a php file?
 
 Thanks
 -Robin
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Andrew Kreps
On Fri, 31 Dec 2004 11:55:13 -0800, Robin Getz
[EMAIL PROTECTED] wrote:
 
 I have this and the DirectoryIndex - the problem is that my script does not
 end in a .php extention. (GForge )
 
 If I rename the file projects.php and point to that, it works, but that
 means an entire re-write of the existing GForge.
 
 I guess the question is - how to make a file that does not end in .php or
 have any extension, be understood as a php file?
 

Now I see your problem.  If it were merely a different extension, that
wouldn't be a problem.  You need to be able to run a file with *no*
extension through the PHP parser, which seems a bit more difficult. 
Let me see what I can figure out.

What version of GForge are you running?  The current one appears to be
'normal', i.e. with extensions on the files.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Chris
Robin Getz wrote:
Andrew Kreps wrote:
I had to add this line to my httpd.conf:
AddType application/x-httpd-php .php

I have this and the DirectoryIndex - the problem is that my script 
does not end in a .php extention. (GForge )

If I rename the file projects.php and point to that, it works, but 
that means an entire re-write of the existing GForge.

I guess the question is - how to make a file that does not end in .php 
or have any extension, be understood as a php file?

Thanks
-Robin
As far as I'm aware, that should work, it has for me in the past, as it 
has evidewntally worked for you as well.

I often use another way of doing that same sort of thing that might be a 
valid option for you though:

If you change the filename to end in php (projects.php, or whatever) , 
then Alias it to a name that doesn't end in .php you'll achieve the same 
effect:

Alias /projects /full/path/to/porojects/files/projects.php
That has worked for me, though you will still need to set 
AcceptPathInfo, if it isn't already.

Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
Robin Getz wrote:
Andrew Kreps wrote:
I had to add this line to my httpd.conf:
AddType application/x-httpd-php .php

I have this and the DirectoryIndex - the problem is that my script does 
not end in a .php extention. (GForge )

If I rename the file projects.php and point to that, it works, but that 
means an entire re-write of the existing GForge.

I guess the question is - how to make a file that does not end in .php 
or have any extension, be understood as a php file?

ForceType directive.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread John Holmes
Robin Getz wrote:
I have a file named /www/projects which is a php script.
When I type the url: www.site/projects/variable
I want variable passed to the script projects
I have the the http.conf set up as:
Files projects
  SetInputFilter  PHP
  SetOutputFilter PHP
  AcceptPathInfo  On
/Files
Which used to work with apache 2.0.40 and php 4.2.3 - but what happens 
now, is I actually get passed the php script back as text to the browser.
All of the methods I've seen in the past used a Forcetype directive 
and PATH_INFO.

Files projects
 ForceType application/x-httpd-php
/Files
Is this SetInputFilter and SetOutputFilter the Apache2 equivilent of the 
Forcetype or another way of doing it? Have you tried Forcetype?

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Robin Getz
The prize goes to Mark Charette of [EMAIL PROTECTED] for reading the 
apache manual in more detail than I.

After Reading
http://httpd.apache.org/docs-2.0/mod/core.html#forcetype
Then adding:
ForceType application/x-httpd-php
Things work great.
Thanks
-Robin 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread John Holmes
Mark Charette wrote:
Robin Getz wrote:
I guess the question is - how to make a file that does not end in .php 
or have any extension, be understood as a php file?

ForceType directive.
I was thinking the same thing, but after doing some reading it seems 
Apache 2 uses a different method now (setinputfilter/setoutputfilter). 
Just acknowledging my mistake and passing this along for others, too. :)

Happy new year.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
John Holmes wrote:
Robin Getz wrote:
I have a file named /www/projects which is a php script.
When I type the url: www.site/projects/variable
I want variable passed to the script projects
I have the the http.conf set up as:
Files projects
  SetInputFilter  PHP
  SetOutputFilter PHP
  AcceptPathInfo  On
/Files
Which used to work with apache 2.0.40 and php 4.2.3 - but what happens 
now, is I actually get passed the php script back as text to the browser.

All of the methods I've seen in the past used a Forcetype directive 
and PATH_INFO.

Files projects
 ForceType application/x-httpd-php
/Files
Is this SetInputFilter and SetOutputFilter the Apache2 equivilent of the 
Forcetype or another way of doing it? Have you tried Forcetype?
I looked it up before posting ...
According to the 2.0.xx online docs, ForceType should work just fine:
http://httpd.apache.org/docs-2.0/mod/core.html#forcetype
Mark C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Andras Kende


-Original Message-
From: Robin Getz [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 31, 2004 1:40 PM
To: php-general@lists.php.net
Subject: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

Hi.

I am trying to get Apache 2.0.52 / PHP 4.3.10 working with some scripts I 
am using.

I have a file named /www/projects which is a php script.
When I type the url: www.site/projects/variable

I want variable passed to the script projects

I have the the http.conf set up as:

Files projects
   SetInputFilter  PHP
   SetOutputFilter PHP
   AcceptPathInfo  On
/Files

Which used to work with apache 2.0.40 and php 4.2.3 - but what happens now, 
is I actually get passed the php script back as text to the browser.

Any thoughts? I poked around on google, and saw at 
http://dan.drydog.com/apache2php.html

However, SetOutputFilter / SetInputFilter no longer works for me. It used 
to work with an earlier PHP 4.x or Apache 2 version, but not with Apache 
2.0.47/PHP 4.3.3. I understand this (PHP as an Apache 2 filter) is 
experimental, so I don't use it anymore

I tried things like:
   AddType text/html   php

But I keep getting the same thing in my browser:

?php
/**
  * Projects Redirector
  *
---snip---
?

Any thoughts? Thanks in advanced.

-Robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Hello,

You could also do it like this if don't want to use /

.htaccess or httpd.conf
RewriteEngine On
RewriteRule ^list-(.*) list.php
RewriteRule ^design-(.*) design.php

http://www.juhaszdesign.com/list-barstools.html
http://www.juhaszdesign.com/design-hastings-barstool.html

Andras Kende
http://www.kende.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache and php work but they do not work together

2004-09-02 Thread My Ton
Hello,
I installed PHP 4.3.8-Win32 for Windows manually
following the instructions on the web
http://www.php.net/manual/en/install.windows.manual.php
 I extracted it into C:\php, added C:\php to the PATH,
copied ini-recommended to C:\php, renamed it to
php.ini and moved all files located in the dll and
sapi folders to the main folder (e.g. C:\php).  Next,
I inserted these following lines to httpd.conf file
(Apache configuration file):

# For PHP 4
Action application/x-httpd-php /php/php.exe

# specify the directory where php.ini is
SetEnv PHPRC C:/php

Next, I Created a file named hello.php and put it in
DocumentRoot C:/Program Files/Apache
Group/Apache/htdocs.  The content of the file is:
html
 head
  titlePHP Test/title
 /head
 body
 ?php echo 'pHello World/p'; ?
/body
/html 
  Then, I restarted the server and used my browser to
access the file: http://127.0.0.1/hello.php
I received the error 400 –Page cannot be found. I
could see php was running from command line.  Apache
can display .html files but it does not work for php.
Would anyone suggest what to do with that?
Thank you,
My Ton




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] apache mysql php windows

2004-02-24 Thread Shane Nelson
Hi Folks

A few days ago on the list I saw someone mention a package that 
includes apache, mysql and php for Windows.  The one install file 
included all these programs.  Anyone remember what it was?

I've checked google and searched through my email list but I can't 
seem to find it!

Thanks,
Shane
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] apache mysql php windows

2004-02-24 Thread Sam Masiello

I believe you are looking for:

http://www.easyphp.org

HTH!

--Sam


Shane Nelson wrote:
 Hi Folks
 
 A few days ago on the list I saw someone mention a package that
 includes apache, mysql and php for Windows.  The one install file
 included all these programs.  Anyone remember what it was?
 
 I've checked google and searched through my email list but I can't
 seem to find it!
 
 Thanks,
 Shane

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Chris Wilson
When in IE, submitting any form on our https page, the post variables
intermittantly don't come through.

The get variables come through fine.  Just not the $_POST variables.

I have tried everything to get this to work. Everything was working fine
but it seems after we updated IE with the last critical updates this
started to become an issue.


We have rebuilt servers, and installed apache+modssl+php from /usr/ports,
as well as manually and have been unable to resolv this issue.

We are using a generic installation of apache+modssl+php with the included
php.ini, only modifications being Register_globals on and safe_mode off

We have also tried backing down to an earlier version of php and apache
(php 4.3.1, modssl 2.8.15 and apache 1.3.28, which we were running before
the rebuild)


Netscape seems to work fine. Once again, this only seems to be happening
on secure pages.


We have tried on multiple workstations, and our customers seem to be
effected by this too.


Does anyone know what this might be? possibly an IE bug?

Any help would be apreciated.

Thanks! :)


Chris Wilson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache 1.3/PHP

2004-01-22 Thread Tom Ray [List]
For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 
4.3.3-CGI from /usr/ports on the
machine. It seems that everything is ok, but when I try to use a .php file it does not 
run it through the parser. So
when I hit test.php in my browser it outputs:

?
print Test 123;
?

or 

?php
print Test 123;
?

I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they 
would be. Anyone with experience
with FreeBSD/Apache/PHP give me a hand?

TIA

Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread BAO RuiXian


Tom Ray [List] wrote:

[snip]...

?php
print Test 123;
?

I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what 
they would be. Anyone with experience
with FreeBSD/Apache/PHP give me a hand?
  

Do you have the following line in your httpd.conf:

AddType application/x-httpd-php .php

Best

Bao

TIA

Tom

  


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread John Nichel
Tom Ray [List] wrote:

For the first time ever I installed FreeBSD 4.9, I then installed Apache 1.3 and PHP 
4.3.3-CGI from /usr/ports on the
machine. It seems that everything is ok, but when I try to use a .php file it does not 
run it through the parser. So
when I hit test.php in my browser it outputs:
?
print Test 123;
?
or 

?php
print Test 123;
?
I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what they 
would be. Anyone with experience
with FreeBSD/Apache/PHP give me a hand?
TIA

Tom
Chances are, you need to add this to your httpd.conf and restart Apache...

AddType application/x-httpd-php .php

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread Tom Ray [List]
As far as AddType goes for PHP this is what I have:

IfModule mod_php3.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
/IfModule
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule

AddType application/x-httpd-php3-source .php3s
/IfModule
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule

I added the AddType line outside of that and it's still not working. Thanks for the 
suggestion, please if you have any
others I would love to know. I'm going to need to build a couple more FreeBSD boxes 
soon, and I want to have those go a
little smoother :)

Thanks again,
Tom

-Original Message-
From: BAO RuiXian [EMAIL PROTECTED]
To: Tom Ray [List] [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED],  [EMAIL PROTECTED]
Date: Fri, 23 Jan 2004 00:11:42 +0200
Subject: Re: [PHP] Apache 1.3/PHP

 
 
 Tom Ray [List] wrote:
 
 [snip]...
 
 ?php
 print Test 123;
 ?
 
 I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what 
 they would be. Anyone with
 experience
 with FreeBSD/Apache/PHP give me a hand?
   
 
 Do you have the following line in your httpd.conf:
 
 AddType application/x-httpd-php .php
 
 Best
 
 Bao
 
 TIA
 
 Tom
 
   
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [users@httpd] Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread jeffrey_n_Dyke
   

  Tom Ray [List] 

  [EMAIL PROTECTED]To:   BAO RuiXian [EMAIL 
PROTECTED], PHP General 
  os.com   [EMAIL PROTECTED], [EMAIL PROTECTED] 
   
   cc: 

  01/22/2004 05:25 Subject:  [EMAIL PROTECTED] Re: [PHP] 
Apache 1.3/PHP
  PM   

  Please respond to

  users

   

   









As far as AddType goes for PHP this is what I have:

IfModule mod_php3.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
/IfModule
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule

AddType application/x-httpd-php3-source .php3s
/IfModule
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule


  are your AddModule and LoadModule directives uncommented in
httpd.conf? your post suggests it but...



I added the AddType line outside of that and it's still not working. Thanks
for the suggestion, please if you have any
others I would love to know. I'm going to need to build a couple more
FreeBSD boxes soon, and I want to have those go a
little smoother :)

Thanks again,
Tom

-Original Message-
From: BAO RuiXian [EMAIL PROTECTED]
To: Tom Ray [List] [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED],  [EMAIL PROTECTED]
Date: Fri, 23 Jan 2004 00:11:42 +0200
Subject: Re: [PHP] Apache 1.3/PHP



 Tom Ray [List] wrote:

 [snip]...
 
 ?php
 print Test 123;
 ?
 
 I'm sure I'm missing a line or two in my httpd.conf, but I really don't
know what they would be. Anyone with
 experience
 with FreeBSD/Apache/PHP give me a hand?
 
 
 Do you have the following line in your httpd.conf:

 AddType application/x-httpd-php .php

 Best

 Bao

 TIA
 
 Tom
 
 
 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread Chris Shiflett
--- Tom Ray [List] [EMAIL PROTECTED] wrote:
 It seems that everything is ok, but when I try to use a .php
 file it does not run it through the parser.

Make sure this is in your httpd.conf:

AddType application/x-httpd-php .php

Of course, also make sure you have PHP. :-)

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread Chris Shiflett
--- Tom Ray [List] [EMAIL PROTECTED] wrote:
 As far as AddType goes for PHP this is what I have:

[snip]

 IfModule mod_php4.c
 AddType application/x-httpd-php .php
 AddType application/x-httpd-php-source .phps
 /IfModule

My bet is that you didn't build Apache with PHP support, so it skips the
AddType directives due to failing the IfModule.

Which installation instructions did you follow? The manual at php.net has
some good examples that should work for you.

Hope that helps.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [users@httpd] Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread BAO RuiXian


Tom Ray [List] wrote:

[snip...]
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule

AddType application/x-httpd-php3-source .php3s
/IfModule

Seems you have two '/IfModule's in continuation. Did you restart your
appache server and did not get a complaint?

IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule
  

Also here, you have repeated the IfModule mod_php4.c pair. So, somehow
your httpd.conf is messed up.

I added the AddType line outside of that and it's still not working. Thanks for the 
suggestion, please if you have any
others I would love to know. I'm going to need to build a couple more FreeBSD boxes 
soon, and I want to have those go a
little smoother :)
  

Also, I noticed in your original mail that you installed php as CGI not
as module, have you tried to put your testing php file to the CGI
directory after adding .php as a CGI extension?

BTW, you are cross posting, but it seems your question is closely
related to the both lists.

Best

Bao

Thanks again,
Tom

-Original Message-
From: BAO RuiXian [EMAIL PROTECTED]
To: Tom Ray [List] [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED],  [EMAIL PROTECTED]
Date: Fri, 23 Jan 2004 00:11:42 +0200
Subject: Re: [PHP] Apache 1.3/PHP

  

Tom Ray [List] wrote:



[snip]...

?php
print Test 123;
?

I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what 
they would be. Anyone with
  

experience


with FreeBSD/Apache/PHP give me a hand?
 

  

Do you have the following line in your httpd.conf:

AddType application/x-httpd-php .php

Best

Bao


  


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 1.3/PHP

2004-01-22 Thread John Nichel
Tom Ray [List] wrote:
As far as AddType goes for PHP this is what I have:

IfModule mod_php3.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
/IfModule
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule
  
AddType application/x-httpd-php3-source .php3s --- Here
/IfModule--- Here
IfModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/IfModule
Apache started with no problems with that config?

I added the AddType line outside of that and it's still not working. Thanks for the 
suggestion, please if you have any
others I would love to know. I'm going to need to build a couple more FreeBSD boxes 
soon, and I want to have those go a
little smoother :)
How did you compile Apache / php?  DSO?

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2 + PHP

2003-12-06 Thread Seung Hwan Kang
it doesn't matter! whatever u think, and what your job is.
it's all up to IT manager(?) are they listen to us or
do they know what's the newest verion in php or mysql.
i wouldn't think so (it got to kidding!)
as we are professional... we got to act like a real prof. but.. ?

here u go!

my dev. env. is on win2k pro + sp4, php 5.00b2, apache 2.0.48, mysql 
4.0.16, MS Access(?), XML, XSLT and without worries.

production env. - i do not care (actually i can't do anything about it.) 
but recommend whatever linux (free), and php 4.3.4, apache 2.0.48, and 
mysql 4.0.16.

in real life, our server runs php 4.1x, mysql 3.0x, apache 1.3.x.
(register_globals = on, what a life, but i codes it eveything for OFF
so that it should work later on if they upgraded it php 5.0x, r they?).
is there anyone check updates except us.

that's my story.

Yves Arsenault wrote:

Would anyone know of the issues that might affect PHP 4.3.4 and Apache
2.0.48 ?
Thanks,

Yves

-Original Message-
From: Martin Hudec [mailto:[EMAIL PROTECTED]
Sent: 5 dcembre 2003 10:52
To: PHP-General
Subject: Re: [PHP] Apache 2 + PHP
Hi there,

when I had Gentoo Linux, I was using Apache 2.0.48 with PHP 4.3.4 installed
from Gentoo portage. It was running 10 smallscale php/mysql based
virtualhosts without any difficulties.
On Friday 05 December 2003 15:24, Yves Arsenault wrote:

Is this warning outdated?
http://www.php.net/manual/en/install.apache2.php
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows.
I'm running RedHat 9.
I've got Apache 2.0.48 running and was ready to install the latest php
4.3.x..
Just thought I would check.
--
:
:. kind regards
:..  Martin Hudec
:.:
:.: =w= http://www.aeternal.net
:.: =m= +421.907.303393
:.: [EMAIL PROTECTED] [EMAIL PROTECTED]
:.:
:.: When you want something, all the universe
:.:   conspires in helping you to achieve it.
:.:   - The Alchemist (Paulo Coelho)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Apache 2 + PHP

2003-12-06 Thread Mike Morton
Yves:

I am not sure of the exact technical issues that affect it, but when I was
forced to use it in a production environment (does anyone actually admit to
CHOOSING to use it?  anyway) I received a lot of errors on includes,
intermittently.  This was most noticable when using phpmyadmin - but it was
noticed throughout the application.  Errors including a file, then you
refresh and there are no errors.

In general the webserver was very unstable, prone to hanging processes and
needing the webserver stopped and restarted.  In the beginning it was no big
deal - once twice a week, but in the last 3 weeks it has been 5-6 times a
day.

We just switched to Apache 1.3.2 (using PHP 4.3.4 on both machines.) and we
have had 0 problems across the board in 3 days of operation now.

So there you go - if you are OK with instability then go for it - if not,
choose Apache 1.3.x

PS.  Anyone out there know/work with PLESK?  6.0 comes with Apache 2.0 and
PHP 4.3.something - I want to 'downgrade' it to apache 1.3 - but *shrug* no
idea.  If there is anyone out there that has done It successfully, msg me
offline to chat.  WHY OH WHY do these companies not work WITH the php
community?  If only they had asked  Itools is the same way (server
manager for Mac OSX - for the love of GOD DO NOT EVER USE IT! That is
what was forced upon us and caused the above problems - you could not use it
unless you used Apache 2, and they 'said' that there are no 'instabilities'
with PHP - either they lied or just have a terrible QC division!!!)

On 12/5/03 1:00 PM, Yves Arsenault [EMAIL PROTECTED] wrote:

 
 Would anyone know of the issues that might affect PHP 4.3.4 and Apache
 2.0.48 ?
 
 Thanks,
 
 Yves
 
 -Original Message-
 From: Martin Hudec [mailto:[EMAIL PROTECTED]
 Sent: 5 décembre 2003 10:52
 To: PHP-General
 Subject: Re: [PHP] Apache 2 + PHP
 
 
 Hi there,
 
 when I had Gentoo Linux, I was using Apache 2.0.48 with PHP 4.3.4 installed
 from Gentoo portage. It was running 10 smallscale php/mysql based
 virtualhosts without any difficulties.
 
 On Friday 05 December 2003 15:24, Yves Arsenault wrote:
 Is this warning outdated?
 http://www.php.net/manual/en/install.apache2.php
 Do not use Apache 2.0 and PHP in a production environment neither on Unix
 nor on Windows.
 I'm running RedHat 9.
 
 I've got Apache 2.0.48 running and was ready to install the latest php
 4.3.x..
 Just thought I would check.
 --
 :
 :. kind regards
 :..  Martin Hudec
 :.:
 :.: =w= http://www.aeternal.net
 :.: =m= +421.907.303393
 :.: [EMAIL PROTECTED] [EMAIL PROTECTED]
 :.:
 :.: When you want something, all the universe
 :.:   conspires in helping you to achieve it.
 :.:   - The Alchemist (Paulo Coelho)
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
Cheers

Mike Morton


*
* Tel: 905-465-1263
* Email: [EMAIL PROTECTED]
*


Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple.
- Byte Magazine

Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Apache 2 + PHP

2003-12-06 Thread Yves Arsenault
Thanks to all who replied!

I will try to avoid using PHP 4 on Apache 2.

Does PHP 5 look like it will suit apache 2 for production?

Yves Arsenault
Carrefour Infotech
5, Acadian Dr.
Charlottetown, PEI
C1C 1M2
[EMAIL PROTECTED]
(902)368-1895 ext.242


-Original Message-
From: Mike Morton [mailto:[EMAIL PROTECTED] 
Sent: December 6, 2003 9:17 AM
To: Yves Arsenault; PHP-General
Subject: Re: [PHP] Apache 2 + PHP

Yves:

I am not sure of the exact technical issues that affect it, but when I
was
forced to use it in a production environment (does anyone actually admit
to
CHOOSING to use it?  anyway) I received a lot of errors on includes,
intermittently.  This was most noticable when using phpmyadmin - but it
was
noticed throughout the application.  Errors including a file, then you
refresh and there are no errors.

In general the webserver was very unstable, prone to hanging processes
and
needing the webserver stopped and restarted.  In the beginning it was no
big
deal - once twice a week, but in the last 3 weeks it has been 5-6 times
a
day.

We just switched to Apache 1.3.2 (using PHP 4.3.4 on both machines.) and
we
have had 0 problems across the board in 3 days of operation now.

So there you go - if you are OK with instability then go for it - if
not,
choose Apache 1.3.x

PS.  Anyone out there know/work with PLESK?  6.0 comes with Apache 2.0
and
PHP 4.3.something - I want to 'downgrade' it to apache 1.3 - but *shrug*
no
idea.  If there is anyone out there that has done It successfully, msg
me
offline to chat.  WHY OH WHY do these companies not work WITH the php
community?  If only they had asked  Itools is the same way (server
manager for Mac OSX - for the love of GOD DO NOT EVER USE IT! That
is
what was forced upon us and caused the above problems - you could not
use it
unless you used Apache 2, and they 'said' that there are no
'instabilities'
with PHP - either they lied or just have a terrible QC division!!!)

On 12/5/03 1:00 PM, Yves Arsenault [EMAIL PROTECTED] wrote:

 
 Would anyone know of the issues that might affect PHP 4.3.4 and Apache
 2.0.48 ?
 
 Thanks,
 
 Yves
 
 -Original Message-
 From: Martin Hudec [mailto:[EMAIL PROTECTED]
 Sent: 5 décembre 2003 10:52
 To: PHP-General
 Subject: Re: [PHP] Apache 2 + PHP
 
 
 Hi there,
 
 when I had Gentoo Linux, I was using Apache 2.0.48 with PHP 4.3.4
installed
 from Gentoo portage. It was running 10 smallscale php/mysql based
 virtualhosts without any difficulties.
 
 On Friday 05 December 2003 15:24, Yves Arsenault wrote:
 Is this warning outdated?
 http://www.php.net/manual/en/install.apache2.php
 Do not use Apache 2.0 and PHP in a production environment neither on
Unix
 nor on Windows.
 I'm running RedHat 9.
 
 I've got Apache 2.0.48 running and was ready to install the latest
php
 4.3.x..
 Just thought I would check.
 --
 :
 :. kind regards
 :..  Martin Hudec
 :.:
 :.: =w= http://www.aeternal.net
 :.: =m= +421.907.303393
 :.: [EMAIL PROTECTED] [EMAIL PROTECTED]
 :.:
 :.: When you want something, all the universe
 :.:   conspires in helping you to achieve it.
 :.:   - The Alchemist (Paulo Coelho)
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
Cheers

Mike Morton


*
* Tel: 905-465-1263
* Email: [EMAIL PROTECTED]
*


Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up
with
Apple.
- Byte Magazine

Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache 2 + PHP

2003-12-05 Thread Yves Arsenault

Hello,

This may be very old, but I thought I would ask.

Is this warning outdated?
http://www.php.net/manual/en/install.apache2.php
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows.
I'm running RedHat 9.

I've got Apache 2.0.48 running and was ready to install the latest php
4.3.x..
Just thought I would check.

Thanks,

Yves Arsenault
5, Acadian Dr
Charlottetown, PEI
C1C 1M2
902.368.1895 ext.227
902.566.5989 FAX
ICQ # 117650823

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache 2 + PHP

2003-12-05 Thread Martin Hudec
Hi there,

when I had Gentoo Linux, I was using Apache 2.0.48 with PHP 4.3.4 installed 
from Gentoo portage. It was running 10 smallscale php/mysql based 
virtualhosts without any difficulties.

On Friday 05 December 2003 15:24, Yves Arsenault wrote:
 Is this warning outdated?
 http://www.php.net/manual/en/install.apache2.php
 Do not use Apache 2.0 and PHP in a production environment neither on Unix
 nor on Windows.
 I'm running RedHat 9.

 I've got Apache 2.0.48 running and was ready to install the latest php
 4.3.x..
 Just thought I would check.
-- 
:
:. kind regards
:..  Martin Hudec
:.:
:.: =w= http://www.aeternal.net
:.: =m= +421.907.303393
:.: [EMAIL PROTECTED] [EMAIL PROTECTED]
:.:
:.: When you want something, all the universe 
:.:   conspires in helping you to achieve it.
:.:   - The Alchemist (Paulo Coelho)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Apache 2 + PHP

2003-12-05 Thread Yves Arsenault

Would anyone know of the issues that might affect PHP 4.3.4 and Apache
2.0.48 ?

Thanks,

Yves

-Original Message-
From: Martin Hudec [mailto:[EMAIL PROTECTED]
Sent: 5 dcembre 2003 10:52
To: PHP-General
Subject: Re: [PHP] Apache 2 + PHP


Hi there,

when I had Gentoo Linux, I was using Apache 2.0.48 with PHP 4.3.4 installed
from Gentoo portage. It was running 10 smallscale php/mysql based
virtualhosts without any difficulties.

On Friday 05 December 2003 15:24, Yves Arsenault wrote:
 Is this warning outdated?
 http://www.php.net/manual/en/install.apache2.php
 Do not use Apache 2.0 and PHP in a production environment neither on Unix
 nor on Windows.
 I'm running RedHat 9.

 I've got Apache 2.0.48 running and was ready to install the latest php
 4.3.x..
 Just thought I would check.
--
:
:. kind regards
:..  Martin Hudec
:.:
:.: =w= http://www.aeternal.net
:.: =m= +421.907.303393
:.: [EMAIL PROTECTED] [EMAIL PROTECTED]
:.:
:.: When you want something, all the universe
:.:   conspires in helping you to achieve it.
:.:   - The Alchemist (Paulo Coelho)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] apache httpd + PHP authentication

2003-10-19 Thread news.php.net
Chris Shiflett wrote:

A parser is called every time a page is accessed. If no page is 
defined, the home page is loaded. Subsequent pages are linked with
http://dictionary.reference.com/search?q=parser

  Very amusing.
  Okay, dispatcher would probably be a better name. It preps the 
environment before including the page's code.

Is there a way to use a parser as above and still have httpd 
recognize the need for a name/password?
I'm sure there are many ways. You could check for the .htaccess yourself before
including the file, and require HTTP authentication where appropriate. What you
can't do, however, is presume that you can write a script that handles requests
instead of Apache and magically have your code do everything Apache does.
  I do *NOT* want to duplicate the httpd functionality, I want to 
preserve it.

--
jimoe at sohnen-moe dot com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] apache httpd + PHP authentication

2003-10-18 Thread news.php.net
Hello,
  httpd v1.3.27, php v4.3.0.
  I have a web page I wish to restrict access. I prefer to use the 
standard apache httpd authentication with .htaccess and password file. 
This method does not seem to work with PHP.
  A parser is called every time a page is accessed. If no page is 
defined, the home page is loaded. Subsequent pages are linked with URLs 
like http://mysite.com/?page=nextpage.php;. In the parser I define a 
base_dir variable that allows access to a common set of code files 
regardless of where the page file is. The complete parser is:

  require('./php/lib/base-dir.inc');// Assigns $base_dir
  $page = $_REQUEST['page'];
  if ( == $page)
$page = main-index.php;
  include($base_dir . $page);
  So the restricted page is in a subdirectory with a .htaccess file to 
indicate that a name/password is required. This is ignored, presumably 
because the file is include()'d.
  I have looked at the authentication info in the docs. I have to do 
all the work of verifying the name/password. I do not wish to do so 
since an satisfactory method already exists.
  Is there a way to use a parser as above and still have httpd 
recognize the need for a name/password?

--
jimoe at sohnen-moe dot com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] apache httpd + PHP authentication

2003-10-18 Thread Chris Shiflett
--- news.php.net [EMAIL PROTECTED] wrote:
 I have a web page I wish to restrict access. I prefer to use the 
 standard apache httpd authentication with .htaccess and password
 file. This method does not seem to work with PHP.

This method is independent of the type of resource being used, so it works fine
with PHP.

 A parser is called every time a page is accessed. If no page is 
 defined, the home page is loaded. Subsequent pages are linked with
 URLs like http://mysite.com/?page=nextpage.php;. In the parser I
 define a base_dir variable that allows access to a common set of
 code files regardless of where the page file is.

Please read this:

http://dictionary.reference.com/search?q=parser

I think I understand what you mean, but an improper use of terms can cause
confusion.

 So the restricted page is in a subdirectory with a .htaccess file to 
 indicate that a name/password is required. This is ignored,
 presumably because the file is include()'d.

That's right. The .htaccess is for Apache. If this resource is served directly
(e.g., the URL references it instead of your parser), Apache will require the
proper username/password.

 Is there a way to use a parser as above and still have httpd 
 recognize the need for a name/password?

I'm sure there are many ways. You could check for the .htaccess yourself before
including the file, and require HTTP authentication where appropriate. What you
can't do, however, is presume that you can write a script that handles requests
instead of Apache and magically have your code do everything Apache does.

Hope that helps.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache and PHP Problem

2003-03-19 Thread t-systems-fitz
Hello guys,

we have a strange problem with apache and php. apache 1.3.27 and php 4.23 is
running on a solaris-machine with 2 ipadresses. apache serves request at
both interfaces.

Everything works fine, but every 6 days at one ip-address the clients get no
response from apache. Apache logs this requests with statuscode 200 but
where normally the transfered bytes stands is a '-', meaning that null bytes
are transferred. The same request to the other ipaddress works fine. Only a
restart of apache fix the problem.

Can anyone help me or give an advice

best regards fitz



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] apache and php

2003-01-09 Thread Gareth Thomas
Tim,

thanks but it still doesn't work. What puzzles me is that last night I
reinstalled a  'vanilla' install of RedHat 8 from the distribution where I
selected PHP and Apache. So now I am running PHP 4.2.2 and Apache 2.0.40, I
make the change you recommened to httpd.conf, stop and restart the service
and it still simply ignores the PHP code...this is driving me insane.

Gareth

Timothy Hitchens ) [EMAIL PROTECTED] wrote in message
007101c2b784$652736b0$0500a8c0@bambino">news:007101c2b784$652736b0$0500a8c0@bambino...
 Your settings should be something similar to this:

 IfModule mod_php4.c
 AddType application/x-httpd-php .php .html
 AddType application/x-httpd-php-source .phps
 /IfModule

 Do you have the page remotely available to see what is happening for
 you??



 Timothy Hitchens (HiTCHO)
 Open Platform Consulting
 e-mail: [EMAIL PROTECTED]

  -Original Message-
  From: Gareth Thomas [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 9 January 2003 12:03 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] apache and php
 
 
  I am trying to run a PHP page from my browser (Mozilla) and
  each time I load the page it is attempting to force a dowload
  of the page instead, based on the mime-type. I had been
  developing a command line PHP application which works fine
  and then had just started on a web interface and realised
  that Apache may not be configured correctly. So I edited
  httpd.conf and added the Add Type line for x-type-httpd .php.
  I am running Apache 2.0.40 on RedHat 8 and PHP 4.3.0pre2. Can
  anyone tell me what I am doing wrong? What should the
  modifications be to httpd.conf for PHP?
 
  Thanks in advance
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re[2]: [PHP] apache and php

2003-01-09 Thread Submission.org.ru Team
Hello Gareth,
Well I've the same problems here what I added to Mine httpd.conf

Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/files
LoadModule php4_module modules/libphp4.so

Thats all it works. But be carefull with 2.0.40 it's shouldn't used
for production. PHP is (!)EXPERIMENTAL(!) for it.
Hope it will help

Thursday, January 9, 2003, 7:52:12 PM, you wrote:

GT Tim,

GT thanks but it still doesn't work. What puzzles me is that last night I
GT reinstalled a  'vanilla' install of RedHat 8 from the distribution where I
GT selected PHP and Apache. So now I am running PHP 4.2.2 and Apache 2.0.40, I
GT make the change you recommened to httpd.conf, stop and restart the service
GT and it still simply ignores the PHP code...this is driving me insane.

GT Gareth

GT Timothy Hitchens ) [EMAIL PROTECTED] wrote in message
GT 007101c2b784$652736b0$0500a8c0@bambino">news:007101c2b784$652736b0$0500a8c0@bambino...
 Your settings should be something similar to this:

 IfModule mod_php4.c
 AddType application/x-httpd-php .php .html
 AddType application/x-httpd-php-source .phps
 /IfModule

 Do you have the page remotely available to see what is happening for
 you??



 Timothy Hitchens (HiTCHO)
 Open Platform Consulting
 e-mail: [EMAIL PROTECTED]

  -Original Message-
  From: Gareth Thomas [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 9 January 2003 12:03 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] apache and php
 
 
  I am trying to run a PHP page from my browser (Mozilla) and
  each time I load the page it is attempting to force a dowload
  of the page instead, based on the mime-type. I had been
  developing a command line PHP application which works fine
  and then had just started on a web interface and realised
  that Apache may not be configured correctly. So I edited
  httpd.conf and added the Add Type line for x-type-httpd .php.
  I am running Apache 2.0.40 on RedHat 8 and PHP 4.3.0pre2. Can
  anyone tell me what I am doing wrong? What should the
  modifications be to httpd.conf for PHP?
 
  Thanks in advance
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 







-- 
Best regards,
 Submission.org.rumailto:[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] apache and php

2003-01-08 Thread Gareth Thomas
I am trying to run a PHP page from my browser (Mozilla) and each time I load
the page it is attempting to force a dowload of the page instead, based on
the mime-type. I had been developing a command line PHP application which
works fine and then had just started on a web interface and realised that
Apache may not be configured correctly. So I edited httpd.conf and added the
Add Type line for x-type-httpd .php. I am running Apache 2.0.40 on RedHat 8
and PHP 4.3.0pre2. Can anyone tell me what I am doing wrong? What should the
modifications be to httpd.conf for PHP?

Thanks in advance





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] apache and php

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
Your settings should be something similar to this:

IfModule mod_php4.c
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps
/IfModule

Do you have the page remotely available to see what is happening for
you??



Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]

 -Original Message-
 From: Gareth Thomas [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, 9 January 2003 12:03 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] apache and php
 
 
 I am trying to run a PHP page from my browser (Mozilla) and 
 each time I load the page it is attempting to force a dowload 
 of the page instead, based on the mime-type. I had been 
 developing a command line PHP application which works fine 
 and then had just started on a web interface and realised 
 that Apache may not be configured correctly. So I edited 
 httpd.conf and added the Add Type line for x-type-httpd .php. 
 I am running Apache 2.0.40 on RedHat 8 and PHP 4.3.0pre2. Can 
 anyone tell me what I am doing wrong? What should the 
 modifications be to httpd.conf for PHP?
 
 Thanks in advance
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Chris Hewitt

James Mackie wrote:

On most of my servers that are running 4.2.2 (and before) I used
'killall -USR1 httpd' to reload my apache config. Now all servers that I
install with 4.2.3 instead of 4.2.2 this shuts down apache instead of
reloading the config files. (-HUP still works as it should). 

Base server is RH7.3, Apache and PHP are compiled from source, staticly,
not as modules.

I don't know why the USR1 signal appears to have changed, but on RH the 
nice way of restarting apache is service httpd restart. Does this work?

HTH
Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie

Since I installed apache from source and not an RPM I do not have an rc
file that the service command would use. I start apache in the rc.local
file. -USR1 should be the 'NICE' way to reload the configuration files
as per the apache documentation and has worked for many versions. Its
just with PHP 4.2.3 that it stops working. 



-Original Message-
From: Chris Hewitt [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 12:56 AM
To: James Mackie
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3


James Mackie wrote:

On most of my servers that are running 4.2.2 (and before) I used
'killall -USR1 httpd' to reload my apache config. Now all servers that
I
install with 4.2.3 instead of 4.2.2 this shuts down apache instead of
reloading the config files. (-HUP still works as it should). 

Base server is RH7.3, Apache and PHP are compiled from source,
staticly,
not as modules.

I don't know why the USR1 signal appears to have changed, but on RH the 
nice way of restarting apache is service httpd restart. Does this
work?

HTH
Chris





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Erwin

James Mackie wrote:
 Since I installed apache from source and not an RPM I do not have an
 rc file that the service command would use. I start apache in the
 rc.local file. -USR1 should be the 'NICE' way to reload the
 configuration files as per the apache documentation and has worked
 for many versions. Its just with PHP 4.2.3 that it stops working.

Is apachectl graceful an option?
apachectl resided in the apache installation dir.

Grtz Erwin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Rick Widmer

At 01:54 PM 10/1/02 +0200, Erwin wrote:
James Mackie wrote:
  Since I installed apache from source and not an RPM I do not have an
  rc file that the service command would use. I start apache in the
  rc.local file. -USR1 should be the 'NICE' way to reload the
  configuration files as per the apache documentation and has worked
  for many versions. Its just with PHP 4.2.3 that it stops working.

Is apachectl graceful an option?
apachectl resided in the apache installation dir.


 From apachectl...


graceful)
if [ $RUNNING -eq 0 ]; then
 ...
 ...
else
   if $HTTPD -t /dev/null 21; then
  if kill -USR1 $PID; then
   ^

I don't think apachectl will help, since it uses kill -USR1 to do a 
graceful restart.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie

Yes.. Apachectl just calls the commands that I send manually.. Which is
why I don't use it. Apachectl graceful just recalls 'kill -USR1 PID'. 

-Original Message-
From: Rick Widmer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 7:35 AM
To: Erwin; [EMAIL PROTECTED]
Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3


At 01:54 PM 10/1/02 +0200, Erwin wrote:
James Mackie wrote:
  Since I installed apache from source and not an RPM I do not have an
  rc file that the service command would use. I start apache in the
  rc.local file. -USR1 should be the 'NICE' way to reload the
  configuration files as per the apache documentation and has worked
  for many versions. Its just with PHP 4.2.3 that it stops working.

Is apachectl graceful an option?
apachectl resided in the apache installation dir.


 From apachectl...


graceful)
if [ $RUNNING -eq 0 ]; then
 ...
 ...
else
   if $HTTPD -t /dev/null 21; then
  if kill -USR1 $PID; then
   ^

I don't think apachectl will help, since it uses kill -USR1 to do a 
graceful restart.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie

You are correct.. Installing from source would not delete the file..
But.. I install servers from scratch.. When installing RedHat I only
install the base packages that are required for it to boot up and
maintain the server. All server programs (Apache, MySQL, FTP, SSH, Etc),
critial libraries (Openssl, GD, Etc), and the latest Linux Kernel, are
all installed from source manually after the RedHat install is
completed. 

The other problem is that the rc files only call apachectl. Apachectl
just makes the sames calls that I do manually to control the server. So
therfore the rc files, or apachectl would still crash the server.

Does anyone else have a server setup other than myslef with that can
verify that it isn't just my servers that die on a -USR1 (graceful)
restart? Or am I just cursed in some way. :) 



-Original Message-
From: Chris Hewitt [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 6:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3




James Mackie wrote:

Since I installed apache from source and not an RPM I do not have an

It would have existed before you compiled/installed from source 
(assuming apache was installed beforehand). If the httpd executable is 
in the same place then the service command should still work. At 
least, I'd be very surprised if installing from source deletes it. Does 
/etc/init.d/httpd not exist?

for many versions. Its just with PHP 4.2.3 that it stops working.

Have you managed to find the file apachectl?

Regards

Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Apache 1.3.26 + PHP 4.2.3

2002-09-30 Thread James Mackie

Got a strange problem that I can't find any info on. Maybe someone can
give me some insight.

On most of my servers that are running 4.2.2 (and before) I used
'killall -USR1 httpd' to reload my apache config. Now all servers that I
install with 4.2.3 instead of 4.2.2 this shuts down apache instead of
reloading the config files. (-HUP still works as it should). 

Base server is RH7.3, Apache and PHP are compiled from source, staticly,
not as modules.

PHP is compiled as follows:

./configure --with-apache=path --with-mysql=path --with-gd
--enable-trackvars

Aside from this everything works as it should. Any insight would be
helpful. 

Thanks.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] apache and php

2002-07-30 Thread EdwardSPL

Hello,

Which version of apache and which version of php are good for work
together ?

Thank for your help...

Edward.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache and php

2002-07-30 Thread Danny Shepherd

For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2

The developer systems, I'd go for (indeed have gone for) Apache 2.0.39 +
PHP4.2.2

HTH

Danny.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 11:01 AM
Subject: [PHP] apache and php


 Hello,

 Which version of apache and which version of php are good for work
 together ?

 Thank for your help...

 Edward.



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache and php

2002-07-30 Thread EdwardSPL

Danny Shepherd wrote:

 For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2

They are good for work under Linux RedHat ( 6.x / 7.x ) system ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache and php

2002-07-30 Thread Danny Shepherd


- Original Message - 
From: [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 11:30 AM
Subject: Re: [PHP] apache and php


 Danny Shepherd wrote:
 
  For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2
 
 They are good for work under Linux RedHat ( 6.x / 7.x ) system ?
 
Yeah, should be Ok. 

Danny.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache and php

2002-07-30 Thread Scott Fletcher

I wouldn't jump on Apache 2.0.39 for the production website and some PHP
features does not work for that version.  That apache is in beta testing
stage, so it will be a while.

Danny Shepherd [EMAIL PROTECTED] wrote in message
024501c237b5$f95d8860$0200a8c0@DANNYS">news:024501c237b5$f95d8860$0200a8c0@DANNYS...

 - Original Message -
 From: [EMAIL PROTECTED]
 To: Danny Shepherd [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, July 30, 2002 11:30 AM
 Subject: Re: [PHP] apache and php


  Danny Shepherd wrote:
 
   For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2
 
  They are good for work under Linux RedHat ( 6.x / 7.x ) system ?
 
 Yeah, should be Ok.

 Danny.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache and php

2002-07-30 Thread EdwardSPL

So, which version of apache and php are the best for working together under any
OS system ?

Scott Fletcher wrote:

 I wouldn't jump on Apache 2.0.39 for the production website and some PHP
 features does not work for that version.  That apache is in beta testing
 stage, so it will be a while.

 Danny Shepherd [EMAIL PROTECTED] wrote in message
 024501c237b5$f95d8860$0200a8c0@DANNYS">news:024501c237b5$f95d8860$0200a8c0@DANNYS...
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: Danny Shepherd [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Tuesday, July 30, 2002 11:30 AM
  Subject: Re: [PHP] apache and php
 
 
   Danny Shepherd wrote:
  
For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2
  
   They are good for work under Linux RedHat ( 6.x / 7.x ) system ?
  
  Yeah, should be Ok.
 
  Danny.
 
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache and php

2002-07-30 Thread Rasmus Lerdorf

The latest stable versions of both.  Apache 1.3.26 and PHP 4.2.2.

On Wed, 31 Jul 2002 [EMAIL PROTECTED] wrote:

 So, which version of apache and php are the best for working together under any
 OS system ?

 Scott Fletcher wrote:

  I wouldn't jump on Apache 2.0.39 for the production website and some PHP
  features does not work for that version.  That apache is in beta testing
  stage, so it will be a while.
 
  Danny Shepherd [EMAIL PROTECTED] wrote in message
  024501c237b5$f95d8860$0200a8c0@DANNYS">news:024501c237b5$f95d8860$0200a8c0@DANNYS...
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: Danny Shepherd [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Tuesday, July 30, 2002 11:30 AM
   Subject: Re: [PHP] apache and php
  
  
Danny Shepherd wrote:
   
 For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2
   
They are good for work under Linux RedHat ( 6.x / 7.x ) system ?
   
   Yeah, should be Ok.
  
   Danny.
  
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache and php

2002-07-30 Thread Chris Garaffa

I'd recommend:
http://www.apache.org/dist/httpd/Announcement.html -- Apache 1.3.26
-and-
http://www.php.net/release_4_2_2.php -- PHP 4.2.2
Both include the latest bug fixes and are the latest stable releases. 
I've been running these on a RedHat 7.1 box (64MB RAM, 225mHz Pentium), 
with MySQL as well for about 4 months without any problems that weren't 
my fault.

HTH
chris
[EMAIL PROTECTED]

On Tuesday, July 30, 2002, at 12:25 PM, [EMAIL PROTECTED] wrote:
 So, which version of apache and php are the best for working together 
 under any
 OS system ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 2.0 + PHP

2002-07-16 Thread Austin Gonyou

On Mon, 2002-07-15 at 18:30, Gerard Samuel wrote:
 I dont think Apache 2 or php 4.3.x are meant for production boxes..
 My opinion, the latest verion of apache 1.3.x and php 4.1.2 (my test
 box 
 is 4.2.1 but thats ok)

Apache2 is meant for production. 
Php 4.2.1 is meant for production. 

With most distros, this should not be a problem whatsoever, but people
using gcc3 may have no luck until they use php 4.3. This has been my
experience with it to date. 


 Michael Hall wrote:
 
 I've had a hunt through the mail archives but can't find a definite
 answer:
 
 Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet
 in a
 production environment? 
 
 I guess the diversity of experiences described in the archives
 probably
 means no, but what is the current opinion? Some of the archive
 messages
 I read are quite old now.
 
 
 
 Michael Hall [EMAIL PROTECTED]
 
 
 
   
 
 
 -- 
 Gerard Samuel
 http://www.trini0.org:81/
 http://dev.trini0.org:81/
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
Austin Gonyou [EMAIL PROTECTED]
Coremetrics, Inc.



signature.asc
Description: This is a digitally signed message part


[PHP] Apache 2.0 + PHP

2002-07-15 Thread Michael Hall


I've had a hunt through the mail archives but can't find a definite
answer:

Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a
production environment? 

I guess the diversity of experiences described in the archives probably
means no, but what is the current opinion? Some of the archive messages
I read are quite old now.



Michael Hall [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 2.0 + PHP

2002-07-15 Thread Tyler Longren

In a production environment: no
for fun: yes

-- 
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com



On Tue, 16 Jul 2002 09:13:41 +0930 (CST)
Michael Hall [EMAIL PROTECTED] wrote:

 
 I've had a hunt through the mail archives but can't find a definite
 answer:
 
 Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet
 in a production environment? 
 
 I guess the diversity of experiences described in the archives
 probably means no, but what is the current opinion? Some of the
 archive messages I read are quite old now.
 
 
 
 Michael Hall [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 2.0 + PHP

2002-07-15 Thread Rasmus Lerdorf

 Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a
 production environment?

Nope

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 2.0 + PHP

2002-07-15 Thread Gerard Samuel

I dont think Apache 2 or php 4.3.x are meant for production boxes..
My opinion, the latest verion of apache 1.3.x and php 4.1.2 (my test box 
is 4.2.1 but thats ok)

Michael Hall wrote:

I've had a hunt through the mail archives but can't find a definite
answer:

Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a
production environment? 

I guess the diversity of experiences described in the archives probably
means no, but what is the current opinion? Some of the archive messages
I read are quite old now.



Michael Hall [EMAIL PROTECTED]



  


-- 
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apache/oracle/php

2002-06-12 Thread Michael P. Carel

Yes Miguel, i've set all the required environment to the .bash_profile for
the user oracle.
What im wondering are , i've also installed oracle/php/apache in AIX server
and my php scripts with ora function just work. But for the RedHat Linux i
should run apache as oracle/dba. I've also set all the required enviroment
in my php scripts. Heres the sample:

PutEnv(ORACLE_SID=oracle);
PutEnv(ORACLE_BASE=/home/oracle);
PutEnv(ORACLE_HOME=/home/oracle/OraHome1);
PutEnv(LD_LIBRARY_PATH=$ORACLE_HOME/lib);
$connection=Ora_Logon(system,manager);

This will only works if apache runs oracle/dba.



Mike

- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: Michael P. Carel [EMAIL PROTECTED]
Cc: php [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:12 PM
Subject: Re: [PHP] apache/oracle/php


 On Tue, 11 Jun 2002, Michael P. Carel wrote:
  Is there anyone who could give me some reasons why does my php script
with
  oracle function does'nt work if i run apache as nobody/nobody?
 
  My script only work if i run apache as oracle/dba.

 Maybe your environment variables (ORA_BASE, etc.) are getting set in user
 oracle's .login file.

 miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   >