RE: [PHP] Apache 2.0 and Sessions
Not a production server, just a development server. It doesn't bail either, it still displays the page correctly, but no sessions work, obviously. Thanks, Stephen Craton -Original Message- From: Bret Hughes [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 7:24 PM To: Stephen Craton Subject: Re: [PHP] Apache 2.0 and Sessions On Tue, 2005-01-11 at 16:02, Stephen Craton wrote: > I just updated to Apache 2.0 and have gotten PHP all with it. However, I > just loaded up a script that worked fine on my old Apache 1.3 install but is > now causing my errors. Here's the error: > > > > Warning: session_start(): > open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) failed: > No such file or directory (2) in D:\htdocs\payments\index.php on line 8 sounds like the apache/php user does not have rights to write to C:\WINDOWS\TEMP. is that possible? > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at D:\htdocs\payments\index.php:8) in > D:\htdocs\payments\index.php on line 8 > this is probably because your script does not bail if there is a problem with establishing a session. Since php sent the error message the rest could not happen. It looks like your php is set to send error msgs. not a good idea on a production server as was discussed in a thread the last day or so. Bret > > > I don't see why it's happening, especially since I went into php.ini (I'm on > Windows XP) and changed session.save_patch to this: > > > > session.save_path = "C:/PHP/sessiondata" > > > > Can anyone give me some input here? I think I see the problem, the whole > double back slash in the file location, but I don't see how to fix that. > > > > Thanks, > > Stephen Craton > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0 and Sessions
I just updated to Apache 2.0 and have gotten PHP all with it. However, I just loaded up a script that worked fine on my old Apache 1.3 install but is now causing my errors. Here's the error: Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) failed: No such file or directory (2) in D:\htdocs\payments\index.php on line 8 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\htdocs\payments\index.php:8) in D:\htdocs\payments\index.php on line 8 I don't see why it's happening, especially since I went into php.ini (I'm on Windows XP) and changed session.save_patch to this: session.save_path = "C:/PHP/sessiondata" Can anyone give me some input here? I think I see the problem, the whole double back slash in the file location, but I don't see how to fix that. Thanks, Stephen Craton
Re: [PHP] Apache 2.0 and PHP
Thanks for the info. Do you know if this is specifically in regard to the worker MPM under Apache and not the prefork MPM? Or does this not have anything to do with threading? [EMAIL PROTECTED] wrote: On Fri, 14 Mar 2003, Michael Aaron wrote: Sorry if this has been answered before but I can not find it anywhere: Why does the PHP docs. state: "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows. " What is the reason for this Warning? The combination is simply not production-quality yet. It has not had the attention and Q&A that Apache1/PHP has had, and there are also known issues, especially on UNIX with the combination. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 and PHP
At 19:37 14.03.2003, Michael Aaron said: [snip] >Sorry if this has been answered before but I can not find it anywhere: > >Why does the PHP docs. state: > "Do not use Apache 2.0 and PHP in a production environment neither on >Unix nor on Windows. " > >What is the reason for this Warning? [snip] Apache 2.0 implements multithreading, while the 1.x versions were forking processes. While this might increase the overall speed of the webserver, all (and I mean ALL) used extensions, end extensions for these extensions, must be written in a thread-safe way. While the PHP core group as to my knowledge has already implemented PHP (4.3.0 that is) in a thread-safe way, most of PHP extension modules are not (yet?) thread safe. Might get you into a core dump I suppose... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 and PHP
On Fri, 14 Mar 2003, Michael Aaron wrote: > Sorry if this has been answered before but I can not find it anywhere: > > Why does the PHP docs. state: > "Do not use Apache 2.0 and PHP in a production environment neither on > Unix nor on Windows. " > > What is the reason for this Warning? The combination is simply not production-quality yet. It has not had the attention and Q&A that Apache1/PHP has had, and there are also known issues, especially on UNIX with the combination. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0 and PHP
Sorry if this has been answered before but I can not find it anywhere: Why does the PHP docs. state: "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows. " What is the reason for this Warning? Thanks in advance. Mike Aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0
Hi all, I'm setting up a test server with Apache 2.0.40 and php. I downloaded the latest php4 snapshot, compiled and installed it (a real PITA, but I managed), added LoadModule php4_module modules/libphp4.so and AddType application/x-httpd-php .php to httpd.conf, but my browser still doesn't show a php test page, it rather prompts for download. This is on Solaris 8, and AFAICT apache is configured for prefork. What did I miss? # ./bin/httpd -l Compiled in modules: core.c mod_access.c mod_auth.c mod_include.c mod_log_config.c mod_env.c mod_setenvif.c mod_ssl.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_so.c -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 and PHP
> >Would I be able to install it along side 1.3 and run it on a separate port? I know some who installed two 1.3s in two different folders, run two different daemons, in two different ports. I think it should work with 1.3 and 2.0 as well... - E > >Cheers >John Wards >SportNetwork.net > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > _ $B2q0wEPO?$OL5NA!&=
Re: [PHP] Apache 2.0 and PHP
If you run Apache2 in prefork mode, it should mostly work with PHP. Don't try to use one of the threaded mpms yet. The Apache 2 prefork mpm makes it operate exactly like Apache 1.3 in the way it pre-forks processes and handles one request per process. -Rasmus On Mon, 19 Aug 2002, John Wards wrote: > Guys and Girls got a question for you. > > Is Apache 2.0 any good and is there any advantages to installing it? > > Does it work fine enough with PHP and MySQL? > > Would I be able to install it along side 1.3 and run it on a separate port? > > Cheers > John Wards > SportNetwork.net > > > -- > 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 and PHP
Wait until PHP 4.3.0 before considering Apache 2.0. Rasmus has indicated they *may* play better together at that point. Currently, PHP 4.2.x with Apache 2 is experimental and should not be used in a production environment. We use it on our development server without trouble, but that server is not exposed to a lot of traffic and abuse. -- Aaron Gould [EMAIL PROTECTED] Web Developer - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 19, 2002 7:27 AM Subject: [PHP] Apache 2.0 and PHP > Guys and Girls got a question for you. > > Is Apache 2.0 any good and is there any advantages to installing it? > > Does it work fine enough with PHP and MySQL? > > Would I be able to install it along side 1.3 and run it on a separate port? > > Cheers > John Wards > SportNetwork.net > > > -- > 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 2.0 and PHP
Guys and Girls got a question for you. Is Apache 2.0 any good and is there any advantages to installing it? Does it work fine enough with PHP and MySQL? Would I be able to install it along side 1.3 and run it on a separate port? Cheers John Wards SportNetwork.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 + PHP
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
Re: [PHP] Apache 2.0 + PHP
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 2.0 + PHP
> 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
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
[PHP] Apache 2.0 + PHP
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 or 1.3 for php on windows XP ?
Ok... i'll go for 1.3.24 Thanks, T. Edison Jr. --- R'twick Niceorgaw <[EMAIL PROTECTED]> wrote: > use apache 1.3.24.. > php has experimental support for apache 2.0.x.. so > don't trust it much > > - Original Message - > From: "Thomas Edison Jr." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 10, 2002 2:49 PM > Subject: [PHP] Apache 2.0 or 1.3 for php on windows > XP ? > > > > Glory! > > > > I have Windows XP Home Edition.. and i downloaded > the > > latest PHP & mySQL. I have Apache 1.3.19 earlier, > > which for some reason gives "Service Apache Not > > Installed" now even when everything is installed, > on > > my windows XP. > > > > So i decided to get a new Apache Web Server. > > They have 2 versions available.. 2.0 & 1.3 .. i > just > > want to know which one i should use, and if PHP is > > compatible with both.. and that if i do use 2.0, > the > > Install Doc in PHP has given no instructions on > how to > > install php on Apache 2.0, so how will i install > it.. > > > > Any suggestions most welcome.. > > > > T. Edison Jr. > > > > > > > > = > > Rahul S. Johari (Director) > > ** > > Abraxas Technologies Inc. > > Homepage : http://www.abraxastech.com > > Email : [EMAIL PROTECTED] > > Tel : 91-4546512/4522124 > > *** > > > > __ > > Do You Yahoo!? > > Yahoo! - Official partner of 2002 FIFA World Cup > > http://fifaworldcup.yahoo.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: > http://www.php.net/unsub.php > > > > > > = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0 or 1.3 for php on windows XP ?
Glory! I have Windows XP Home Edition.. and i downloaded the latest PHP & mySQL. I have Apache 1.3.19 earlier, which for some reason gives "Service Apache Not Installed" now even when everything is installed, on my windows XP. So i decided to get a new Apache Web Server. They have 2 versions available.. 2.0 & 1.3 .. i just want to know which one i should use, and if PHP is compatible with both.. and that if i do use 2.0, the Install Doc in PHP has given no instructions on how to install php on Apache 2.0, so how will i install it.. Any suggestions most welcome.. T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0
On 11 Apr 2002 at 14:37, Marcin Pasieka wrote: > How to install PHP on Apache 2.0 server? > As far as I can see, at the moment, the only way is to use cgi. It looks like that API stuff has to be rewritten/updated a little. However, since Apache 2 is now released, the API shouldn't be changing, and future releases shouldn't have problems. _ / \ / [EMAIL PROTECTED] / \ \ / / \_/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0
I suppose I might as well answer this question for the third or fourth time on this list: That's because PHP wasn't built to run with Apache 2.0.25. Apache has changed so much between the 2.0.xx releases that the php developers can't keep up with it. Wait until the next RC of PHP or the next stable version. Tyler - Original Message - From: "Marcin Pasieka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 7:37 AM Subject: [PHP] Apache 2.0 How to install PHP on Apache 2.0 server? Sincerely Marcin Pasieka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0
How to install PHP on Apache 2.0 server? Sincerely Marcin Pasieka
[PHP] Re: PHP & Apache 2.0 - NOT WORKING ?
Apache 2.0 seem to be now supported by PHP4.04pl1. I tried PHP4.0.4pl1 & Apache 2.0a8 (configure don't seem to work for me with 2.0a9) But. I did not succeded to make it working ! Do someone have a tips on some compiling flags working, or other versions ? Mine made apache to show a segmentation fault (in PHP ?), and show a message that comes from 'create_php_config' function: 'Creating new config (0x80f0c54) for (null).' Or is it just a config problem ? I have a php.ini in /usr/local/lib, but it makes the same error if I remove it ! I am interesed with it because it will provide multithreading instead of multiprocess,... which I prefer for writing PHP modules that can handle persitent and reusable data (to keep the same connection within a HTTP session). ( Apache was compiled with: configure --enable-shared --enable-so PHP was compiled with: configure --with-apxs2 ) ""Benoit"" <[EMAIL PROTECTED]> wrote in message 97voih$och$[EMAIL PROTECTED]">news:97voih$och$[EMAIL PROTECTED]... > Do someone know when PHP will work as apixs under Apache 2.0 ? > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP & Apache 2.0
Do someone know when PHP will work as apixs under Apache 2.0 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]