Author |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Mon 13 Feb '06 20:23 Post subject: Building PHP from Source |
|
|
Steffen,
I followed the 'cookbook' that PHP provides for 'building from source'.
It seems there is obviously more to it than what they describe.
Can you provide some pointers or clues?
Thanks |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 13 Feb '06 22:43 Post subject: |
|
|
Indeed there is more to it, to get it build with VC 2005.
I spend tons of time to get the wright (up-to-date) external libraries, includes and header files.
I managed now that I can build php 5+ without any change to the php source.
As this subject is off-topic, you can mail me for more info.
Steffen |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Tue 14 Feb '06 8:35 Post subject: |
|
|
Yeah, after seeing the ALL errors generated from VC 2005 as well as from the command-line, I soon realized that the documentation was pretty bogus.
I thought it might be a little 'off-topic', but since the SAPI module requires the presence of HTTPD I thought I might ask.
I'll email you for some of the details.
Thanks
. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Fri 17 Feb '06 18:05 Post subject: |
|
|
Just found a site with up-to-date external libraries, includes and header files: http://ftp.emini.dk/pub/php/win32/ .
It is the file zip.zip . Replace in there the 2.2.0 libs and includes (in folder \php_build\apache2 and \php5.1.2\php_build\lib\apache2 and \php_build\include\apache2 0. Note: you must rename first the libs from your 2.2.0 by removing the "-1" from the name.
Works here fine with php 5.1.x
Steffen |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 18 Jul '06 12:10 Post subject: |
|
|
Update:
The 5.2 source contains the Apache 2.2. headers, so you do not have to change anything in the above zip.
The generated .dll is there called php5apache2_2.dll
Steffen |
|
Back to top |
|
urangkayo
Joined: 04 Jul 2006 Posts: 11 Location: Depok - Indonesia
|
Posted: Wed 19 Jul '06 3:12 Post subject: |
|
|
Hi Steffen...
I have download zip.zip from http://ftp.emini.dk/pub/php/win32/ and extract them
in php 5 manual, i have to do this step
C:\work
|
|---bindlib_w32
|
|---php-5.1.4
|
|---win32build
And i have extract zip.zip become
C:\dev
My Apache2 at C:\Apache2
What i must to do with C:\dev ? copy into C:\work\php-5.1.4 or all folder at C:\work i must copy to C:\dev ?
Steffen wrote: | Just found a site with up-to-date external libraries, includes and header files: http://ftp.emini.dk/pub/php/win32/ .
It is the file zip.zip . Replace in there the 2.2.0 libs and includes (in folder \php_build\apache2 and \php5.1.2\php_build\lib\apache2 and \php_build\include\apache2 0. Note: you must rename first the libs from your 2.2.0 by removing the "-1" from the name.
Works here fine with php 5.1.x
Steffen |
I have a little confuse with your explain, from where the libs and include i must replace? from C:\Apache2 into C:\dev\php_build or where?
I have rename libs at C:\Apache2\libs and remove "-1" from file name.
thanks for your help |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 19 Jul '06 22:10 Post subject: |
|
|
Extract the php_build and template folder in the /dev from the zip.zip to php_build and template folder below:
C:\work
|
|---bindlib_w32
|
|---php-5.3.x
|
|---win32build
|
|---php_build
|
|---template
Use php 5.2.x source from http://snaps.php.net/ , with this source you do not have to change anything in the zip.zip. |
|
Back to top |
|
urangkayo
Joined: 04 Jul 2006 Posts: 11 Location: Depok - Indonesia
|
Posted: Sat 22 Jul '06 11:32 Post subject: |
|
|
thanks Steffen...
I have success build Apache with openssl and PHP-5.1.4 with your guide.
thanks so much Steffen...
now i can using Apache + PHP build by me
but Steffen, how to change file description like you do at php5apache2.dll at your build, file description is "Apache 2.2 Handler build by Steffen"
I have look at php_version.h, but in this file only version from PHP not contain file description. what file i must change ?
thanks... |
|
Back to top |
|
maniac
Joined: 29 Mar 2006 Posts: 31 Location: Ukraine
|
Posted: Sat 22 Jul '06 16:35 Post subject: |
|
|
search for some .res or .rc files. |
|
Back to top |
|
urangkayo
Joined: 04 Jul 2006 Posts: 11 Location: Depok - Indonesia
|
Posted: Sun 23 Jul '06 3:22 Post subject: |
|
|
maniac wrote: | search for some .res or .rc files. |
thanks manica
i get the res file, name php5apache2.dll.res , when build php for first time, this file will found at your_php_build\Release_TS\
open this file using VS 2005 and change FileDescription, save and then build again your PHP using command nmake
thanks guy's for your help |
|
Back to top |
|