The Apache Haus Forum

Forum Topics => News & General Discussion => Topic started by: Gregg on June 02, 2011, 04:31:00 AM

Title: Apache 2.3.12-beta Released
Post by: Gregg on June 02, 2011, 04:31:00 AM
The Apache Haus has released our distribution of Version 2.3.12-beta of the Apache HTTP Server. Built with APR 1.4.5, APR-Util 1.3.12, OpenSSL 1.0.0d.

Apache 2.3.12-beta is simply the next in a series of beta versions.

Binaries are available on our Downloads Page (http://www.apachehaus.com/cgi-bin/download.plx).
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on June 02, 2011, 12:16:00 PM
Thank you Gregg.  Grabbed it over the weekend.

- S
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on June 03, 2011, 05:59:21 AM
Yeah, the EU mirror was down when I was uploading, was waiting for it before announcing. That reminds me, need to get it on that mirror still.
Title: Re: Apache 2.3.12-beta Released
Post by: mbwebsolutions on June 19, 2011, 12:43:37 PM
thanks for this
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on June 28, 2011, 02:47:30 PM
Is there a version of PHP that works with the 2.3.12 build?

Thanks

- Scott
Title: Re: Apache 2.3.12-beta Released
Post by: mario on June 28, 2011, 10:46:32 PM
Quote from: DnvrSysEngr on June 28, 2011, 02:47:30 PM
Is there a version of PHP that works with the 2.3.12 build?

Thanks

- Scott

Any with fcgid. In early 2.3.x I wasn't able to compile mod_php
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on June 29, 2011, 12:20:23 AM
Mario:

I got Mod_fcgid configured and loaded.  Just not having any luck with PHP.  Tried 5.3.6 and 5.3.7 RC1 with my install of Apache 2.3.12.  No luck.  Just does not work.  Any tips and/or tricks to get it to work would be greatly appreciated.

- Scott
Title: Apache 2.3 and PHP
Post by: DnvrSysEngr on July 01, 2011, 02:00:18 AM
Anyone got it to work?  I have it installed and configured correctly but get errors starting.  Perhaps PHP 5.3.x and 5.4 Alpha are only for Apache 2.2?
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 01, 2011, 05:20:25 AM
Actually I was playing with this today

gotta get on my laptop to show what I was seeing in my error log.

ok, on the lappy and here is what I am seeing with 5.3.6

[Thu Jun 30 18:13:39.829497 2011] [:info] [pid 4368:tid 944] mod_fcgid: server localhost:c:/php53ts/php-cgi.exe(3008) started
[Thu Jun 30 18:13:46.901497 2011] [:warn] [pid 4368:tid 1536] (OS 109)The pipe has been ended.  : [client ::1:49243] mod_fcgid: get overlap result error, referer: http://localhost/
[Thu Jun 30 18:13:46.901497 2011] [core:error] [pid 4368:tid 1536] [client ::1:49243] Premature end of script headers: phpinfo.php, referer: http://localhost/
[Thu Jun 30 18:13:51.012497 2011] [:info] [pid 4368:tid 944] mod_fcgid: process c:/php53ts/php-cgi.exe(3008) exit(communication error), return code 255

I have no problems with 5.2.x

Personally, I hate php ... I wish the world had not jumped on this beast like it did back in ~'98 ... it has been nothing but a major problem to the internet as a whole since.

Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 01, 2011, 04:47:40 PM
I have not tried PHP 5.2 flavors.  When I run Apache 2.2.19, I can run PHP 5.3.x and 5.4 Alpha builds.  The minute I go to Apache 2.3.12, POOF, PHP ceases to work (basically stating a module in PHP5xxx.dlll cannot be located.

- S
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 02, 2011, 02:58:54 AM
well yeah, you cannot load php5apache2_2 in APache 2.3, which is why we need fcgid. The problem is IMO fcgid doesn't like PHP5.3 or the other way around.
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 02, 2011, 03:01:21 AM
back somewhat on topic to this thread, Apache 2.3.13 test source was released a couple days ago. It will not run on XP (and I assume Server 2003), it does run on my x86 Vista without problems other than some known ones still needing repair.
Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 02, 2011, 05:58:43 AM
Quote from: Gregg on July 01, 2011, 05:20:25 AMok, on the lappy and here is what I am seeing with 5.3.6
...

I have no problem with your httpd 2.3.12 x86 + fcgid + official php 5.3.6 nts. Not tested much, but it definitely does not die on phpinfo(). But I'm sure that I remember messages like "get overlap result error" and "Premature end of script headers", I had "lots of fun" with them at the beginning when I was trying to become friend with mod_fcgid. If only I remembered what was the solution...

QuotePersonally, I hate php ...

Oh come on, php is lovely! ;) Personally I've gone as far as using it not only for web, but also as my primary scripting language for various common tasks (all kinds of file processing and such). What I like most is the simplicity. By the time I'd barely figure out how to do the task in any other scripting or non-scripting language, I'm already finished when using php.

What I don't like is mod_fcgid. I tried hard, but that thing clearly doesn't like me, so now it's mutual. It's mostly its fcgi child process management and request queuing that we can't agree on. I hope that different approach using mod_proxy_fcgi will be the right solution for me, but I didn't have time to play with it yet.
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 03, 2011, 12:38:08 AM
Definitely a no go for running PHP 5.3 or 5.4 with Apache 2.3.12.  I have just decided to revert back to 2.2.219 and PHP 5.3 and 5.4 work just fine.
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 03, 2011, 03:39:07 AM
Here's what I'm seeing in XP

http://www.apachehaus.net:81/misc/phpsucks.gif
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 03, 2011, 04:54:27 PM
I am running PHP 5.4.0 Alpha2 on Windows7.  Have not tried PHP on an XP machine.
Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 03, 2011, 06:33:13 PM
You're right, on XP it does that. But it's not php to blame, but rather wrong configuration of mod_fcgid, specifically path separators in enviromental variables. We're on Windows and they use backslashes. Apache and php don't care and it seems even Windows sometimes take forward slashes, but not always. Windows XP and SxS trying to run php-cgi.exe do care.

This helped here:FcgidInitialEnv SystemRoot "C:\\Windows"
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 03, 2011, 10:44:55 PM
OK, I will try that. If it's not a PHP issue then it is a VC9 issue. I am running 5.2.17 just fine on XP and Vista, I do not have a Win7 box. I was running 5.3.5 but it was a VC6 build, that ended at that version.
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 03, 2011, 10:50:26 PM
I got mod_fcgid configured, but no luck getting PHP 5.3 or 5.4 to work with Apache 2.3.12. 

Reverted back to Apache 2.2.19 and PHP 5.3 and 5.4 work just fine without having to use mod_fcgid.
Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 03, 2011, 11:46:28 PM
It is related to VC9, because unlike VC6 it loads CRT dlls using manifests and clearly that mechanism is more picky on XP than on Win7. But I wouldn't say it's bug, the fact is that the proper path separator is still backslash.
Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 03, 2011, 11:46:58 PM
Quote from: DnvrSysEngr on July 03, 2011, 10:50:26 PM
I got mod_fcgid configured, but no luck getting PHP 5.3 or 5.4 to work with Apache 2.3.12.

Any interesting error messages or something?
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 04, 2011, 01:52:02 AM
SOB:

As PHP 5.3.x and 5.4Alpha appears to be only available for Apache 2.2.x, the only module I can use is php5apache2_2.dll when trying to get PHP to work with Apache 2.3.12.  When I try to to load it as a module, it says that it cant be found.
Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 04, 2011, 03:12:22 AM
It seems to be a small misunderstanding here, or at least it seems like it to me.

You can run PHP under Apache as:

a) internal module, using php2apache2_2.dll, but you can't currently do it with Apache 2.3, because the module is only for 2.2

b) as fast cgi under mod_fcgid, which means that php will run as separate php-cgi.exe processes (spawned by Apache)

So if you correctly configure php to run under mod_fcgid, you don't need the php2apache2_2.dll module any more.
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 04, 2011, 03:26:31 AM
Well, I tried the \\ and it made no difference on Vista, I'm assuming it will make none on XP either. I think it's deeper and I still think it is a PHP thing in 5.3 and how it interacts with different computers.

Devsys .. php5apache2_4 will be out soon in 5.4 it will be built for the 2.3/2.4 Apache's. That should solve lots of problems. I've never liked mod_fcgid, just it's needed to get any php in this new Apache.

php 5.2 is all I need so I can wait. I've never been one to care about being on the bleeding edge, it's always more a headache than hanging onto older but stable versions as long as one can. I stuck with Apache 1.3 up to 1.3.37 skipping the entire Apache 2.0 version.

Apache 2.3 is my first break from that thinking.
Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 04, 2011, 04:09:54 AM
Didn't it work with forward slashes on Vista? I have access to Win 2008 and it didn't complain there. And those should be basically the same systems.

Changing to backslashes should make difference only where it didn't work previously. For me it was only XP. Even Win 2003 was happy with forward slashes.
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 04, 2011, 04:27:49 AM
The laptop is Vista, it's where the stuff I posted from the error log was from. The XP box was where the dll loading dialog. I've never had luck with php vc9. I can get the vc6 php to work via fcgid but never have been successful with vc9 builds of it .. ever .. just one more reason I hate it stacked on the others  ;D
Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 04, 2011, 05:04:49 AM
Backslashes should fix dll loading problem on XP.

Errors from laptop are something else. As I said, I had lots of those too. It took some time watching php with Process Monitor, before I was able to fix it. But I don't remember what was the cause. It might have been some specific extension, but I'm not really sure. I was fully occupied by fighting the strong urge to throw whole computer out of the window, so I couldn't make notes. ;)
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 04, 2011, 07:54:11 AM
kind of a useless piece of crap if I cannot use the gd2 extension ... or any for that matter.
really .. php 5.3 was rushed .. and 5.4 I am sure is going to be same .. like Firefox the devs are going insane .. trying to pack in too much to quickly. not making sure things are stable before moving onto the next new thing. I love it .. it will create the end of it eventually.
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 04, 2011, 08:38:29 AM
OK .. XP is doing good, can even load the few needed extensions. Vista on the other hand, works so long as no extensions are loaded. It doesn't matter cause I do not use vista other than building Apache on it and quick testing. 
Title: Re: Apache 2.3.12-beta Released
Post by: Gregg on July 04, 2011, 08:43:07 AM
spoke too soon. it's same. no extensions all is fine .. load any one and it goes to hell in a hand basket. So I guess I'll just stick with 5.2 till there is a module to load in 2.3/2.4. I never liked running php through fcgid anyway. Never have had a problem with mod_php bringing down Apache and using the module is 5 times faster to respond than via fcgid.
Title: Re: Apache 2.3.12-beta Released
Post by: mario on July 04, 2011, 12:01:45 PM
Well the first calls are maybe slow. But after starting it is as fast as the module for me.
On my W2k8r2 with PHP 5.3.6 NTS VC9 I load

- mbstring
- mysql
- mysqli
- openssl
- pdo_mysql
- pdo_sqlite
- soap
- sockets
- sqlite
- sqlite3
- xmlrpc
- xsl


extension_dir = "/server2/php-nts/ext"

Title: Re: Apache 2.3.12-beta Released
Post by: Sob on July 04, 2011, 05:04:50 PM
I tried it on XP and W2k8, Apache 2.3.12, PHP 5.3.6 under mod_fcgid. Php.ini copied from php.ini-development.

At first any extension failed with popup:
QuotePHP Startup: Unable to load dynamic library 'C:\php\php_extname.dll' - The specified module could not be found.
The problem was obvious, even if PHP was in c:\php (my wasn't), extensions were in ext subdirectory. Giving full path to ext directory to extension_dir in php.ini helped.

After that I was able to load all extensions listed in php.ini, except few database ones (because of some missing dlls, but I believe that those would be present, if I had databases installed) and three that were listed in ini, but not present in ext directory (phar, pspell and zip), but two of those are now compiled in php.
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 04, 2011, 06:00:15 PM
SOB:

I am getting something similar to what you are showing.  I am going to reload Apache 2.3.12 and PHP on a test machine today and I will report later what I get (or don't get).  In the mean time, happy 4th everyone.

- S
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 04, 2011, 10:11:06 PM
Here is what I get when trying to run PHP 5.3 or 5.4 with Apache 2.3.12:

The Apache service named  reported the following error:
>>> httpd.exe: Syntax error on line 167 of C:/Program Files/Apache/conf/httpd.conf: Cannot load C:/Program Files/PHP/php5apache2_2.dll into server: The specified procedure could not be found.     .


mod_fcgid is configured and running and all is well until I try to run PHP.
Title: Re: Apache 2.3.12-beta Released
Post by: DnvrSysEngr on July 04, 2011, 11:08:12 PM
OK.  I got it figured out.  Mod_fcgid does what I need it to do --- it allows me to run PHP.  No need to load PHP as a module. 

Sorry everyone for being so slow to figure it out.

- S
Title: Re: Apache 2.3.12-beta Released
Post by: mario on July 05, 2011, 10:32:45 AM
Well the module for apache 2.4 will come soon. The PHP dev guys are working on it. I guess with the release of 2.4 it will be there.