Issue in using php5_module module.
Hello, I'm trying to setup PHP module with 64-bit Apache 2.4.4, and also load a C++ module to do the HTML filtering. As I understand the php module acts like an interpreter and translates the php into HTML and then invokes the HTML output filter. Heres my setup - 1. I downloaded Apache from http://www.apachelounge.com/download/win64/ - httpd-2.4.4-win64.zip which they have built using Visual Studio 2010 2. I downloaded PHP from http://www.apachelounge.com/viewtopic.php?p=24538 - php-5.4.15-Win32-VC9-x64.zip 3. Changed httpd.conf file - LoadModule php5_module C:/PHP/php5apache2_4.dll LoadModule my_filter modules/MyFilter.dll AddOutputFilterByType MyFilter text/html text/php IfModule dir_module DirectoryIndex *.php index.html /IfModule IfModule mime_module AddType application/x-httpd-php .php /IfModule 4. Renamed php.ini-development to php.ini and made the below changes- short_open_tag = On session.save_path = c:\tmp My original PHP file - !doctype htmlhtmlhead/headbody?php Print Hello from PHP; ?/body/html With these changes, when I start httpd.exe and try to launch a simple php file shown above, from the browser, the first time I see that my filter module gets the correct php data from php file in the buckets. But when I try to open the same php file second time, I see that there are some extra strings appended to the original php file contents and sent to my filter module in the buckets. So in my filter when I read php data from the bucket I get the php data and some additional strings appended to the php data like below - !doctype htmlhtmlhead/headbodyHello from PHP/body /html6.26%20(KHTML,%20like%20Gecko)%20Version/6.0%20Mobile/10A5355d %20Safari/8536.25 HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Any help is highly appreciated. Thanks.
Re: Issue in using php5_module module.
On 05/28/2013 08:38 AM, Sindhi Sindhi wrote: [SNIP] With these changes, when I start httpd.exe and try to launch a simple php file shown above, from the browser, the first time I see that my filter module gets the correct php data from php file in the buckets. But when I try to open the same php file second time, I see that there are some extra strings appended to the original php file contents and sent to my filter module in the buckets. So in my filter when I read php data from the bucket I get the php data and some additional strings appended to the php data like below - !doctype htmlhtmlhead/headbodyHello from PHP/body /html6.26%20(KHTML,%20like%20Gecko)%20Version/6.0%20Mobile/10A5355d %20Safari/8536.25 HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Any help is highly appreciated. Thanks. Are you sure it's a problem with the php5_module and not your filter? I only ask because the php5_module has been installed in numerous locations throughout the world, with custom modules (including an output filter of mine that wraps the page into a template), without issue. I had run into a similar problem eons ago (I believe about 10 years or so). In fact, I have one question that (if you answer honestly) will probably tell you where your problem is. Are you NULL-terminating all of your strings when you set them up at the beginning of the transaction? If you say yes, please send copies of code. If you say no, please fix and try again. When I ran into that problem so long ago, I was mistakenly working under the assumption that the strings being passed around were NULL-terminated, which is not always the case. Joe -- http://www.silverhawk.net/
Re: httpd buildbot
+1 On May 24, 2013, at 4:11 PM, William A. Rowe Jr. wr...@rowe-clan.net wrote: On Fri, 24 May 2013 21:42:58 +0200 Guenter Knauf fua...@apache.org wrote: I dont know who has access / maintains the httpd buildbot, but I would like to have it build with maintainer mode; this could be useful to avoid that code we dont want slips in, f.e. var declarations after statements ... We could do both... should be straightforward.
Re: Time for 2.4.5 ??
On May 24, 2013, at 4:22 PM, William A. Rowe Jr. wr...@rowe-clan.net wrote: On Wed, 22 May 2013 14:20:03 -0400 Jim Jagielski j...@jagunet.com wrote: I would be nice, imo, to start thinking about a 2.4.5 release Real Soon Now. We have lots of stuff added and fixed in 2.4.5-dev and even more fun stuff in STATUS. I'll RM. What is your thought on RSN? I was thinking a TR sometime next week.
Re: Time for 2.4.5 ??
On Wed, May 22, 2013 at 02:20:03PM -0400, Jim Jagielski wrote: I would be nice, imo, to start thinking about a 2.4.5 release Real Soon Now. We have lots of stuff added and fixed in 2.4.5-dev and even more fun stuff in STATUS. Let me again ask for backports of r1368121, r1388447 and r1389339 from trunk; they are required to build mpm-itk without patching Apache. Surely when it is acceptable to copy all of mod_ssl from trunk, it must be possible to add three small hooks? :-) /* Steinar */ -- Homepage: http://www.sesse.net/
Re: Time for 2.4.5 ??
On 28 May 2013, at 3:33 PM, Steinar H. Gunderson sgunder...@bigfoot.com wrote: Let me again ask for backports of r1368121, r1388447 and r1389339 from trunk; they are required to build mpm-itk without patching Apache. Proposed. Regards, Graham -- smime.p7s Description: S/MIME cryptographic signature
Re: profiling an apache httpd -X process
On Tue, 28 May 2013 09:13:46 +0530 kalyan sita kalyansit...@gmail.com wrote: I am able to debug the httpd -X process using eclipse gdb debugger But I am not able to profile the same. I am able to profile only a command line application . Can anyone pl help me out in profile the application with httpd -X process. You probably wouldn't want to; if you are profiling for performance and real-world computation, -X will lie to you. You would simply need to enforce follow-forks in the profiler so that all of the child processes are also metered. Doing this as part of some 'build' probably won't tell you what you need to know, you really want profiling of typical operations.
Re: Time for 2.4.5 ??
On Tue, May 28, 2013 at 04:14:55PM +0200, Graham Leggett wrote: Let me again ask for backports of r1368121, r1388447 and r1389339 from trunk; they are required to build mpm-itk without patching Apache. Proposed. Thanks! /* Steinar */ -- Homepage: http://www.sesse.net/