Author |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
Posted: Mon 16 Jul '12 16:32 Post subject: How to build php5apache2_4.dll myself ? |
|
|
Hello Dears,
I've searched the web with no results on how to "How to build php5apache2_4.dll myself ?"
Fortunately I've reached user contributed patch that should be applied to the PHP source to add support for Apache 2.4, it's here:
https://bugs.php.net/patch-display.php?bug_id=62267&patch=php5.3-apache24.diff&revision=latest
I've applied this patch & build PHP from source on windows, but unfortunately I've got only "php5apache2_2.dll" & "php5apache2_3.dll", but not "php5apache2_4.dll"
Is there something missing in my steps? I'll appreciate your assistance...
Best Regards - Abdelrahman |
|
Back to top |
|
Xing Moderator
Joined: 26 Oct 2005 Posts: 49
|
Posted: Mon 16 Jul '12 16:57 Post subject: |
|
|
Download php5apache2_4.dll from Apachelounge and you are fine. |
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
Posted: Mon 16 Jul '12 17:32 Post subject: |
|
|
Hey, have you read topic's title?!!!
Quote: | How to build php5apache2_4.dll myself ? |
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
Posted: Tue 17 Jul '12 0:30 Post subject: |
|
|
That wasn't the issue, I found the solution here:
http://avapug.net/?p=227
Where the author mentioned to copy Apache 'include' & 'lib' folders to the dependencies folder of PHP build directory. That was the missing part in my steps. Now it's ok & I've built it successfully.
Thanks to you all for all of your appreciated suggestions. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3094 Location: Hilversum, NL, EU
|
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
Posted: Sun 05 Aug '12 5:28 Post subject: |
|
|
Well, it's compiled successfully, but never run!!
Apache service didn't run & giving the following error(s) in event log:
Code: | >>> httpd.exe: Syntax error on line 175 of /path/to/httpd.conf: Module "sapi\\apache2handler\\mod_php5.c" is not compatible with this version . |
Code: | >>> of Apache (found 20110619, need 20120211). Please contact the vendor for the correct version. |
httpd.conf line 175:
Code: | LoadModule php5_module ../../php/php-5.4.5/php5apache2_4.dll |
I've placed lib/include in correct path, applied the patch, compiled with success!!
What's wrong with it? Any suggestions?? |
|
Back to top |
|
SolidSnakeGTI
Joined: 16 May 2012 Posts: 16
|
|
Back to top |
|