[PHP] Re: Apache
On 23 Sep 2013 at 11:37, Domain nikha.org m...@nikha.org wrote: The problem is the weak PHP upload mechanism! I'd have said the problem is weak metadata provision - overloading the filename for other purposes. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache
Tim Streater am Montag, 23. September 2013 - 12:56: On 23 Sep 2013 at 11:37, Domain nikha.org m...@nikha.org wrote: The problem is the weak PHP upload mechanism! I'd have said the problem is weak metadata provision - overloading the filename for other purposes. -- Cheers -- Tim You are right, but unfortunately filenames ARE metadata for Apache. Would be better, if they were not, and just identifiers... Niklaus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache mod_pagespeed
'Twas brillig, and Daniel P. Brown at 03/11/10 19:34 did gyre and gimble: On Wed, Nov 3, 2010 at 14:48, Shreyas Agasthya shreya...@gmail.com wrote: Thiago, I would like to join this. Let me know how I can help you with this. Please be explicit with your requests so that we can totally test it and see if it could pose any risk to acceleration services provided by CDNs. I've yet to read the specs behind it (I was out of the office), but from the overview I did see, it should not only be of no detriment to CDNs. In fact, Google is working with an existing company, Cotendo, to integrate the core into their CDN. Yeah it seems like a nice idea. Basically we already do a pre-process stage where we minify css and js before we deploy the application (dev versions are nicely verbose so that the javascript error on line 1 debugging does not plague us!). We also try to pngcrush pngs and optimise jpegs etc. But this module seems to do all that stuff for you on the fly which is pretty nice. It would save over head in terms of application deployment processes here and I'd likely be happier using it than doing all this stuff myself. That said, it's often nice to think about these things rather and learn about the consequences than just blunder on and hope for the best. This module will result in a bit of dumbing down of devs, but that's not to say I'm against it generally. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mageia Contributor [http://www.mageia.org/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache mod_pagespeed
On Thu, Nov 4, 2010 at 05:12, Colin Guthrie gm...@colin.guthr.ie wrote: Yeah it seems like a nice idea. Basically we already do a pre-process stage where we minify css and js before we deploy the application (dev versions are nicely verbose so that the javascript error on line 1 debugging does not plague us!). We also try to pngcrush pngs and optimise jpegs etc. I'm also working toward detecting if a browser can accept them, and if it can, serving WebP images instead of PNGs, JPegs, or GIFs. Typing the sentence out, I'm not sure why I hadn't thought of it before, but it would be a greater speed increase to do it as a PHP extension than to have it run through the parser. Looks like I'll be starting over But this module seems to do all that stuff for you on the fly which is pretty nice. It would save over head in terms of application deployment processes here and I'd likely be happier using it than doing all this stuff myself. Yeah, we were compressing JavaScript with some projects as well, and trying to minify CSS and scripts, consolidating files for production (like you, development versions are the fully-bloated version, because there's nothing worse than being told you have six-hundred errors on line one). In preliminary testing yesterday, though, I'm already highly impressed with mod_pagespeed. It even removes excess spaces - such as those in br / tags - without any adverse reactions I've seen so far. That said, it's often nice to think about these things rather and learn about the consequences than just blunder on and hope for the best. This module will result in a bit of dumbing down of devs, but that's not to say I'm against it generally. I agree to a point: but I also think those of us who already know how to do the work will gain at least two added benefits from this. First, we can even further improve page-load times by doing all of the optimizations to code, layout, and media, as well as server-tuning, caching, et cetera. Second, from a purely commercial standpoint, by being some of the first to gain experience with it, it's another thing you can already tell a client, yes, now that you've heard about this and are foaming at the mouth and simply MUST HAVE IT (NOW, FOR GOD'S SAKE), we can install that for you, no problem. In any case, there are some minor quirks I've found, so I'm not ready to put this into production for any of my client's servers yet, but I can see myself starting to do so in two to four weeks, barring any horrible discoveries. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache mod_pagespeed
'Twas brillig, and Daniel P. Brown at 04/11/10 14:36 did gyre and gimble: I'm already highly impressed with mod_pagespeed. It even removes excess spaces - such as those in br / tags - without any adverse reactions I've seen so far. Nice. I still stick spaces in my br / tags due to the parsing error in IE(somethingold) but I'm pretty sure that was pre-IE6 and thus something I really don't care about now! That said, I'm not sure I'd really want it to optimise all my HTML pages. CSS, JS and images yes, no problem, but the storage overhead of the disk cache all the dynamic pages is probably not worth it for me. But that's presumably just one of the things it can do. In any case, there are some minor quirks I've found, so I'm not ready to put this into production for any of my client's servers yet, but I can see myself starting to do so in two to four weeks, barring any horrible discoveries. The build process looks very ugly And it's strange their build page seems to suggest GCC 4.2 but CentOS 5.5 only has GCC 4.1 so I'm a bit puzzled as to why it's one of their recommended systems :s I'll take the build process for a spin at some point, but they really do need to make it more streamlined. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mageia Contributor [http://www.mageia.org/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache mod_pagespeed
On Thu, Nov 4, 2010 at 10:58, Colin Guthrie gm...@colin.guthr.ie wrote: Nice. I still stick spaces in my br / tags due to the parsing error in IE(somethingold) but I'm pretty sure that was pre-IE6 and thus something I really don't care about now! That said, I'm not sure I'd really want it to optimise all my HTML pages. CSS, JS and images yes, no problem, but the storage overhead of the disk cache all the dynamic pages is probably not worth it for me. But that's presumably just one of the things it can do. Yeah, you can choose which things to allow it to do via the configuration directives as well. The build process looks very ugly And it's strange their build page seems to suggest GCC 4.2 but CentOS 5.5 only has GCC 4.1 so I'm a bit puzzled as to why it's one of their recommended systems :s I'll take the build process for a spin at some point, but they really do need to make it more streamlined. Agreed. It's a bit convoluted, to be sure. In their discussions, they've admitted the same, but it's a very young project. One with a lot of potential, but a very young project nonetheless. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache file order
Skip Evans wrote: Hey all, I modified an Apache config file to list the HTML file first, after the PHP file, it still pulls up the PHP file first. Is there another setting in Apache I should be looking for? I need it to check for the HTML file first. Thanks, Skip IfModule dir_module DirectoryIndex index.html index.php /IfModule yup it may be in the .htaccess as well :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: apache and PHP / Eclipse
TEric Butera schrieb: On Sun, Dec 14, 2008 at 10:33 AM, Nathan Rixham nrix...@gmail.com wrote: Eduardo Vizcarra wrote: I am having a hard time trying to get some pages work. I have PHP 5.2.8, Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All packages were installed, and configured, the strange thing is that pages commonly work but when I add a new line (e.g. an echo line) with a dummy text, Apache crashes and it is restarted I am using Eclipese europa to create the code e.g. I have this code and the page works: include 'upper_pagina.php'; include 'forma.php'; $link = mysql_connect(127.0.0.1,root,root); if (!$link) { echo table width='100%' border='0' cellspacing='0' cellpadding='5' bordercolor='FF'\n; echo tr\n; echo td bgcolor='FF9327'\n; echo bLa Base de datos no esta disponible en este momento.BR; echo Disculpe las molestias, intente mas tarde/b; echo /td\n; echo /tr\n; echo /table\n; } mysql_select_db(estoydevacacionesdb) or die(No pudo seleccionarse la BD.); $busquedasql1 = select * from servicios; include 'bottom_pagina.php'; but if I add a new line ($servicios1 = mysql_query($busquedasql1);) before the last include line, apache crashes, it has been very hard for me to identify what it is causing this problem any clue ? Regards Eduardo also.. you may find it worth while to upgrade to the PDT 2.0 version of eclipse which uses ganymede and comes with the zend debugger, allowing you to test and debug you're code in eclipse. http://www.zend.com/en/community/pdt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I was playing with that last week at work. It's quite buggy. Try to use Xampp apachefriends.org Regards Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: apache and PHP / Eclipse
On Sun, Dec 14, 2008 at 10:33 AM, Nathan Rixham nrix...@gmail.com wrote: Eduardo Vizcarra wrote: I am having a hard time trying to get some pages work. I have PHP 5.2.8, Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All packages were installed, and configured, the strange thing is that pages commonly work but when I add a new line (e.g. an echo line) with a dummy text, Apache crashes and it is restarted I am using Eclipese europa to create the code e.g. I have this code and the page works: include 'upper_pagina.php'; include 'forma.php'; $link = mysql_connect(127.0.0.1,root,root); if (!$link) { echo table width='100%' border='0' cellspacing='0' cellpadding='5' bordercolor='FF'\n; echo tr\n; echo td bgcolor='FF9327'\n; echo bLa Base de datos no esta disponible en este momento.BR; echo Disculpe las molestias, intente mas tarde/b; echo /td\n; echo /tr\n; echo /table\n; } mysql_select_db(estoydevacacionesdb) or die(No pudo seleccionarse la BD.); $busquedasql1 = select * from servicios; include 'bottom_pagina.php'; but if I add a new line ($servicios1 = mysql_query($busquedasql1);) before the last include line, apache crashes, it has been very hard for me to identify what it is causing this problem any clue ? Regards Eduardo also.. you may find it worth while to upgrade to the PDT 2.0 version of eclipse which uses ganymede and comes with the zend debugger, allowing you to test and debug you're code in eclipse. http://www.zend.com/en/community/pdt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I was playing with that last week at work. It's quite buggy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache and PHP / Eclipse
Eduardo Vizcarra wrote: I am having a hard time trying to get some pages work. I have PHP 5.2.8, Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All packages were installed, and configured, the strange thing is that pages commonly work but when I add a new line (e.g. an echo line) with a dummy text, Apache crashes and it is restarted I am using Eclipese europa to create the code e.g. I have this code and the page works: include 'upper_pagina.php'; include 'forma.php'; $link = mysql_connect(127.0.0.1,root,root); if (!$link) { echo table width='100%' border='0' cellspacing='0' cellpadding='5' bordercolor='FF'\n; echo tr\n; echo td bgcolor='FF9327'\n; echo bLa Base de datos no esta disponible en este momento.BR; echo Disculpe las molestias, intente mas tarde/b; echo /td\n; echo /tr\n; echo /table\n; } mysql_select_db(estoydevacacionesdb) or die(No pudo seleccionarse la BD.); $busquedasql1 = select * from servicios; include 'bottom_pagina.php'; but if I add a new line ($servicios1 = mysql_query($busquedasql1);) before the last include line, apache crashes, it has been very hard for me to identify what it is causing this problem any clue ? Regards Eduardo check the apache error logs; however check you don't have the postgres and threads modules enabled in you're php.ini regards! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache and PHP / Eclipse
Eduardo Vizcarra wrote: I am having a hard time trying to get some pages work. I have PHP 5.2.8, Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All packages were installed, and configured, the strange thing is that pages commonly work but when I add a new line (e.g. an echo line) with a dummy text, Apache crashes and it is restarted I am using Eclipese europa to create the code e.g. I have this code and the page works: include 'upper_pagina.php'; include 'forma.php'; $link = mysql_connect(127.0.0.1,root,root); if (!$link) { echo table width='100%' border='0' cellspacing='0' cellpadding='5' bordercolor='FF'\n; echo tr\n; echo td bgcolor='FF9327'\n; echo bLa Base de datos no esta disponible en este momento.BR; echo Disculpe las molestias, intente mas tarde/b; echo /td\n; echo /tr\n; echo /table\n; } mysql_select_db(estoydevacacionesdb) or die(No pudo seleccionarse la BD.); $busquedasql1 = select * from servicios; include 'bottom_pagina.php'; but if I add a new line ($servicios1 = mysql_query($busquedasql1);) before the last include line, apache crashes, it has been very hard for me to identify what it is causing this problem any clue ? Regards Eduardo also.. you may find it worth while to upgrade to the PDT 2.0 version of eclipse which uses ganymede and comes with the zend debugger, allowing you to test and debug you're code in eclipse. http://www.zend.com/en/community/pdt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache content negotiation and $_GET
Per Jessen wrote: All, I've got a weird issue concerning $_GET and apaches content negotiation. I should have mentioned I'm using php 5.2.0 and apache 2.2.3. /Per Jessen, Zurich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache (root) + php4
Hi Rory, Am 2005-09-03 17:04:19, schrieb Rory Browne: I'm not totally sure on the format of the passwords in /etc/shadow, but can you do anything with php's md5 function? If not, then perhaps the mcrypt extension may do something for you. Unfortunatly not, because echo -n michellesecret |md5sum or md5(michellesecret) produce:28c2f05403caaa750df55efadeebd9ed but in /etc/shadow you find:$1$.NV7oLhO$Gj/ztvspUcpcJ5iUJiXNo0 I do not find the right syntax and options to produce the later string. First of all you inform your client that they are insane. Running apache as root is completely unnecessary. Who tell you this? I have gotten this job because the original (external) maintainer of the systems is not more availlable. The systems are horrible! I need to reinstall from scratch. to perform the above I'd use a combination of suExec/suPHP/somethingLikeThat and sudo. I'd create a user called I have no experience with it... webuserman (Web User Manager), or something like that, and have the script run as webuserman. I'd change the useradd. to sudo useradd., and mod the /etc/sudoers file to allow webuserman user to call the useradd command as root(through sudo). OK, I wil check suExec and suPHP out. If you are a lazy bastard, with very little concern for security(which it seems you're not), you could simply run the script as www-data, and have sudo allow www-data to do an adduser. I would oppose this however, in that any php script would be able to use it. OK, this is what I have curently and it works fine but security... The users have there ~/public_html so they can addusers as they like. I think, its not so good. Also make sure you escape your shell arguments. :-) Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: apache (root) + php4
the one you posted is created with crypt() (see crypt in the php manual) Michelle Konzack wrote: Hi Rory, Am 2005-09-03 17:04:19, schrieb Rory Browne: I'm not totally sure on the format of the passwords in /etc/shadow, but can you do anything with php's md5 function? If not, then perhaps the mcrypt extension may do something for you. Unfortunatly not, because echo -n michellesecret |md5sum or md5(michellesecret) produce:28c2f05403caaa750df55efadeebd9ed but in /etc/shadow you find:$1$.NV7oLhO$Gj/ztvspUcpcJ5iUJiXNo0 I do not find the right syntax and options to produce the later string. First of all you inform your client that they are insane. Running apache as root is completely unnecessary. Who tell you this? I have gotten this job because the original (external) maintainer of the systems is not more availlable. The systems are horrible! I need to reinstall from scratch. to perform the above I'd use a combination of suExec/suPHP/somethingLikeThat and sudo. I'd create a user called I have no experience with it... webuserman (Web User Manager), or something like that, and have the script run as webuserman. I'd change the useradd. to sudo useradd., and mod the /etc/sudoers file to allow webuserman user to call the useradd command as root(through sudo). OK, I wil check suExec and suPHP out. If you are a lazy bastard, with very little concern for security(which it seems you're not), you could simply run the script as www-data, and have sudo allow www-data to do an adduser. I would oppose this however, in that any php script would be able to use it. OK, this is what I have curently and it works fine but security... The users have there ~/public_html so they can addusers as they like. I think, its not so good. Also make sure you escape your shell arguments. :-) Greetings Michelle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: apache (root) + php4
Michelle Konzack wrote: Hi Rory, Am 2005-09-03 17:04:19, schrieb Rory Browne: I'm not totally sure on the format of the passwords in /etc/shadow, but can you do anything with php's md5 function? If not, then perhaps the mcrypt extension may do something for you. Unfortunatly not, because echo -n michellesecret |md5sum or md5(michellesecret) produce:28c2f05403caaa750df55efadeebd9ed but in /etc/shadow you find:$1$.NV7oLhO$Gj/ztvspUcpcJ5iUJiXNo0 I do not find the right syntax and options to produce the later string. The $1$.NV7oLhO$ is the SALT used by crypt. But to make it easier, php's crypt() function is smart enough to just take the correct part of the string and treat it as the salt, so you can pass the whole thing in. That is, when trying to match up a password, you can do this: ?php $match = '$1$.NV7oLhO$Gj/ztvspUcpcJ5iUJiXNo0'; $passwd = 'michellesecret'; if(crypt($passwd,$match)==$match) echo It matched; else It didn't match; ? I think you will find that if you echo out the result of crypt($passwd,$match) in the above, you will see: $1$.NV7oLhO$Gj/ztvspUcpcJ5iUJiXNo0 -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.0.52 + PHP 4.3.9 configuration problem, for Linux Fedora 3.
[EMAIL PROTECTED] wrote: Hi, I have Apache 2.0.52 with PHP 4.3.9, running on a Linux Fedora 3, and cannot write through PHP on any folder, except for /tmp. No matter which permissions, owner or group are set for the folders or files, they never become writable. When I execute the following script, I have always obtain as a result, that The file is not writable, although it should be, because test.txt has Apache as its owner and group, and permissions for reading, writing and executing for the owner, group and others. In Apache, the user and group are set to Apache, and in PHP the safe mode is off SNIP code The directory where you are trying to write should also have write and scan (x) permissions for the user; this probably means making the directory chmod o+wx Cheers -- David Robley My hat covers my head... Just like hair used to! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache Webserver User Survey
Documented research indicate that on Wed, 22 Jun 2005 12:15:36 +1000, Ian Holsman wrote: if you do know a IIS mailing list, please feel free to mail me.. I really couldn't find any. I was actually talking about Usenet groups, but ok. Microsoft's usenet server has a whole bunch of IIS groups, but I dunno if they'd take too kindly to your survey - they're a bit anal about developers posting in their non-developer groups. But otherwise I only found one group that specifically mentions IIS, and that's in Japanese... But if you want to find user groups for specific topics (whether it's IIS or something else), search through Yahoo Groups (groups.yahoo.com), there's bound to be a few popping up. Rene -- Rene Brehmer aka Metalbunny We have nothing to fear from free speech and free information on the Internet, but pop-up advertising! http://metalbunny.net/ My little mess of things... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache Webserver User Survey
Why bother. http://news.netcraft.com/archives/web_server_survey.html Ian Holsman wrote: Hi. I am conducting a survey about what users want out of a webserver and how the Apache webserver ranks as far as fulfilling those needs. In order to get a better understanding of it, I thought I would ask you guys what was important to you. The survey should take about 10-15 minutes to complete. http://survey.zilbo.com/php.survey I wish I could say there was a prize being given away if you fill it out, but there isn't.. This is 'opensource' research.. I don't have a marketing budget ;-) Thanks Ian Holsman [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache Webserver User Survey
On 6/21/05, Al [EMAIL PROTECTED] wrote: Why bother. http://news.netcraft.com/archives/web_server_survey.html http://www.securityspace.com/s_survey/data/200504/index.html http://www.securityspace.com/s_survey/data/man.200504/apachemods.html -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache Webserver User Survey
Greg Donald wrote: On 6/21/05, Al [EMAIL PROTECTED] wrote: Why bother. http://news.netcraft.com/archives/web_server_survey.html http://www.securityspace.com/s_survey/data/200504/index.html http://www.securityspace.com/s_survey/data/man.200504/apachemods.html These show that apache has 70% usage, but not why. The survey is aimed to find out: - what people actually use (and how) - what kind of things they would like to see - and what they want improved and just because apache has a 70% market share today doesn't mean that it will have it in a year from now. just look at the netscape browser for an example on how fast you can fall from being the #1 to #0. Regards Ian. ps. I honestly do want some feedback good or bad. If you could spend the 10 minutes it would be appreciated. The link again http://survey.zilbo.com/php.survey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache Webserver User Survey
On 6/21/05, Ian Holsman [EMAIL PROTECTED] wrote: These show that apache has 70% usage, but not why. The survey is aimed to find out: - what people actually use (and how) Most people use Apache. How? To serve web pages most likely. There are quite a few new projects using the Apache portable runtime that do not necessarily serve up web pages however. - what kind of things they would like to see In what respect? Performance? Price? - and what they want improved I have no complaints. Apache serves web pages just fine for me. There may be some people who want to use Apache2 in threading mode. and just because apache has a 70% market share today doesn't mean that it will have it in a year from now. I suspect it will be 75% or possibly higher in the next year. But I make a living writing PHP, not looking into crystal balls, so I might be wrong. just look at the netscape browser for an example on how fast you can fall from being the #1 to #0. Right, but it was a commercial product that got the rug pulled out from underneath it by a free product, IE. Apache is already free, so IIS can't really do much harm there. Lighttpd may be one to watch however: http://www.lighttpd.net/ -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache Webserver User Survey
Documented research indicate that on Wed, 22 Jun 2005 10:58:12 +1000, Ian Holsman wrote: Greg Donald wrote: On 6/21/05, Al [EMAIL PROTECTED] wrote: Why bother. http://news.netcraft.com/archives/web_server_survey.html http://www.securityspace.com/s_survey/data/200504/index.html http://www.securityspace.com/s_survey/data/man.200504/apachemods.html These show that apache has 70% usage, but not why. Because it's free and can do just about any HTTP need you might have on any platform ever made ? I tried using IIS, both the small one that comes with Windows 2000 Pro and XP Pro, and the full version that comes with Windows 2000/2003 server, and it is by far nowhere as lean or stable as Apache. ... And because IIS comes with windows, and an awful lot of companies, for gawd knows what reason, choose windows for their servers, it remains the only real alternative to Apache. But at any rate: Your survey might be better aimed at the Apache and IIS user groups, rather than the PHP groups. And personally, I don't like the demographical info in your survey. Unless you're doing a localization project, I don't see the relevance in it. What people use a webserver for in Timbuktu is generally the same as in Alaska, the different local languages aside: Serving porn sites, news and reviews, technical and not so technical references, and community sites (those four things happen to be what about 70% of the web consists of). -- Rene Brehmer aka Metalbunny We have nothing to fear from free speech and free information on the Internet, but pop-up advertising! http://metalbunny.net/ My little mess of things... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache Webserver User Survey
wow you php bunch are a vocal lot.. ;-) no other mailing list had a peep. ok. let me try to answer the questions.. and apologies if I offend, it isn't the intention. the answers your have given me are great (I wish u stuck them in the survey form, but no matter) you've just given me 2 different reasons on 'why apache' then the previous poster. you said: stability 'leanness' he said: performance price. Others have also mentioned other reasons like ease of configuration, modularity and so on. The point is each of you are unique individuals with different reasons and experiences. If no one asks, we wouldn't know, we could just make a gut choice .. which would most likely be wrong. now.. why demographics.. have a look at http://www.biznix.org/surveys/ for a different picture of apache's server usage stats. people in america in fortune 500 companies use IIS more than people in 'the world' in global 500 companies... so where you live does make a difference. who knew? as for how we could use this information. I put the demographic in there to see what kind of person you are, and to see if there was any correlation between where you live and how you answered. ie.. people in Europe think documentation is a big issue, while the people in the USA are more concerned about performance. (this might be because the French documentation is really bad.. which would be interesting in itself no?). BTW.. your IP# would have given me a whole lot of this information as well. I was just being polite (and lazy.. I didn't want to implement the same thing the php website does for it's download mirroring) and to address your other concern.. why 'PHP'.. easy.. you guys use apache and IIS. PHP is so great it can run on both.. you guys have a *choice*.. If we didn't listen to what you guys say.. you wouldn't choose us next time. mod_perl or .NET users don't have that choice. if you do know a IIS mailing list, please feel free to mail me.. I really couldn't find any. Kind regards Ian Holsman. Rene Brehmer wrote: Documented research indicate that on Wed, 22 Jun 2005 10:58:12 +1000, Ian Holsman wrote: Greg Donald wrote: On 6/21/05, Al [EMAIL PROTECTED] wrote: Why bother. http://news.netcraft.com/archives/web_server_survey.html http://www.securityspace.com/s_survey/data/200504/index.html http://www.securityspace.com/s_survey/data/man.200504/apachemods.html These show that apache has 70% usage, but not why. Because it's free and can do just about any HTTP need you might have on any platform ever made ? I tried using IIS, both the small one that comes with Windows 2000 Pro and XP Pro, and the full version that comes with Windows 2000/2003 server, and it is by far nowhere as lean or stable as Apache. ... And because IIS comes with windows, and an awful lot of companies, for gawd knows what reason, choose windows for their servers, it remains the only real alternative to Apache. But at any rate: Your survey might be better aimed at the Apache and IIS user groups, rather than the PHP groups. And personally, I don't like the demographical info in your survey. Unless you're doing a localization project, I don't see the relevance in it. What people use a webserver for in Timbuktu is generally the same as in Alaska, the different local languages aside: Serving porn sites, news and reviews, technical and not so technical references, and community sites (those four things happen to be what about 70% of the web consists of). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache Webserver User Survey
it's very easy to use and there's more documentation floating around than any other - which is always a good thing... =) from a n00b's point of view!
Re: [PHP] Re: Apache Webserver User Survey
On 6/21/05, Ian Holsman [EMAIL PROTECTED] wrote: why 'PHP'.. easy.. you guys use apache and IIS. PHP is so great it can run on both.. you guys have a *choice*.. If we didn't listen to what you guys say.. you wouldn't choose us next time. mod_perl or .NET users don't have that choice. .NET code runs on Apache via mod_mono. http://www.mono-project.com/ASP.NET -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Apache 2.0 and Sessions
I didn't need to search, turns out there wasn't a folder C:\WINODWS\TEMP so I just made one and it's all fixed now. Only thing I don't understand is why it didn't change the save path when I asked it to. Oh well. Thanks for all the help people! Thanks, Stephen Craton http://www.melchior.us -Original Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 7:14 AM To: php-general@lists.php.net Subject: Re: [PHP] Re: Apache 2.0 and Sessions Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) Search the archives... seriously... guaranteed you will find the answer to this. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://www.php.net/manual/en/index.php php-general archives: http://marc.theaimsgroup.com/?l=php-generalw=2 -- 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] Re: Apache 2.0 and Sessions
Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) Search the archives... seriously... guaranteed you will find the answer to this. -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://www.php.net/manual/en/index.php php-general archives: http://marc.theaimsgroup.com/?l=php-generalw=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] BEGINNERS READ THIS MAIL!!! was: Re: [PHP] Re: Apache 2.0 and Sessions
Dear Beginners, Jason Barnett has a couple links in his sig that every beginner should read for their benefit as well as ours(mine ;-): Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://www.php.net/manual/en/index.php php-general archives: http://marc.theaimsgroup.com/?l=php-generalw=2 (nice one Jason!) Jason Barnett wrote: Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) Search the archives... seriously... guaranteed you will find the answer to this. always a good idea to search the archives, not always easy but if you do and mention that when you end up posting a question (because you can't find an answer or still don't get it) you will probably get a tad more respect and that increases the chances of a useful reply! happy coding! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.0 and Sessions
Stephen Craton wrote: I just updated to Apache 2.0 and have gotten PHP all with it. However, I just loaded up a script that worked fine on my old Apache 1.3 install but is now causing my errors. Here's the error: Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) failed: No such file or directory (2) in D:\htdocs\payments\index.php on line 8 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\htdocs\payments\index.php:8) in D:\htdocs\payments\index.php on line 8 I don't see why it's happening, especially since I went into php.ini (I'm on Windows XP) and changed session.save_patch to this: session.save_path = C:/PHP/sessiondata Can anyone give me some input here? I think I see the problem, the whole double back slash in the file location, but I don't see how to fix that. Thanks, Stephen Craton Stephen, Not sure I can see your error either but here's a thought that might be useful. I run Apache 2.0 on my laptop with PHP 4.3.4. Sessions work fine for me. For various reasons I chose to set my session.save_path at the beginning of every script and it works fine. Here's the line of code I use: session_save_path('c:\Program Files\Apache Group\Apache2\htdocs\tmp'); Again it doesn't answer the question you're asking but it might be an approach that's easy for you to implement. I do it via an include(). -- Jerry Kita http://www.salkehatchiehuntersville.com email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Apache 2.0 and Sessions
Thanks for the reply, and I apologize for being a top poster, just a habit. I would do that, and it is a good idea, just not practical since I usually upload or publish the scripts I have on here to a server or to other people. What I have here will not work on their servers if I do this. I could just comment that line out, granted, but it doesn't seem practical for my situation. Thanks for the suggestion though! Thanks, Stephen Craton -Original Message- From: Jerry Kita [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 7:03 PM To: php-general@lists.php.net Subject: [PHP] Re: Apache 2.0 and Sessions Stephen Craton wrote: I just updated to Apache 2.0 and have gotten PHP all with it. However, I just loaded up a script that worked fine on my old Apache 1.3 install but is now causing my errors. Here's the error: Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) failed: No such file or directory (2) in D:\htdocs\payments\index.php on line 8 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\htdocs\payments\index.php:8) in D:\htdocs\payments\index.php on line 8 I don't see why it's happening, especially since I went into php.ini (I'm on Windows XP) and changed session.save_patch to this: session.save_path = C:/PHP/sessiondata Can anyone give me some input here? I think I see the problem, the whole double back slash in the file location, but I don't see how to fix that. Thanks, Stephen Craton Stephen, Not sure I can see your error either but here's a thought that might be useful. I run Apache 2.0 on my laptop with PHP 4.3.4. Sessions work fine for me. For various reasons I chose to set my session.save_path at the beginning of every script and it works fine. Here's the line of code I use: session_save_path('c:\Program Files\Apache Group\Apache2\htdocs\tmp'); Again it doesn't answer the question you're asking but it might be an approach that's easy for you to implement. I do it via an include(). -- Jerry Kita http://www.salkehatchiehuntersville.com email: [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] Re: Apache 2.0 and Sessions
Stephen Craton wrote: Thanks for the reply, and I apologize for being a top poster, just a habit. I would do that, and it is a good idea, just not practical since I usually upload or publish the scripts I have on here to a server or to other people. Steve My laptop is my development server but my production work is on a public server. I apologize for not giving you a complete description of what I do ... I set my session.save_path on the public server by creating a TMP directory in my Public_html folder. I've created an IF THEN ELSE that recognizes whether the code is being executed on my laptop or at the public server. The entire include() file is as follows: ?php if ($_SERVER['SERVER_NAME'] == localhost) { session_save_path('c:\Program Files\Apache Group\Apache2\htdocs\tmp'); } else { session_save_path('/...x/public_html/tmp'); } ? Works great ... and the old session files in the public_html/tmp directory get cleaned out automatically. Still might not be practical for you for other reasons but I thought I should give you a more complete answer .. Jerry What I have here will not work on their servers if I do this. I could just comment that line out, granted, but it doesn't seem practical for my situation. Thanks for the suggestion though! Thanks, Stephen Craton -Original Message- From: Jerry Kita [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 7:03 PM To: php-general@lists.php.net Subject: [PHP] Re: Apache 2.0 and Sessions Stephen Craton wrote: I just updated to Apache 2.0 and have gotten PHP all with it. However, I just loaded up a script that worked fine on my old Apache 1.3 install but is now causing my errors. Here's the error: Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) failed: No such file or directory (2) in D:\htdocs\payments\index.php on line 8 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at D:\htdocs\payments\index.php:8) in D:\htdocs\payments\index.php on line 8 I don't see why it's happening, especially since I went into php.ini (I'm on Windows XP) and changed session.save_patch to this: session.save_path = C:/PHP/sessiondata Can anyone give me some input here? I think I see the problem, the whole double back slash in the file location, but I don't see how to fix that. Thanks, Stephen Craton Stephen, Not sure I can see your error either but here's a thought that might be useful. I run Apache 2.0 on my laptop with PHP 4.3.4. Sessions work fine for me. For various reasons I chose to set my session.save_path at the beginning of every script and it works fine. Here's the line of code I use: session_save_path('c:\Program Files\Apache Group\Apache2\htdocs\tmp'); Again it doesn't answer the question you're asking but it might be an approach that's easy for you to implement. I do it via an include(). -- Jerry Kita http://www.salkehatchiehuntersville.com email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: apache 1 vs 2 w/php
My experience dictates the contrary. Apache 2 is much faster with PHP that Apache 1.3. I run an enterprise web application in my company with about 950 users concurrently. I configured the apache logs to add the execution time for each request (this is done with %T in the LogFormat). We started the production system around 2 years ago with RH9 and Apache 1.3. Only 72% of the requests scored 0 seconds (which means less than 1 second). Then I updated to Fedora Core 2 with Apache 2 and it scored 96%. I know the kernel is a lot better but this improvement is almost because of Apache 2 since I tested Apache 1.3 in the same system and I got back to the 72% performance. I guess this dependes of what you use. Because PHP has an Apache filter and an Apache handler. I use the later. -William El mié, 05-01-2005 a las 14:20 +, Matthew Weier O'Phinney escribió: * Sebastian [EMAIL PROTECTED]: I am undecided whether to upgrade to apache 2 (currently running 1.3.33) I've heard some bad stuff (some good maybe) about using apache 2 with php.. does anyone have an opinions? I know everything has cons/pros but i am just looking for advice on whether my site will benifit from the upgrade. I'm curious to know if a site that normally sees 300-500 users online would see any improvements. any on going issues? is php faster/slower? downsides? advantages? anything in general that can help me decide. This study might help you make up your mind: http://ilia.ws/archives/32-Apache-1-vs-Apache-2-Performance.html In summary: apache2 is faster for static content, but slower at serving PHP; additionally, if using the prefork version of apache2 (which you need to do to keep PHP stable), much of your performance boost for static content will be lost. Your best bet: stick with apache1 if using PHP heavily. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: apache 1 vs 2 w/php
Rasmus, I see much better performance with Apache 2. I'm not an expert in the internals of Apache nor PHP but I guess one of the improvements in apache is the log mechanism, I think it use a different technique that makes it faster that Apache 1.3 The reason I say this is because Apache 1.3 log are written in perfect order according to the time field. I Apache 2 the logs are not ordered so you can have something like this: 172.20.15.138 - - [06/Jan/2005:09:43:55 -0500] 192.168.149.42 - - [06/Jan/2005:09:43:55 -0500] 192.168.150.27 - - [06/Jan/2005:09:43:55 -0500] 172.16.113.22 - - [06/Jan/2005:09:43:53 -0500] 192.1.20.197 - - [06/Jan/2005:09:43:54 -0500] 192.168.172.20 - - [06/Jan/2005:09:43:55 -0500] 192.168.150.66 - - [06/Jan/2005:09:43:55 -0500] This is extracted from my production server with FC3 Apache 2.0.52 and PHP 4.3.9 -William El mié, 05-01-2005 a las 04:58 -0800, Rasmus Lerdorf escribió: Lester Caine wrote: Sebastian wrote: I know everything has cons/pros but i am just looking for advice on whether my site will benifit from the upgrade. I'm curious to know if a site that normally sees 300-500 users online would see any improvements. That would be nice information to find out, but does not seem to be available. If you are serving up a lot of static file, you will see an improvement. If it is all dynamic PHP requests, then you won't. Apache really doesn't have much to do on a PHP request so all the performance depends on the speed of PHP, not Apache. There are a few places where Apache2 has improved things for a PHP request, but these tend to be countered by a few places where things have gotten ore expensive. Every benchmark I have done puts PHP under Apache2 right in the same ballpark as PHP under Apache1 with Apache1 usually a little bit ahead. But do your own testing on your own platform. Other peoples' benchmarks are meaningless. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache 1 vs 2 w/php
Sebastian wrote: I am undecided whether to upgrade to apache 2 (currently running 1.3.33) I've heard some bad stuff (some good maybe) about using apache 2 with php.. does anyone have an opinions? General opinion is if Apache1 is working stick with it. I'm using Apache2 and never installed Apache1 so can't compare. The main development effort is focused only on Apache1 support though. I know everything has cons/pros but i am just looking for advice on whether my site will benifit from the upgrade. I'm curious to know if a site that normally sees 300-500 users online would see any improvements. That would be nice information to find out, but does not seem to be available. any on going issues? is php faster/slower? downsides? advantages? anything in general that can help me decide. If you have a working Apache1 setup leave it alone for the time being. And watch out for movement, perhaps next year? -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: apache 1 vs 2 w/php
Lester Caine wrote: Sebastian wrote: I know everything has cons/pros but i am just looking for advice on whether my site will benifit from the upgrade. I'm curious to know if a site that normally sees 300-500 users online would see any improvements. That would be nice information to find out, but does not seem to be available. If you are serving up a lot of static file, you will see an improvement. If it is all dynamic PHP requests, then you won't. Apache really doesn't have much to do on a PHP request so all the performance depends on the speed of PHP, not Apache. There are a few places where Apache2 has improved things for a PHP request, but these tend to be countered by a few places where things have gotten ore expensive. Every benchmark I have done puts PHP under Apache2 right in the same ballpark as PHP under Apache1 with Apache1 usually a little bit ahead. But do your own testing on your own platform. Other peoples' benchmarks are meaningless. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache 1 vs 2 w/php
* Sebastian [EMAIL PROTECTED]: I am undecided whether to upgrade to apache 2 (currently running 1.3.33) I've heard some bad stuff (some good maybe) about using apache 2 with php.. does anyone have an opinions? I know everything has cons/pros but i am just looking for advice on whether my site will benifit from the upgrade. I'm curious to know if a site that normally sees 300-500 users online would see any improvements. any on going issues? is php faster/slower? downsides? advantages? anything in general that can help me decide. This study might help you make up your mind: http://ilia.ws/archives/32-Apache-1-vs-Apache-2-Performance.html In summary: apache2 is faster for static content, but slower at serving PHP; additionally, if using the prefork version of apache2 (which you need to do to keep PHP stable), much of your performance boost for static content will be lost. Your best bet: stick with apache1 if using PHP heavily. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.0.52 / PHP 4.3.10 Integration Question...
* Robin Getz [EMAIL PROTECTED]: 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? Yes... approach it differently. Try the following: In httpd.conf or your .htaccess, have: Files projects ForceType application/x-httpd-php /Files Then, in your projects file, use the PATH_INFO key from $_SERVER to access variables passed as part of the 'url' (anything following a slash trailing the word 'projects' in the url): $path_info = $_SERVER['PATH_INFO']; $path_info = substr($path_info, 1); // Trim off first slash $args = expode('/', $path_info); $variable = $args[0]; -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache htaccess mod rewrite with php querystring urls
Raisinlove a écrit : Hi, I realize this isnt specificaly related to php, but most php hi developers are familiar with this. My website uses an index.php file to load all content with a template, using urls like so: http://www.foo.com/index.php?page=splash.html In the same directory, there is a file called splash.html, but what I would like to do is that if the source file is called, the php file would load instead. So typing in: http://www.foo.com/splash.html would bring up: http://www.foo.com/index.php?page=splash.html instead. The solution I found was to use an .htaccess file, but it only brings up a 403 forbidden access error everytime. ModRewrite is enabled, so what could be the problem? Here is the code I used: RewriteEngine on RewriteBase / RewriteRule ^[A-Za-z0-9]\.html$ /index.php?page=$1 [A-Za-z0-9] will only match one character. Try this : RewriteEngine on RewriteRule [A-Za-z0-9]+\.html$ /index.php?page=$1 thanks for your help :) -steph -- Fabrice Lezoray http://classes.scriptsphp.fr - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache htaccess mod rewrite with php querystring urls
[A-Za-z0-9] will only match one character. Try this : RewriteEngine on RewriteRule [A-Za-z0-9]+\.html$ /index.php?page=$1 Ah, good point there. Thanks. However, I'm still experiencing problems displaying any page contained within the folder which holds this htaccess file. I get a 403 Forbidden Access error everytime. Your example above is the only code contained in my file. What could be the cause of this, and how can I fix it? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache htaccess mod rewrite with php querystring urls
On Thu, 12 Aug 2004 14:19:07 +0200, in php.general you wrote: [A-Za-z0-9] will only match one character. Try this : RewriteEngine on RewriteRule [A-Za-z0-9]+\.html$ /index.php?page=$1 $1 would be a backreference, but there are no capturing parenthesis. RewriteRule ([A-Za-z0-9]+\.html)$ /index.php?page=$1 However, I'm still experiencing problems displaying any page contained within the folder which holds this htaccess file. I get a 403 Forbidden Access error everytime. It's pretty simple, though: If you get an error, check your error log for Apache (default written to logs/error.log). It would give you the reason for you Apache has given a 403-error to the client. Still, this is not much of a PHP issue. Since Rewrite-magic tend to be pretty complicated (and there are a couple of misunderstandings regarding this feature), I do think some Apache mailing lists would be of more help for you. -- - Peter Brodersen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2 was: Re: [PHP] Re: PHP Apache Version
Steve Wardell wrote: This single ambigous line of Do not use... is not productive. Seconded. My PHP5rc2 rig is running Apache2 and a number of demo applications. Nothing wrong in the logs since rc2 came out ;) -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: APACHE
http://www.apache.org/foundation/mailinglists.html - zerof - Wykis [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Guys... I Think I Am In Wrong Place... But What Is Address Of Apache Newsgroups? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache directive to expand unqualified host names?
Matt wrote: Hello, I am looking for an Apache directive to automatically expand an unqualified host name in a web browser client. Here's an example of what I mean by this: User, in web browser, enters (these are all hypothetical examples): http://automobiles/trucks/ automobiles actually fully qualifies to automobiles.transportation.com. I want the Apache server to convert the text entered above to the following once the browser loads the web page: http://automobiles.transportation.com/trucks/ I understand that one can configure an Apache server to do this, probably with an Apache directive? If so, which one? Is this on an Intranet where you would resolve 'automobiles' to an IP address? Thanks for any help, -Matt -- Remove the obvious text (including the dash) to email me. -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache/IE hangs with PHP
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i think ie suck hehe a friend had a similar problem, it was ie's fault Vincent Bouret wrote: Hi, I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1 with PHP 4.3.4 as a module: httpd.conf LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml //After a list of modules AddModule mod_php4.c Let's say I have test.php that does nothing more than sleeping for 30 seconds: ?php sleep(30); ? html content /html When I open up this script in IE with http://localhost/test.php and within the 30 seconds sleep I try to load another file with .php extension (regardless of whether there are some php statements or not in the file) on the same localhost server with another IE window, IE or Apache hangs until the first script is done and then gives output of the second script. The thing is that when I connect to Apache manually with Telnet during the same 30 seconds and I request a PHP script, I get the answer immediately. I've tried almost everything, Apache 2.0, PHP5, disabling Keep-Alive in Apache, nothing works. What am I doing wrong? Is that a natural behaviour. Thanks for your help, Vincent - -- André Cerqueira -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAPZooaxdA/5C8vH8RAlPRAKC0rWq5pgp1uQjhxIZ1PEOjdxFl8wCghiPI 5GdpbYgIWQQQBDWVuNqXXOw= =D3lA -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache mysql php windows
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 http://www.hotscripts.com/PHP/Software_and_Servers/Installation_Kits -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache+modssl+php problem??? possible IE bug?
I don't think it is a PHP issue because I don't have this problem with Mozilla browser. It more had to do with IE and worse, it is only a random occurance. Scott F. Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 14 February 2004 05:44, Scott Fletcher wrote: I mean, I sometime found a few POST data had incorrectly went over to the GET data. I don't know it's a PHP problem but more of a web browser problem. If something like that really is happening then it seems like a pretty serious bug. Do you have sample code and version numbers? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* In a consumer society there are inevitably two kinds of slaves: the prisoners of addiction and the prisoners of envy. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache crashes on windows XP / PHP MySQL
Does this happens *everytime* you try to connect to MySQL using PHP? Does PHP is running as module or cgi? I've been using WinXP, PHP and MySQL. Although, I'm now running Apache 1.3.28, I did try Apache 2 (php as a cgi) Manu. Johan Kok [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have the following software: 1. Apache 2.0.48 (tried with and without SSL) 2. PHP - Latest version 3. MySQL - latest version Running on Microsoft XP The problem that I have is that when accessing MySQL with PHP cause Apache to crash, restart, crash etc Could anybody help me please? Regards Johan Kok -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache+modssl+php problem??? possible IE bug?
On Saturday 14 February 2004 05:44, Scott Fletcher wrote: I mean, I sometime found a few POST data had incorrectly went over to the GET data. I don't know it's a PHP problem but more of a web browser problem. If something like that really is happening then it seems like a pretty serious bug. Do you have sample code and version numbers? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* In a consumer society there are inevitably two kinds of slaves: the prisoners of addiction and the prisoners of envy. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache+modssl+php problem??? possible IE bug?
Try the $_REQUEST variable, this is where both the $_GET and $_POST come from and let us know how it goes... Scott F. Chris Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When in IE, submitting any form on our https page, the post variables intermittantly don't come through. The get variables come through fine. Just not the $_POST variables. I have tried everything to get this to work. Everything was working fine but it seems after we updated IE with the last critical updates this started to become an issue. We have rebuilt servers, and installed apache+modssl+php from /usr/ports, as well as manually and have been unable to resolv this issue. We are using a generic installation of apache+modssl+php with the included php.ini, only modifications being Register_globals on and safe_mode off We have also tried backing down to an earlier version of php and apache (php 4.3.1, modssl 2.8.15 and apache 1.3.28, which we were running before the rebuild) Netscape seems to work fine. Once again, this only seems to be happening on secure pages. We have tried on multiple workstations, and our customers seem to be effected by this too. Does anyone know what this might be? possibly an IE bug? Any help would be apreciated. Thanks! :) Chris Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache+modssl+php problem??? possible IE bug?
I mean, I sometime found a few POST data had incorrectly went over to the GET data. I don't know it's a PHP problem but more of a web browser problem. Scott F. Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try the $_REQUEST variable, this is where both the $_GET and $_POST come from and let us know how it goes... Scott F. Chris Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When in IE, submitting any form on our https page, the post variables intermittantly don't come through. The get variables come through fine. Just not the $_POST variables. I have tried everything to get this to work. Everything was working fine but it seems after we updated IE with the last critical updates this started to become an issue. We have rebuilt servers, and installed apache+modssl+php from /usr/ports, as well as manually and have been unable to resolv this issue. We are using a generic installation of apache+modssl+php with the included php.ini, only modifications being Register_globals on and safe_mode off We have also tried backing down to an earlier version of php and apache (php 4.3.1, modssl 2.8.15 and apache 1.3.28, which we were running before the rebuild) Netscape seems to work fine. Once again, this only seems to be happening on secure pages. We have tried on multiple workstations, and our customers seem to be effected by this too. Does anyone know what this might be? possibly an IE bug? Any help would be apreciated. Thanks! :) Chris Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache+modssl+php problem??? possible IE bug?
Did you try print_r($_SESSION); to see if anything is getting into the buffer? Chris Wilson wrote: When in IE, submitting any form on our https page, the post variables intermittantly don't come through. The get variables come through fine. Just not the $_POST variables. I have tried everything to get this to work. Everything was working fine but it seems after we updated IE with the last critical updates this started to become an issue. We have rebuilt servers, and installed apache+modssl+php from /usr/ports, as well as manually and have been unable to resolv this issue. We are using a generic installation of apache+modssl+php with the included php.ini, only modifications being Register_globals on and safe_mode off We have also tried backing down to an earlier version of php and apache (php 4.3.1, modssl 2.8.15 and apache 1.3.28, which we were running before the rebuild) Netscape seems to work fine. Once again, this only seems to be happening on secure pages. We have tried on multiple workstations, and our customers seem to be effected by this too. Does anyone know what this might be? possibly an IE bug? Any help would be apreciated. Thanks! :) Chris Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache - Previewing Pages with Dreamweaver
To use LIVEDATA in Dreamweaver you need: ( You are at Windows environment. ) 1 ) Apache server running ( normaly as a service ); 2 ) PHP installed and configured; 3 ) MySQL installed; 4 ) Dreamweaver configured for the server model PHP/MySQL. Some pages are not shown correctly in LIVEDATA ( localy ); If you run 2 servers from the same machine ( IIS and Apache ) you have to modify the the port to which the Apache listens. --- zerof - Freedomware [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] P.S. Should I go ahead and install PHP, or should I wait until I'm able to preview pages on my new Apache server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache - Previewing Pages with Dreamweaver
P.S. Should I go ahead and install PHP, or should I wait until I'm able to preview pages on my new Apache server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2 and PHP
Radek Zajkowski wrote: A few months back the official PHP website still warned againts PHP and Apache 2. I am wondering about the current status of these two technologies when used together. I am about to configure a web server and was going to use Apache 1.3 with PHP4+ as opposed to Apache 2 with PHP4+. What are your opinions, thoughts and experiences. I've been using apache 2.0 and php 4.x for quite some time now, and have really only seen very minor problems. I did run into some odd problem a while back, and asked about here - got the standard message about don't expect php to work in apache 2.0. It was something to do with error-handling and timeout, IIRC. Why not go with Apache 2.0? If you should run into some showstopper, revert to 1.3 - it's not that much of an effort (provided you don't start using apache 2.0-only features). /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter using XSLT. http://www.dansklisten.org -- for alle danskere i udlandet. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache/web site question...
As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP URLs with most of the functions that take a filename as a parameter. In addition, URLs can be used with the include(), include_once(), require() and require_once() statements. http://us4.php.net/manual/en/features.remote-files.php -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org Bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi... a very basic (i hope) question... i know i can have a web page that uses PHP/ASP/Etc... and i can do a kind of include, such that i can incorporate content/text from another file. i'm curious to know if there is a way to do that such that i can incorporate text from a file on another server on a separate domain/IP address??? any examples/sample pages demonstrating this would be helpful!!! I would like to be able to accomplish this from within the apache httpd.conf file if possible, where i simply define a website/page and the httpd.conf directive points to the file on the separate PC. If this isn't possible, I'll take the PHP/ASP/Etc.. approach where I can include a file that resides on another completely different server/PC... thanks... bruce douglas [EMAIL PROTECTED] (925) 866-2790 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache logs to keep $_POST values
no, that's (partially) the idea of a POST. Eg, if a login script was done under SSL using a http GET, even if you were using 1 way crypt on the password, the cleartext would still be logged, which is undesirable. besides, how would you log a multi-part mime upload file in POST? The only way I can think of is if you write your own/find an apache mod. (which ignores multi-part mimes) Bogdan Albei [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there any way to log the $_POST values passed to the PHP scripts in Apache's access log? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.x and PHP
Miguel Angelo wrote: (B (B Is PHP capable of running on Apache 2.x and if so what version ? (B And is it stable ? (B (B (BPHP will run on Apache 2 but ... (B (B#1 Apache 2 is multi-threaded whereas PHP is not. You need to turn (BApache 2's multi-threading off. (B (B#2 Turning Apache 2's multi-threading off pretty much loses any (Bperformance gains Apache 2 has over Apache 1.2.X (B (B#3 I'm not 100% sure that even with multi-threading off PHP is 100% stable. (B (BConclusion: (B (BIf you want to use PHP on a production server don't use Apache 2. (B (BMy 2 cents, (B (BJean-Christian Imbeault (B (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.x and PHP
Jean-Christian Imbeault [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Miguel Angelo wrote: Is PHP capable of running on Apache 2.x and if so what version ? And is it stable ? PHP will run on Apache 2 but ... #1 Apache 2 is multi-threaded whereas PHP is not. You need to turn Apache 2's multi-threading off. #2 Turning Apache 2's multi-threading off pretty much loses any performance gains Apache 2 has over Apache 1.2.X #3 I'm not 100% sure that even with multi-threading off PHP is 100% stable. Conclusion: If you want to use PHP on a production server don't use Apache 2. May I add this little note from the PHP installation txt file : ATTENTION: Apache 2 Users At this time, support for Apache 2 is experimental. It's highly recommended you use PHP with Apache 1.3.x and not Apache 2. (...) -- Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.x and PHP
Ivo Fokkema wrote: (B (B May I add this little note from the PHP installation txt file : (B (B (B ATTENTION: Apache 2 Users (B (BAt this time, support for Apache 2 is experimental. It's (Bhighly recommended you use PHP with Apache 1.3.x and not (BApache 2. (B (...) (B (B (BHum ... I think that pretty much sums it all up ;) (B (BJean-Christian Imbeault (B (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache + php + MS active directory
Yip... Investigate... LDAP Ezra Nugroho [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Now, this is a rather unlikely configuration, but ... I am working on a linux based web work based on apache and php, but the authentication system on site is based on MS active directory. Does anyone know if apache + php can be configured to authenticate users through active directory? Is it possible to write htaccess files that queries MS active directory? Can we treat MS active directory just like any other LDAP, i.e. is it LDAP V2 compliant? I value any response. Thanks, --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.431 / Virus Database: 242 - Release Date: 17/12/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache problem......
This seems to be a browser problem, as I often get similar errors when trying to access sites with port numbers. That looks like an IE error.. and I know I have the same problem with Mozilla. Anil Garg wrote: hi in my httpd.conf i have added a virtual host as: VirtualHost 10.70.0.215:90 # General setup for the virtual host DocumentRoot /netvcr/www/niksun ServerName niksun.com #ServerAdmin [EMAIL PROTECTED] ErrorLog |/usr/local/sbin/rotatelogs /var/log/httpd-error.log 172800 10 TransferLog |/usr/local/sbin/rotatelogs /var/log/httpd-access.log 172800 10 /VirtualHost but now if from browser i try to access http:10.70.0.215:90 the things go fine...but if i dont type 'http' and just type 10.70.0.215:90 in the browser.i get the following error message: The page cannot be displayed The page you are looking for might have been removed or had its name changed. -- Please try the following: a.. Open the s: home page, and then look for links to the information you want. b.. If you typed the page address in the Address bar, make sure that it is spelled correctly. -- Can someone one tell me when this error comes. Thanx and regards anil p.s. php,query, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache not parsing without .php on url?
It seems to me that the answer is in your own posting AddType application/x-httpd-php .php .php the only type that will be served by php if you add AddType application/x-httpd-php .txt then txt will be also served regards Ivo Stefan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I have a new Apache 2.0.40 with PHP 4.2.3 installation on a Solaris x86 box. Configered in httpd.conf with: AddType application/x-httpd-php .php and LoadModule Parsing url´s with .php works fine, but i can´t figure out why it dosen´t work if i leave out the .phpextension in the url? This works in my old apache 1 installation.! The file is named test.php in the abc directory. http://my.server.se/abc/test.php; works, but not http://my.server.se/abc/test; Any tips in what i missed out in configuration or how to fix this would be appreciated. best regards, Stefan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.0
Lars Hecking wrote: Hi all, I'm setting up a test server with Apache 2.0.40 and php. I downloaded the latest php4 snapshot, compiled and installed it (a real PITA, but I managed), added LoadModule php4_module modules/libphp4.so and AddType application/x-httpd-php .php to httpd.conf, but my browser still doesn't show a php test page, it rather prompts for download. Add the following to the bottom of your httpd.conf FilesMatch \.php$ SetOutputFilter PHP SetInputFilter PHP /FilesMatch HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache 2.0
Add the following to the bottom of your httpd.conf FilesMatch \.php$ SetOutputFilter PHP SetInputFilter PHP /FilesMatch No luck. error_log: [Wed Sep 04 15:01:44 2002] [notice] Apache/2.0.40 (Unix) mod_ssl/2.0.40 OpenSSL/0.9.6g PHP/4.3.0-dev configured -- resuming normal operations access_log: 10.1.65.81 - - [04/Sep/2002:15:01:51 +0100] GET /home/lhecking/test.php HTTP/1.1 304 0 Do I need to do something special to generally enable such filters? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache 2.0
No luck. error_log: [Wed Sep 04 15:01:44 2002] [notice] Apache/2.0.40 (Unix) mod_ssl/2.0.40 OpenSSL/0.9.6g PHP/4.3.0-dev configured -- resuming normal operations access_log: 10.1.65.81 - - [04/Sep/2002:15:01:51 +0100] GET /home/lhecking/test.php HTTP/1.1 304 0 Found the problem: following the PHP INSTALL document, I put php.ini into $prefix/lib. But I was using the --with-config-file-path configure option to search for it in apache's conf directory (I'm using the same meta- configure script for php across all servers - why I set the conf file path up like this in the first place, I can't remember). Sorry for bothering everyone :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Please help me with my trouble. This is not php trouble but trouble with apache and perl scripts. How I configure apache (httpd.conf) for running pearl script in web page. If I create script with some name (e.g. test.pl) and if in www expoler write http://server/test.pl result is source code of script. But I need result of this script. You probably should be asking this in an Apache newsgroup or mailing list. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2.0.40 and php as module
I have had the same problem under Win2K. My understanding is that PHP does not yet work well (at all, in this case) with Apache2. Instead, install Apache 1.3. The console window is a bit annoying (would have liked to run it as a service), but it does work. :) --- Seairth Jacobs [EMAIL PROTECTED] George E. Papadakis [EMAIL PROTECTED] wrote in message 08f401c24772$3e5fe130$07dbdbc2@phaistonian">news:08f401c24772$3e5fe130$07dbdbc2@phaistonian... Hi , I am trying to install Apache 2.0.40 with the latest php build as a module (windows xp) yet it just wont work. Though I tried all the tricks and possible scenarios no luck. Does anyone have anyidea why I am getthing this frustrating Cannot load D:/Apache/php/sapi/php4apache2.dll into server: The specified procedure could not be found. message? Thanks in advance. -- georgep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache 2 support broken?
With php 4.2.2 I get this when trying to compile with apache 2 support: I grabbed a CVS version of PHP and during configure it lets me know that I need apache 2.0.40 -- since the latest release of Apache 2 is 2.0.39 I'm not sure what to do there.. Does that mean the latest apache 2 devel source? Someone toss me a clue stick please! Yes, if you want Apache 2.0 you have to be on the bleeding edge (CVS) of both PHP and Apache. Not for the faint-hearted. YMMV. (There might be some kind of 2.0.40 snapshot somewhere of Apache, but I know for sure you need PHP CVS or it ain't gonna work.) -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already) to stereo CD-quality. Soundcard Recommendations? Software to handle the recording? Don't need fancy mixer stuff. Zero (0) post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo audio-to-disk. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: apache/oracle/php
In article 00cb01c2112c$a1530140$[EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi to all, 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. Does oracle not require you to pass appropriate user/pass when you accces it? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache, html, PHP and global variables
This was originally sent to the httpd-users mailing list, I'm moving it to the php-general list to bring it on-topic and because I think it's something worth sharing. I'm also hoping I actually remembered the address for the php-general list since I typically post there via the newsgroup. On Thursday, May 30, 2002 at 7:34 AM, Peter [EMAIL PROTECTED] wrote: [...] I am designing a web site which has a number of pages. One of these provides the facility for the user to log onto a mysql database. Other web pages allow the user to query and update different tables in the database. [...] I used the mysql_pconnect function in the login page and assumed that the connection would automatically be available to all other pages in the site as hey are invoked, but find that I have to include it in every page that access the data base. mysql_pconnect creates a persistent database connection that survives across multiple page loads, however, the connection is NOT always available to all other pages. Specifically: 1. You still must call mysql_pconnect in each page that accesses the db. What mysql_pconnect does is avoid the overhead of reconnecting -- but you'll need to call it again on each page to get the connection handle. Read more at http://www.php.net/mysql_pconnect 2. If you are running your webserver in multiple processes (99% of the time this is true with Apache, which you are using) and the same user happens to be served by multiple processes, each process will require its own connection to the server -- which will be made the first time that process calls mysql_pconnect. Since your particular setup has a user logging into a mysql database (presumably with their own account instead of one shared db account that takes care of db management via your code), this means you can have a theoretical maximum of users * processes connections to your database. Make sure MySQL is configured to allow that many connections. (20 apache processes and 10 users is 200 connections that stick around a long time...it adds up real fast!). If the ability to raise the connection limit isn't available, you may want to use mysql_connect instead -- slightly slower, but you won't have to worry about unused connections lingering. (It's still possible to hit the limit, though, just not as likely.) -- Daniel Grace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache is not rendering php pages. Config problem?
There is no phpmodule in there, so I cant activate it. I did include some lines from my old config: AddType application/x-httpd-php .php4 .php3 .php AddType application/x-httpd-php-source .phps if you're using Apache 1.x you need to add: LoadModule php4_modulelibexec/libphp4.so or if you're using Apache 2.x LoadModule php4_modulemodules/libphp4.so Sven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache is not rendering php pages. Config problem?
leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich dann: Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: 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 die datei libphp4.so befindet sich auch definitiv nicht auf der maschine. Hab ich da was bei der compillierung falsch gemacht? Gruss Andy Sven Herrmann [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... There is no phpmodule in there, so I cant activate it. I did include some lines from my old config: AddType application/x-httpd-php .php4 .php3 .php AddType application/x-httpd-php-source .phps if you're using Apache 1.x you need to add: LoadModule php4_modulelibexec/libphp4.so or if you're using Apache 2.x LoadModule php4_modulemodules/libphp4.so Sven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache is not rendering php pages. Config problem?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of php and apache do you use? Andy wrote: | leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich | dann: | | Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: | 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 | | die datei libphp4.so befindet sich auch definitiv nicht auf der maschine. | Hab ich da was bei der compillierung falsch gemacht? | | Gruss Andy | | | Sven Herrmann [EMAIL PROTECTED] schrieb im Newsbeitrag | [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | |There is no phpmodule in there, so I cant activate it. I did include | |some | |lines from my old config: | |AddType application/x-httpd-php .php4 .php3 .php |AddType application/x-httpd-php-source .phps | | |if you're using Apache 1.x you need to add: |LoadModule php4_modulelibexec/libphp4.so | |or if you're using Apache 2.x |LoadModule php4_modulemodules/libphp4.so | | |Sven | | | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzcTU4ACgkQNcG5oyVditsjtwCdH5LLJ+mPJz27xiuZXDrESbeR gf4An3f37WvVJMcXuNPQmUIYyoHDbh/1 =MLof -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache is not rendering php pages. Config problem?
I did find the prob! So for all guys struggeling with the same one.. First install apache, then php! I did reinstall apache after php. After compiling php again it is up and running. Thanx guys, Andy Javier [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of php and apache do you use? Andy wrote: | leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich | dann: | | Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: | 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 | | die datei libphp4.so befindet sich auch definitiv nicht auf der maschine. | Hab ich da was bei der compillierung falsch gemacht? | | Gruss Andy | | | Sven Herrmann [EMAIL PROTECTED] schrieb im Newsbeitrag | [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | |There is no phpmodule in there, so I cant activate it. I did include | |some | |lines from my old config: | |AddType application/x-httpd-php .php4 .php3 .php |AddType application/x-httpd-php-source .phps | | |if you're using Apache 1.x you need to add: |LoadModule php4_modulelibexec/libphp4.so | |or if you're using Apache 2.x |LoadModule php4_modulemodules/libphp4.so | | |Sven | | | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzcTU4ACgkQNcG5oyVditsjtwCdH5LLJ+mPJz27xiuZXDrESbeR gf4An3f37WvVJMcXuNPQmUIYyoHDbh/1 =MLof -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Apache is not rendering php pages. Config problem?
That's strange.. I always compile in this order... 1. MySQL 2. PHP 3. Apache - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 11, 2002 9:10 AM Subject: [PHP] Re: Apache is not rendering php pages. Config problem? I did find the prob! So for all guys struggeling with the same one.. First install apache, then php! I did reinstall apache after php. After compiling php again it is up and running. Thanx guys, Andy Javier [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of php and apache do you use? Andy wrote: | leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich | dann: | | Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: | 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 | | die datei libphp4.so befindet sich auch definitiv nicht auf der maschine. | Hab ich da was bei der compillierung falsch gemacht? | | Gruss Andy | | | Sven Herrmann [EMAIL PROTECTED] schrieb im Newsbeitrag | [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | |There is no phpmodule in there, so I cant activate it. I did include | |some | |lines from my old config: | |AddType application/x-httpd-php .php4 .php3 .php |AddType application/x-httpd-php-source .phps | | |if you're using Apache 1.x you need to add: |LoadModule php4_modulelibexec/libphp4.so | |or if you're using Apache 2.x |LoadModule php4_modulemodules/libphp4.so | | |Sven | | | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzcTU4ACgkQNcG5oyVditsjtwCdH5LLJ+mPJz27xiuZXDrESbeR gf4An3f37WvVJMcXuNPQmUIYyoHDbh/1 =MLof -END PGP SIGNATURE- -- 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] Re: Apache-2.0.35 + 4.2.0RC4: not seeing index.php
I'm guessing that you've set the default directory index in the conf file for apache2 as follows. Directory Index index.html index.php ??? If I'm right, then change that to Directory Index index.html Directory Index inde.php Every new index add a new directive on a new line. Works for me. Cheerz David Jackson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to trouble shoot a problem with a site hosted on a local ISP. They're running Slackware-8.0,apache-2.0.35 and PHP4.2.0RC4 and virtual hosting? The problem is the site not seeing index.php as default directory index? The SA assured me that both the DirectoryIndex and AddType are setup up correct? My question is what do they need todo to correct this, and how can I recreate this error? I'm running Slackware-8.0, Apache-2.0.35 and PHP4.2.0? Also I beleive there maybe some secruity issues with their PHP configure, phpinfo() returns the following for Configure Command (NO --enable-track-vars or --enable-force-cgi-redirect): './configure' '--with-mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--prefix=/usr/local/php4' Thanks in advance, David Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache-2.0.35 + 4.2.0RC4: not seeing index.php
Vins -- Thanks very much for your reply, I think your really close to the answer. Remember were talking about an ISP/hosting company (I actualy don't work for them) using virtual hosting. Wouldn't a DirectiveIndex in the VitualHost /VituralHost section of the httpd.conf override the system directive? I'm guessing that you've set the default directory index in the conf file for apache2 as follows. Directory Index index.html index.php ??? Yes, my default index is setup on my local box this why. I don't have any problems with it seeing index.php as the default index page, but I not running virtual host. What are you thoughts on the security question raised reblow? Also I beleive there maybe some secruity issues with their PHP configure, phpinfo() returns the following for Configure Command (NO --enable-track-vars or --enable-force-cgi-redirect): './configure' '--with-mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--prefix=/usr/local/php4' Thanks in advance, David Jackson Thanks again for you time and knowledge. David Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: APACHE + SSL + PHP
I know I just wanna say that I use both these two switches...just borded to write them again --enable-module=ssl --enable-module=so -- Sapilas@/dev/pinkeye Septic Flesh [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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] Re: apache htpasswd win32
You could do it like this: exec( htpasswd -b $passwdfile $username $password ); /nico [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everybody I would like to know if somebody already wrote a script to allow apache user administration from php under Win32 All the scripts I found are made for linux (using crypt function) I tried to generate the password with the md5 function but it's not working perhaps I don't know how to use it. Could you help me ? Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Apache Server Side Includes mixed with PHP pages
On Wed, 27 Feb 2002, Richie Chauhan wrote: !--include virtual=/includes/header.html-- ?php echo Hello; ? !--include virtual=/includes/footer.html-- FYI I think your SSI syntax is wrong, it should be !--#include virtual=/includes/header.html -- TjL ps -- I emailed Richie offlist that my experience with PHP was that it was MUCH faster than SSI, fwiw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Apache Server Side Includes mixed with PHP pages
Yes, and don't put a space between hash (#) and INCLUDE. I've been cought out before ;) [TK] -Original Message- From: Timothy J. Luoma [mailto:[EMAIL PROTECTED]] Sent: Thursday, 28 February 2002 3:02 PM To: Richie Chauhan Cc: [EMAIL PROTECTED] Subject: [PHP] Re: Apache Server Side Includes mixed with PHP pages On Wed, 27 Feb 2002, Richie Chauhan wrote: !--include virtual=/includes/header.html-- ?php echo Hello; ? !--include virtual=/includes/footer.html-- FYI I think your SSI syntax is wrong, it should be !--#include virtual=/includes/header.html -- TjL ps -- I emailed Richie offlist that my experience with PHP was that it was MUCH faster than SSI, fwiw -- 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] Re: Apache virtualhosts with different user
You could also run separate instances of the httpd binary with different configs telling them what ip/port to bind/listen to...then run the server as that user... not very efficient for a lot of users, but it would work for a small set. On Wed, 9 Jan 2002, Rich Buggy wrote: if I define 'user' in virtualhost section of apache's httpd.conf, then my cgi scripts will be running as 'user' if suexec has been set up correctly. It's okay. But how can I tell apache to run the whole virtualhost as 'user'? Including accessing html files, and especially php. In 1.3 you can't. Last I heard version 2 was supposed to include something that would let you do this. Is it possible somehow? Having read the apache docs, I haven't found anything useful, but there must be a solution if I don't want my users to run php scripts as www-data. Run PHP as a cgi instead of a module. The PHP docs tell you how Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Apache 2.0.28 and PHP 4.0.6
Hi Lars, I can't get the 2 to compile together. I think there's been too many changes in Apache 2.x.x for php 4.0.6 to work with it. A CVS version of PHP might work though. Anyway, if you want to give it a try, configure PHP like this: ./configure --with-apxs2=/path/to/apxs --with-whatever-else Good luck, Tyler Longren -- 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] Re: Apache 2.0.28 module
Jobarr wrote: I need a build of PHP that can be used as a module with Apache 2.0.28 beta. Please do not massively cross-post to the various php.net mailinglists or newsgroups. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- 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] Re: Apache 2.0.28 module
On Mon, Nov 19, 2001 at 11:34:41AM +0100, Sebastian Bergmann wrote: Jobarr wrote: I need a build of PHP that can be used as a module with Apache 2.0.28 beta. Please do not massively cross-post to the various php.net mailinglists or newsgroups. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ Has the PHP group contected the Apache Group on this matter. The Apache Group are a swell bunch of people. -- 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] -- Member - Liberal International On 11 Sept 2001 the WORLD was violated. This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] Society MUST be saved! Extremists must dissolve. Merry Christmas 2001 and Happy New Year 2002. -- 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] Re: apache+php overloading when user clicks many times on the same link
Peter Frlicka wrote: Hello. What does apache + php do if the user refreshes a page 10 times in a while before the scripts finishes? do all 10 .php scripts finish or do the first 9 get aborted? how can i solve the problem that when someone clicks a lot on a link (always the same link) the server gets overloaded (because the action taken in the script is somehow memory consuming). i need to ensure a user (www) can run only one instance of a .php script. Peter Frlicka See http://www.php.net/manual/en/features.connection-handling.php I'm worried about why the user is clicking so much. If your connection/processing really is going to take a long time you could consider sending them the first bit of your page as quickly as possible using flush(). That will take away any buttons/links they've clicked on (but not Refresh), and at least make them feel something is happening! However multiple clicking is a general problem with no great solutions. It's a particularly important issue for on-line E-commerce applications when it is not only vital that the php script complete but also that it should not be repeated. For that you almost have to use a database to record transactions (or at least the session variables which identify a transaction). I typically do the following : 1. set ignore_user_abort 2. check to see if we have a record of this transaction, if we do check to see if it is complete. If it's complete take them to a results/end page, if it's not complete take them to a holding page with an automatic META-REFRESH to the same url. 3. if we have no record of the transaction, create one, do the work, mark the transaction as complete and show them the results/end page. If the user only clicks once, everything proceeds smoothly and they get their results page as normal. If the user clicks two or more times they go to a holding page with an automatic refresh which keeps showing the same holding page until the first script completes and the next refresh takes them to the results. This is basically a safe approach but it's significant work unless you really need it! George -- 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] Re: apache don´t understand php!!----¡¡apache no entiende php!!
Alejandro wrote: I have a problem:I have a php page wich runs well when I run it, but when I run a html page and links the php file, the source code is seen on the screen. It´s like apache wouldn't understand php!!. Any ideas? Thanks If the file ends in .html, and you have not used AddType in Apache's httpd.conf file to tell Apache to use PHP to read .html files, then you will see PHP source, cuz PHP isn't being told by Apache to process the file... Find your httpd.conf, search for AddType with the PHP setting, and uncomment it and/or add .html .htm .php3 .php .phtml etc to the end of that line. -- Like music? http://l-i-e.com/artists.htm -- 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] Re: apache + ftp!
on win32 i like g6ftp server Benjamin [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hey group! i have apache installed on an win2000 machine and now i need an good and stable ftp server! which one does i take! thank you, ben -- 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] Re: apache + ftp!
I personally would recommend Serv-U. Latest version seems greatly stable, beautiful GUI, multiple domain support, I've been using Serv-U for quite a few years now, and it's just *never* let me down! It could seriously benefit from comand-line account creation, which I may invent on my own. =) -- From PHPGalaxy.com, earn up to $10 per order selling our PHP Scripts and Software on your Site. http://www.phpgalaxy.com/aff/ Also, get a fast free POP3 email account, you @php.la at http://www.phpgalaxy.com/search/ -- 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] Re: apache + ftp!
on win32 i like g6ftp server I go along with this recommendation. Had some problems on 2k with serv-u M: -- 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] Re: apache + ftp!
do you know about cerberus-ftp? how is it? -- 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] Re: Apache + PHP + libswf problems
Try following the instructions for core dumps at http://bugs.php.net -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Edson Toshiya [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, October 04, 2001 12:46 PM Subject: Apache + PHP + libswf problems Hi, I've compiled PHP with swf support, the installation was normal but when I try to test the swf I got this on Apache error log: [Thu Oct 4 13:15:58 2001] [notice] child pid 27998 exit signal Segmentation fault (11) Any idea ? Regards, Edson T. -- 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] Re: apache 1.3.20 segfaults with php 4.0.6/midgard/imap
Vincent Stoessel wrote: I am trying to use php 4.0.6 with imap. midgard and mysql extentions compiled in. When I start apache I get information in the logs about many child proccesses dying. Yet I have plenty memory left and everthing else seems OK. Not a lot of traffic here at 3.27 am. I ran gdb and this is what I got: You need to build PHP with debug option (--enable-debug when you configure) Anyway, search bug report see if this problem is reported (hopefully it may be fixed) If this problem is not reported, get backtrace from debug enabled PHP core file and report this as a bug. Yasuo Ohgaki -- 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] Re: Apache Segmentation fault.
Check for and report bugs at http://bugs.php.net Also, you can get instructions there on generating a backtrace with detailed info of why Apache puked. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Bill Koch [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 7:39 AM Subject: Apache Segmentation fault. I am getting Apache errors everytime that I try and run a Java class I get a segmentation error. Here is the error from my log [Thu Aug 30 08:35:33 2001] [notice] child pid x exit signal Segmentation fault (11) I am running RH 7.1(2.4.2) Apache 1.3.19 with mod_ssl and OpenSSL, PHP is configured as follows: ./configure --with-mysql=/usr/local/mysql --with-pfpro=shared,/tmp/verisign/payflowpro/linux --enable-trackvars --with-apxs=/usr/local/apache/bin/apxs --with-java=/usr/java/jdk1.3.1 --with-zlib everything works fine except the Java. I have configured the Java before using Kaffe and everything ran fan. I switched to JDK1.3.1, and also configured PHP as a DSO instead of static in case I wanted to upgrade I didn't have to fight with my system all over again. I have read where php4.0.5 had this trouble and that several people switched to back to 4.0.4. Also is this a bug that needs reporting or is everyone well aware of it and I just need to change my set up. Any suggestions would be helpful. Bill -- 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] Re: apache processes memory use
Well, Thank you for the info. When I'm on the server by myself, there's no problem, the processes hanging around really don't matter the program runs fine. When I put over into public use on a (I assume) heavily utilized server I get emalloc errors. The 2 systems were made the same. I seem to have got it working for now. Unfortunately when I can use a database isn't up to me, so I guess I'll just keep tweaking things until I get the go ahead. Thank you, again watching apache processes (top), trying to track memory usage. It seems to vary size between 14M 16M vary RES from 12M to 14M. Is this varying normal? Is this size normal? (2400 Those numbers are normal and are inclusive of SHARED memory segments, so will add up way higher than actual memory usage. IE, they have virtually no real-world meaning. line program reading a 1400 row/29 col. spreadsheet into an array...yes, it is necessary to have the whole thing in the array at one time, at least, I can't figure out a way not to.) I For sure you could read one row at a time, put it into a database, and do virtually any sort of operation on it you could possibly need... Way more efficient. would think the same program ran repeatedly should require approx. the same memory each Give or take, but are there other pages being loaded/visited that use other resources, or are you the only surfer on this site?... time. Also, I seem to have apache processes hanging around for days. So that even running a little 4 line echo/sleep/echo program will pick up one of these rogue process id's then it appears that the 4 line program is running at 14M/12M now, that's just not possible. Is it normal for the process id's to hang around in sleep mode interminally like that? If I They aren't really actively using all that RAM. It's shared. You can set max_requests and other fun things in httpd.conf to kill off the older httpd processes if you really think they're no good anymore. And if they're sleeping, they aren't really using much of anything anyway. They won't wake up until you have multiple hits at the same time asking them to do something. Let the awake guy handle it is their motto, until there's a request where nobody's awake and not busy. restart apache, the processes of course die, but I can't do that constantly. Is there a way to free up the memory that I'm just not aware of? Or something I should be looking at that I'm not? I'm at a loss, I'm more likely to blame my code (only my 2nd php program) than a php/apache bug or something of the like. But I haven't a clue where to look. (changing the way I handled the array slightly using unset I did manage to save approx. 4M, but I'll need to save more than that as the spreadsheet grows). Eventually it may all go into a database, but not any time soon. Change your mind about that last sentence. Throw it into a database one row at a time, and you'll save yourself a lot of headache. The database stuff in PHP really is that easy, that you don't want to do anything remotely like database work without it. -- 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] Re: Apache/PHP File Upload problems
Thanks for the message Richard, I've been advised to upgrade to a new version (now running 4.0.6) and it works fine. Martin Richard Lynch wrote: If I try to submit a file for upload using the form using Netscape I get Document contains no data. If I do the same in IE5.0 it just waits forever. Looking at the apache server error_log file I appear to be getting a Segmentation Fault (11) each time I try and Post the contents of the form to the server. It should just work. Your page *IS* trying to return some HTML as well as dealing with the uploaded file, right?... With the segfault, read the instructions on http://bugs.php.net about generating a back-trace to submit. You may want to back off of the -dev version (development == untested) and go with an actual release. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Re: Apache/PHP File Upload problems
If I try to submit a file for upload using the form using Netscape I get Document contains no data. If I do the same in IE5.0 it just waits forever. Looking at the apache server error_log file I appear to be getting a Segmentation Fault (11) each time I try and Post the contents of the form to the server. It should just work. Your page *IS* trying to return some HTML as well as dealing with the uploaded file, right?... With the segfault, read the instructions on http://bugs.php.net about generating a back-trace to submit. You may want to back off of the -dev version (development == untested) and go with an actual release. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Re: apache processes memory use
watching apache processes (top), trying to track memory usage. It seems to vary size between 14M 16M vary RES from 12M to 14M. Is this varying normal? Is this size normal? (2400 Those numbers are normal and are inclusive of SHARED memory segments, so will add up way higher than actual memory usage. IE, they have virtually no real-world meaning. line program reading a 1400 row/29 col. spreadsheet into an array...yes, it is necessary to have the whole thing in the array at one time, at least, I can't figure out a way not to.) I For sure you could read one row at a time, put it into a database, and do virtually any sort of operation on it you could possibly need... Way more efficient. would think the same program ran repeatedly should require approx. the same memory each Give or take, but are there other pages being loaded/visited that use other resources, or are you the only surfer on this site?... time. Also, I seem to have apache processes hanging around for days. So that even running a little 4 line echo/sleep/echo program will pick up one of these rogue process id's then it appears that the 4 line program is running at 14M/12M now, that's just not possible. Is it normal for the process id's to hang around in sleep mode interminally like that? If I They aren't really actively using all that RAM. It's shared. You can set max_requests and other fun things in httpd.conf to kill off the older httpd processes if you really think they're no good anymore. And if they're sleeping, they aren't really using much of anything anyway. They won't wake up until you have multiple hits at the same time asking them to do something. Let the awake guy handle it is their motto, until there's a request where nobody's awake and not busy. restart apache, the processes of course die, but I can't do that constantly. Is there a way to free up the memory that I'm just not aware of? Or something I should be looking at that I'm not? I'm at a loss, I'm more likely to blame my code (only my 2nd php program) than a php/apache bug or something of the like. But I haven't a clue where to look. (changing the way I handled the array slightly using unset I did manage to save approx. 4M, but I'll need to save more than that as the spreadsheet grows). Eventually it may all go into a database, but not any time soon. Change your mind about that last sentence. Throw it into a database one row at a time, and you'll save yourself a lot of headache. The database stuff in PHP really is that easy, that you don't want to do anything remotely like database work without it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Re: Apache/phpinfo
http://www.php.net/manual/en/function.php-sapi-name.php On Tue, 24 Jul 2001, Tom Malone wrote: How can you tell if your host has PHP installed as mod_php or in CGI mode on the webserver (Apache in my case)? Is it in phpinfo.php? If so, where - I couldn't find it... Thanks Tom Malone -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: apache not handling 404 errors for .php pages
I get this too. I think it is because I'm running cgi php. Think it is a 500 error. Easiest fix would to also create a custom 500 error handler. Ken Gregg Enhanced Data Systems, Inc. http://www.rwre.com for the best in Southwest Oregon Real Estate Scott wrote: I have custom 404 error handling setup on my linux apache box, however, there's a problem with files that have a PHP extension. it seems that apache itself does not check for the existence of the requested .php file and fires up PHP no matter what. if PHP does not find the requested file, it'll bail out with that dorky looking Internal Server Error *NOT* the custom error handler that apache uses for non-php files example: notexists.html and notexists.php both do not exist http://server.com/notexists.html will show me the custom 404 page http://server.com/notexists.php will show me the Internal Server Error, becuase apache fired up PHP and passed in notexists.php without checking for the existence of notexists.php first. A possible solution that comes to mind is to auto_prepend a script that will check for the existance of the file that PHP is attempting to execute, and die gracefully if it does not exist on the server but that would be a bad kludge hack (if it even works at all) anyone have a more elegant solution? -- 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]