Re: [PHP] Apache and PHP segfaults on Redhat EL5
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
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
Re: [PHP] Apache module PHP 5.3 on Windows
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
Re: [PHP] Apache module PHP 5.3 on Windows
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
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
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
Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...
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...
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...
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
Re: [PHP] Apache 1.3x/PHP 5.0.3 404 error handler posted data...
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
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
Re: [PHP] Apache and PHP
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
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
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
[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
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
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
:-( 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
[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
:-( 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
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
Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems
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
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
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
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
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
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
Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
-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
RE: [PHP] apache mysql php windows
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
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
Re: [PHP] Apache 1.3/PHP
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
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
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
--- 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
--- 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
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
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
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
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
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
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
RE: [PHP] Apache 2 + PHP
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
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
Re: [PHP] apache httpd + PHP authentication
--- 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
Re: [PHP] apache and php
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: [PHP] apache and php
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
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
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
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
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
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
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
Re: [PHP] apache and php
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
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
- 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
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
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
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
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
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
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
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
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
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
Re: [PHP] apache/oracle/php
Thanks to all who tried to helps. I've finally found out why. The oracle home user directory should be set to drwxr-xr-x so once the required environment was set the ora function can connect to the oracle database, and all the required files and library can be access. thanks Regards, Mike 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. Could it be because nobody/nobody has no rights? At least I think nobody should have no rights for your db... Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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
Re: [PHP] Apache, html, php and global variables
I certainly read your reply and tried it with the session_start as the first line of the php secion. I have since remove the HTML etc. The script appears to work with out error . I was able to set session vars etc and the script completed with out error and the session vars could be printed out at the end of the script. I then called another php script from my menu frame and was not able to find the _session vars which showed as blanks. I put the session_start() as first line of php block but this still did not make it possible to read the session vars. Do I need to use names sessions or what? Is there some setting that is required in the php.ini or apache to make this work? As I stated at the beigining of the e-mail saga what i want to be able to do is to set global variables which will be available to any php script. In particular i want to ensure that each user has an individual connection to data abse and that this is maintained through out the session. I have set the connection up to use the mysql_pconnect function, but I still need to reconnect in every script which uses the database. I therefore need to be able to caryy the username/password from onepage to the next. Is the start_session and session variables the corect way to do this or is there a better way? Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, June 02, 2002 3:31 PM Subject: RE: [PHP] Apache, html, php and global variables Did you read my reply at all? Call session_start() before any output to the browser. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 1:20 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables My script is: html body ?php session_start(); printf(P loggin on as ); printf (Puser name: ); printf ($HTTP_POST_VARS['User']); printf (PPassword: );printf ($HTTP_POST_VARS['Password']); printf (P); /* Connecting, selecting database */ $link = mysql_pconnect(localhost, $HTTP_POST_VARS['User'], $HTTP_POST_VARS['Password']) or die(Could not connect); print Connected successfullyP; printf (BR); print Setting Global variablesBR; $_SESSION_VARS[dbauser]=($HTTP_POST_VARS['User']); $_SESSION_VARS[dbapassword]=($HTTP_POST_VARS['Password']); printf ($_SESSION_VARS[dbauser]); printf (BR); printf ($_SESSION_VARS[dbapassword],BR); ? P /body /html The errors I get are: Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 loggin on as user name: stampuser Password: vantwest Connected successfully Obviously I have something not configured correctly, or I am calling the function in the wrong place. Any advice on how to overcome this would be very useful. Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Sent: Sunday, June 02, 2002 12:09 AM Subject: RE: [PHP] Apache, html, php and global variables Sessions use cookies, which use headers, which have to be sent before any output. html is output. So, put session_start() before that. ? Session_start(); ... ? html body ... Where are you putting dbauser and dbapassword into the session? Your sessions still aren't going to work because the session.save_path isn't set correctly in your PHP.ini. Set it to a directory on your computer that the web server has access to write to. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 9:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not clear what you mean by this. I have set session_start() on in the php script that logs onto the database initially. i then call a test php script from a button on the menu frame. This is the output it gives: Test php variables Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: open(/tmp
RE: [PHP] Apache, html, php and global variables
Page1: ? Session_start(); $_SESSION['dbauser'] = john; $_SESSION['dbapassword'] = password; ? html body Variables set /body /html Page2: ? Session_start(); ? html body User: ?=$_SESSION['dbauser']? Password: ?=$_SESSION['dbapassword']? /body /html Does that work for you? Normally all PHP scripts just use the same username and password for the database. You create a web user that's used in the scripts. I don't know if you don't want to / can't do this. Just a simple script like this: ? MySQL_connect(localhost,user,password); MySQL_select_db(db_name); ? Name that database.php and include it at the beginning of every script and you've got a database connection in every script. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 9:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I certainly read your reply and tried it with the session_start as the first line of the php secion. I have since remove the HTML etc. The script appears to work with out error . I was able to set session vars etc and the script completed with out error and the session vars could be printed out at the end of the script. I then called another php script from my menu frame and was not able to find the _session vars which showed as blanks. I put the session_start() as first line of php block but this still did not make it possible to read the session vars. Do I need to use names sessions or what? Is there some setting that is required in the php.ini or apache to make this work? As I stated at the beigining of the e-mail saga what i want to be able to do is to set global variables which will be available to any php script. In particular i want to ensure that each user has an individual connection to data abse and that this is maintained through out the session. I have set the connection up to use the mysql_pconnect function, but I still need to reconnect in every script which uses the database. I therefore need to be able to caryy the username/password from onepage to the next. Is the start_session and session variables the corect way to do this or is there a better way? Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Sent: Sunday, June 02, 2002 3:31 PM Subject: RE: [PHP] Apache, html, php and global variables Did you read my reply at all? Call session_start() before any output to the browser. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 1:20 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables My script is: html body ?php session_start(); printf(P loggin on as ); printf (Puser name: ); printf ($HTTP_POST_VARS['User']); printf (PPassword: );printf ($HTTP_POST_VARS['Password']); printf (P); /* Connecting, selecting database */ $link = mysql_pconnect(localhost, $HTTP_POST_VARS['User'], $HTTP_POST_VARS['Password']) or die(Could not connect); print Connected successfullyP; printf (BR); print Setting Global variablesBR; $_SESSION_VARS[dbauser]=($HTTP_POST_VARS['User']); $_SESSION_VARS[dbapassword]=($HTTP_POST_VARS['Password']); printf ($_SESSION_VARS[dbauser]); printf (BR); printf ($_SESSION_VARS[dbapassword],BR); ? P /body /html The errors I get are: Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 loggin on as user name: stampuser Password: vantwest Connected successfully Obviously I have something not configured correctly, or I am calling the function in the wrong place. Any advice on how to overcome this would be very useful. Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Sent: Sunday, June 02, 2002 12:09 AM Subject: RE: [PHP] Apache, html, php and global variables Sessions use cookies, which use headers, which have to be sent before any output. html is output. So, put session_start() before that. ? Session_start(); ... ? html body ... Where are you putting dbauser and dbapassword into the session? Your sessions still aren't going to work because the session.save_path isn't set correctly
Re: [PHP] Apache, html, php and global variables
I am not clear what you mean by this. I have set session_start() on in the php script that logs onto the database initially. i then call a test php script from a button on the menu frame. This is the output it gives: Test php variables Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in c:\usr\www\my-domain\maintenance.php on line 5 Test of global variables DBA USER: DBA Password; Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 The script is: HTML BODY Test php variablesBR ?php session_start(); printf (Test of global variablesBR); printf (DBA USER: ,$_SESSION_VARS[dbauser],BR); printf (BR); printf (DBA Password; ,$_SESSION_VARS[dbapassword],BR); ? /BODY /HTML Is there a problem with how I am using sessiot_start, or is there a php config problem? Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 2:04 PM Subject: RE: [PHP] Apache, html, php and global variables You still have to connect to a database every time a script is run, whether it's loaded in a frame or run by itself. If you start a session and save the username and password in it, then you can use that login and password on every other page that you call session_start() on. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 11:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not certain how this helps me, since it appears the data is only carried to pages called directly from where it is set. The page where the user logs onto the database does not link to other pages. This is done from the top frame of the form. The top frame of the inital page contains the menu, one option of which is to log onto the data base to start a session. The user will then select another page from the top form. This new page is displayed in the bottom frame of the intial page, and there may be futher links within this page on the bottom fram.Generally however main navigation is from the top frame which remains in place through out. What I wabt to do is to have the login information available at all times once the user is logged in, nomattar how the current page is called. Is this possible? If so how is this done? - Original Message - From: Stuart Dallas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 11:56 AM Subject: Re: [PHP] Apache, html, php and global variables On Saturday, June 1, 2002 at 2:42:40 AM, you wrote: Is there any way of caryying the login information from one web page to the next in global variables so that the username and password entered in the login screen is available to all other web pages in the site or do I have to ask the user to re-enter this information at every screen? Sessions: http://www.php.net/session -- Stuart -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Apache, html, php and global variables
Sessions use cookies, which use headers, which have to be sent before any output. html is output. So, put session_start() before that. ? Session_start(); ... ? html body ... Where are you putting dbauser and dbapassword into the session? Your sessions still aren't going to work because the session.save_path isn't set correctly in your PHP.ini. Set it to a directory on your computer that the web server has access to write to. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 9:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not clear what you mean by this. I have set session_start() on in the php script that logs onto the database initially. i then call a test php script from a button on the menu frame. This is the output it gives: Test php variables Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in c:\usr\www\my-domain\maintenance.php on line 5 Test of global variables DBA USER: DBA Password; Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 The script is: HTML BODY Test php variablesBR ?php session_start(); printf (Test of global variablesBR); printf (DBA USER: ,$_SESSION_VARS[dbauser],BR); printf (BR); printf (DBA Password; ,$_SESSION_VARS[dbapassword],BR); ? /BODY /HTML Is there a problem with how I am using sessiot_start, or is there a php config problem? Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 2:04 PM Subject: RE: [PHP] Apache, html, php and global variables You still have to connect to a database every time a script is run, whether it's loaded in a frame or run by itself. If you start a session and save the username and password in it, then you can use that login and password on every other page that you call session_start() on. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 11:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not certain how this helps me, since it appears the data is only carried to pages called directly from where it is set. The page where the user logs onto the database does not link to other pages. This is done from the top frame of the form. The top frame of the inital page contains the menu, one option of which is to log onto the data base to start a session. The user will then select another page from the top form. This new page is displayed in the bottom frame of the intial page, and there may be futher links within this page on the bottom fram.Generally however main navigation is from the top frame which remains in place through out. What I wabt to do is to have the login information available at all times once the user is logged in, nomattar how the current page is called. Is this possible? If so how is this done? - Original Message - From: Stuart Dallas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 11:56 AM Subject: Re: [PHP] Apache, html, php and global variables On Saturday, June 1, 2002 at 2:42:40 AM, you wrote: Is there any way of caryying the login information from one web page to the next in global variables so that the username and password entered in the login screen is available to all other web pages in the site or do I have to ask the user to re-enter this information at every screen? Sessions: http://www.php.net/session -- Stuart -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache, html, php and global variables
My script is: html body ?php session_start(); printf(P loggin on as ); printf (Puser name: ); printf ($HTTP_POST_VARS['User']); printf (PPassword: );printf ($HTTP_POST_VARS['Password']); printf (P); /* Connecting, selecting database */ $link = mysql_pconnect(localhost, $HTTP_POST_VARS['User'], $HTTP_POST_VARS['Password']) or die(Could not connect); print Connected successfullyP; printf (BR); print Setting Global variablesBR; $_SESSION_VARS[dbauser]=($HTTP_POST_VARS['User']); $_SESSION_VARS[dbapassword]=($HTTP_POST_VARS['Password']); printf ($_SESSION_VARS[dbauser]); printf (BR); printf ($_SESSION_VARS[dbapassword],BR); ? P /body /html The errors I get are: Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 loggin on as user name: stampuser Password: vantwest Connected successfully Obviously I have something not configured correctly, or I am calling the function in the wrong place. Any advice on how to overcome this would be very useful. Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, June 02, 2002 12:09 AM Subject: RE: [PHP] Apache, html, php and global variables Sessions use cookies, which use headers, which have to be sent before any output. html is output. So, put session_start() before that. ? Session_start(); ... ? html body ... Where are you putting dbauser and dbapassword into the session? Your sessions still aren't going to work because the session.save_path isn't set correctly in your PHP.ini. Set it to a directory on your computer that the web server has access to write to. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 9:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not clear what you mean by this. I have set session_start() on in the php script that logs onto the database initially. i then call a test php script from a button on the menu frame. This is the output it gives: Test php variables Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in c:\usr\www\my-domain\maintenance.php on line 5 Test of global variables DBA USER: DBA Password; Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 The script is: HTML BODY Test php variablesBR ?php session_start(); printf (Test of global variablesBR); printf (DBA USER: ,$_SESSION_VARS[dbauser],BR); printf (BR); printf (DBA Password; ,$_SESSION_VARS[dbapassword],BR); ? /BODY /HTML Is there a problem with how I am using sessiot_start, or is there a php config problem? Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 2:04 PM Subject: RE: [PHP] Apache, html, php and global variables You still have to connect to a database every time a script is run, whether it's loaded in a frame or run by itself. If you start a session and save the username and password in it, then you can use that login and password on every other page that you call session_start() on. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 11:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not certain how this helps me, since it appears the data is only carried to pages called directly from where it is set. The page where the user logs onto the database does not link to other pages. This is done from the top frame of the form. The top frame of the inital page contains the menu, one option of which is to log onto the data base to start a session. The user will then select another page
RE: [PHP] Apache, html, php and global variables
Did you read my reply at all? Call session_start() before any output to the browser. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 1:20 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables My script is: html body ?php session_start(); printf(P loggin on as ); printf (Puser name: ); printf ($HTTP_POST_VARS['User']); printf (PPassword: );printf ($HTTP_POST_VARS['Password']); printf (P); /* Connecting, selecting database */ $link = mysql_pconnect(localhost, $HTTP_POST_VARS['User'], $HTTP_POST_VARS['Password']) or die(Could not connect); print Connected successfullyP; printf (BR); print Setting Global variablesBR; $_SESSION_VARS[dbauser]=($HTTP_POST_VARS['User']); $_SESSION_VARS[dbapassword]=($HTTP_POST_VARS['Password']); printf ($_SESSION_VARS[dbauser]); printf (BR); printf ($_SESSION_VARS[dbapassword],BR); ? P /body /html The errors I get are: Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 loggin on as user name: stampuser Password: vantwest Connected successfully Obviously I have something not configured correctly, or I am calling the function in the wrong place. Any advice on how to overcome this would be very useful. Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Sent: Sunday, June 02, 2002 12:09 AM Subject: RE: [PHP] Apache, html, php and global variables Sessions use cookies, which use headers, which have to be sent before any output. html is output. So, put session_start() before that. ? Session_start(); ... ? html body ... Where are you putting dbauser and dbapassword into the session? Your sessions still aren't going to work because the session.save_path isn't set correctly in your PHP.ini. Set it to a directory on your computer that the web server has access to write to. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 9:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not clear what you mean by this. I have set session_start() on in the php script that logs onto the database initially. i then call a test php script from a button on the menu frame. This is the output it gives: Test php variables Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: Cannot send session cache limiter - headers already sent (output started at c:\usr\www\my-domain\maintenance.php:4) in c:\usr\www\my-domain\maintenance.php on line 5 Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in c:\usr\www\my-domain\maintenance.php on line 5 Test of global variables DBA USER: DBA Password; Warning: open(/tmp\sess_593732809e269f91e78e7406d4a22808, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 The script is: HTML BODY Test php variablesBR ?php session_start(); printf (Test of global variablesBR); printf (DBA USER: ,$_SESSION_VARS[dbauser],BR); printf (BR); printf (DBA Password; ,$_SESSION_VARS[dbapassword],BR); ? /BODY /HTML Is there a problem with how I am using sessiot_start, or is there a php config problem? Regards Peter Goggin - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Peter Goggin' [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 2:04 PM Subject: RE: [PHP] Apache, html, php and global variables You still have to connect to a database every time a script is run, whether it's loaded in a frame or run by itself. If you start a session and save the username and password in it, then you can use that login and password on every other page that you call session_start() on. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 11:12 PM To: [EMAIL PROTECTED] Subject: Re
Re: [PHP] Apache, html, php and global variables
On Sunday 02 June 2002 13:31, John Holmes wrote: Did you read my reply at all? Call session_start() before any output to the browser. The errors I get are: Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 Warning: Cannot send session cache limiter - headers already sent Also searching the list archives for headers already sent would (should) result in umpteen billions of hits with the solution. If you're intelligent enough to be writing a website then you should be intelligent enough to use a search engine. Heck, google - headers already sent brings up the answer straight away. So to all those lazy people out there, use your loaf and not someone else's. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* INSIDE, I have the same personality disorder as LUCY RICARDO!! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Apache, html, php and global variables
Thanks, well said. John -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 2:10 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables On Sunday 02 June 2002 13:31, John Holmes wrote: Did you read my reply at all? Call session_start() before any output to the browser. The errors I get are: Warning: Cannot send session cookie - headers already sent by (output started at c:\usr\www\my-domain\databaselogin.php:3) in c:\usr\www\my-domain\databaselogin.php on line 4 Warning: Cannot send session cache limiter - headers already sent Also searching the list archives for headers already sent would (should) result in umpteen billions of hits with the solution. If you're intelligent enough to be writing a website then you should be intelligent enough to use a search engine. Heck, google - headers already sent brings up the answer straight away. So to all those lazy people out there, use your loaf and not someone else's. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* INSIDE, I have the same personality disorder as LUCY RICARDO!! */ -- 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, html, php and global variables
On Saturday, June 1, 2002 at 2:42:40 AM, you wrote: Is there any way of caryying the login information from one web page to the next in global variables so that the username and password entered in the login screen is available to all other web pages in the site or do I have to ask the user to re-enter this information at every screen? Sessions: http://www.php.net/session -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache, html, php and global variables
I am not certain how this helps me, since it appears the data is only carried to pages called directly from where it is set. The page where the user logs onto the database does not link to other pages. This is done from the top frame of the form. The top frame of the inital page contains the menu, one option of which is to log onto the data base to start a session. The user will then select another page from the top form. This new page is displayed in the bottom frame of the intial page, and there may be futher links within this page on the bottom fram.Generally however main navigation is from the top frame which remains in place through out. What I wabt to do is to have the login information available at all times once the user is logged in, nomattar how the current page is called. Is this possible? If so how is this done? - Original Message - From: Stuart Dallas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 11:56 AM Subject: Re: [PHP] Apache, html, php and global variables On Saturday, June 1, 2002 at 2:42:40 AM, you wrote: Is there any way of caryying the login information from one web page to the next in global variables so that the username and password entered in the login screen is available to all other web pages in the site or do I have to ask the user to re-enter this information at every screen? Sessions: http://www.php.net/session -- Stuart -- 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, html, php and global variables
You still have to connect to a database every time a script is run, whether it's loaded in a frame or run by itself. If you start a session and save the username and password in it, then you can use that login and password on every other page that you call session_start() on. ---John Holmes... -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 11:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache, html, php and global variables I am not certain how this helps me, since it appears the data is only carried to pages called directly from where it is set. The page where the user logs onto the database does not link to other pages. This is done from the top frame of the form. The top frame of the inital page contains the menu, one option of which is to log onto the data base to start a session. The user will then select another page from the top form. This new page is displayed in the bottom frame of the intial page, and there may be futher links within this page on the bottom fram.Generally however main navigation is from the top frame which remains in place through out. What I wabt to do is to have the login information available at all times once the user is logged in, nomattar how the current page is called. Is this possible? If so how is this done? - Original Message - From: Stuart Dallas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 01, 2002 11:56 AM Subject: Re: [PHP] Apache, html, php and global variables On Saturday, June 1, 2002 at 2:42:40 AM, you wrote: Is there any way of caryying the login information from one web page to the next in global variables so that the username and password entered in the login screen is available to all other web pages in the site or do I have to ask the user to re-enter this information at every screen? Sessions: http://www.php.net/session -- Stuart -- 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 + SSL + PHP
This isn't a correct apache configure flag: -enablemodule-ssl/so I suggest you use this howto: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html It gives you step by step examples on how to do exactly what you want to. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Septic Flesh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 31, 2002 10:22 AM Subject: [PHP] APACHE + SSL + PHP I download apache 1.3.24 + php 4.1.2 + mod_ssl-2.8.8-1.3.24 $ compile all $install all (not php yet) apache runs ok with or without ssl then compile php and install it.. I get an error cannot load shared library libphp4.so y ? I compile apache -enablemodule-ssl/so what I miss out and I get that cannot load shared library libphp4.so.. file exists . . in the directory that apache reads it but . . .what is wrong ? Thanks.. -- Sapilas@/dev/pinkeye -- 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 installation problem
Duncan, Just a thought, does the user that apache is running as have permissions to read/execute the file? Regards Chris Duncan wrote: Hi, i currently installed latest apache and php on my RH 7.2 system. However, i allways get the following error now: /usr/local/apache/bin/apachectl configtest Syntax error on line 216 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: €Ø+@€Ø+((Ø+@Ø+˜Ø+@˜Ø+ Ø+ Ø+@¨Ø+¨Ø+@°Ø+°Ø+@¸Ø+¸Ø+@ÀØ +@ÀØ+ÈØ+@ÈØ+ÐØ+@ÐØ+ØØ+@ØØ+àØ+@àØ+èØ+@èØ+ðØ+@ðØ+øØ+@øØ +: shared object not open The error_log says: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or directory ...but the file IS there! I don't understand this error. I had to comment all php-based lines within the httpd.conf file, to get apache up and running again! My problem is, that i need to get php up and running asap, so any help is more than welcome. Thanks in advance, regards, Duncan :wq -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0.32 + PHP from CVS not working
From the list, the APR API is done. So there should be no further issues getting it to work.(As in, you should no longer have to jump through hoops every month or release, just to keep up with apr). Well, this is simply not true. Things are still changing. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0.32 + PHP from CVS not working
It won't work simply because Apache 2.0 is very much in a state of flux. The API's change constantly. We are many months away from any sort of stable Apache2+PHP system. Unless you are a developer and can help fix problems, you are much better off sticking with Apache 1.3.x and not bugging the developers trying to bring you Apache 2. -Rasmus On 21 Feb 2002, Austin Gonyou wrote: The PHP-Dev list doesn't want to hear it, so I guess I'm *stuck* back here. Will someone please tell me why the latest CVS of PHP won't let Apache 2.0.32 work and when a graceful fix will be implemented? Hmm..this sounds like it should go to the dev list... -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb -- 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 + Oracle + PHP on HPUX
I've got an HP-UX 10.20 and I would like to install Apache + Oracle + PHP. You have my deepest sympathies. :) I installed and maintained PHP3 PHP4 + Oracle + OpenSSL + Apache on a system like that for 2 years before we were finally able to retire it and move to a Solaris environment. The hardest part is getting things successfully compiled and linked against the various extra libraries (Oracle, GD, etc.) with the correct flags. I'll look around to see if I still have the various makefiles config files that I used, but I suspect they're away on a backup tape somewhere. Searching the archives of this list and groups.google.com will be your best source of help. - Tim http://www.phptemplates.org -- 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]
RE: [PHP] Apache + Oracle + PHP on HPUX
Hi, You can use OpenLink ODBC drivers, and compile PHP/apache --with-iodbc as per the HOWTO at www.iodbc.org. The HOWTO is Linux-based, but the major different will be environment variables. During the install of OpenLink MT drivers a shell script will be automatically created (openlink.sh, openlink.csh) that will set the appropriate variables for you before you try to compile php and apache. Also, this saves you from installing the Oracle client. Just place the iODBC archive in the same directory as the OpenLink MT drivers, and run the install.sh that comes with the OpenLink drivers. This should get your environment fairly well setup. If you require assistance, free support is available at http://www.openlinksw.com/support/suppindx.htm Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology Providers -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 5:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Apache + Oracle + PHP on HPUX Hi! I've got an HP-UX 10.20 and I would like to install Apache + Oracle + PHP. Does anyone know a place to get an installation guide? Or must I install in the same way as Linux? Regards, - This mail was sent through Eoffice: http://www.eoffice.dk -- 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]
RE: [PHP] apache and php ate up all my memory :-[
Can you post the information at the header of top like... CPU states: 0.4% user, 0.0% nice, 3.6% system, 0.0% interrupt, 96.1% idle Mem: 47M Active, 147M Inact, 36M Wired, 11M Cache, 35M Buf, 7328K Free Swap: 1024M Total, 144K Used, 1024M Free and also the output of ps waux | grep mysql ps waux | grep httpd Thx --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed51.com -Original Message- From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 6:36 AM To: [EMAIL PROTECTED] Subject: [PHP] apache and php ate up all my memory :-[ Hi all Probably some Apache/mysql/php-Admin gurus can give me a hint : i just moved a website to it's own server ( my first one). now apache had eaten up all physical and virtual memory some httpd had allocated 45MB of RAM, memory ran out myqsl crashed... php is compiled in to apache Apache/1.3.19 (Unix) PHP/4.0.4pl1 these are the relevant entries is my httpd.conf Timeout 300 KeepAlive On MaxKeepAliveRequests 500 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 20 StartServers 20 MaxClients 150 MaxRequestsPerChild 500 in the php.ini memory_limit = 8M ( but i think that has nothing to do with it) i can't find anything in the logfiles exept that some httpd were already killed by itself, because there was no memory left that they could eat needless to say that my site does NOT get that much traffic that the server was at the edge of it's capacity. HELP... Sebastian -- 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]
Re: [PHP] Apache config + PHP include paths
in your virtualhost definition use: php_value include_path new include path might be that instead of php_value you have to use php_admin_value, not sure. this is explained in Chapter 3. Configuration of php manual. lenar. Butler, Shaun [EMAIL PROTECTED] wrote in message 0106240506.10472@progeny">news:0106240506.10472@progeny... is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? so www.blahblah.com would have /www/libs as the include path and www.moomoo.com would have /www/moo -- Shaun -- 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]
Re: [PHP] Apache config + PHP include paths
Yes, in httpd.conf, just add the appropriate line, i.e. php_value include_path blah in the section for each virtual host. - Tim http://www.phptemplates.org is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? -- 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]
Re: [PHP] Apache config + PHP include paths
on 6/21/01 8:14 AM, Butler, Shaun at [EMAIL PROTECTED] wrote: is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? so www.blahblah.com would have /www/libs as the include path and www.moomoo.com would have /www/moo -- Shaun VirtualHost 123.456.789.000:80 DocumentRoot /usr/local/web/myWeb ServerName myWeb.org ServerAlias www.myWeb.org php_value include_path /usr/local/web/myWeb_inc CustomLog /usr/local/web/logs/myWeb_access_log combined ErrorLog /usr/local/web/logs/myWeb_error_log /VirtualHost That would make the include directory outside the server root. You could just as easily put it inside and name all your files *.php. But that has been discussed at length already ;^) DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 [EMAIL PROTECTED] http://www.rblc.com -- 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]
RE: [PHP] Apache config + PHP include paths
Title: RE: [PHP] Apache config + PHP include paths Shaun, you can also define php_value (but NOT php_admin_value) lines in a .htaccess file rather than in your httpd.conf, assuming you gave (or were given) the appropriate AllowOverride parameters to use .htaccess... Unless you are running your own server or know root, then thats what might be your best (quickest) bet. the appropriate format would be: php_value include_path .:/path/to/includes:/another/path/somewhere/else (personally, i use a . as the first path to check current directory as well.. (covered in the manual as well, i believe) -- Aaron Bennett [EMAIL PROTECTED] -Original Message- From: lenar [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache config + PHP include paths in your virtualhost definition use: php_value include_path new include path might be that instead of php_value you have to use php_admin_value, not sure. this is explained in Chapter 3. Configuration of php manual. lenar. Butler, Shaun [EMAIL PROTECTED] wrote in message 0106240506.10472@progeny" TARGET="_blank">news:0106240506.10472@progeny... is there a way to set up a different include path per virtual host in the apache config or in the php.ini ? so www.blahblah.com would have /www/libs as the include path and www.moomoo.com would have /www/moo -- Shaun -- 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]
Re: [PHP] apache and php ate up all my memory :-[
At 19.06.2001 15:37, you wrote: Hi all Probably some Apache/mysql/php-Admin gurus can give me a hint : i just moved a website to it's own server ( my first one). now apache had eaten up all physical and virtual memory some httpd had allocated 45MB of RAM, memory ran out myqsl crashed... snipped techie details My best guess is that somewhere in the code for your site you have a loop which either allocations or fills up memory with variables on each loop... For some reason this loop didn't exit as you ment it to, and therefore proceeded to eat as much ram as it possibly could chew in the time it should be allowed to run. You didn't say, but my guess is that this is running some Linux flavor, and due to the poor-ish mem-handling under Linux the box bogged down when it realized that it had nada physical and virtual memory left and therefore did get around to killing the apache-process running the runaway script before you got around to doing it... -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.