logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Building PHP from Source
Author
pnllan



Joined: 05 Dec 2005
Posts: 221

PostPosted: Mon 13 Feb '06 20:23    Post subject: Building PHP from Source Reply with quote

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

PostPosted: Mon 13 Feb '06 22:43    Post subject: Reply with quote

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

PostPosted: Tue 14 Feb '06 8:35    Post subject: Reply with quote

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

PostPosted: Fri 17 Feb '06 18:05    Post subject: Reply with quote

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

PostPosted: Tue 18 Jul '06 12:10    Post subject: Reply with quote

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

PostPosted: Wed 19 Jul '06 3:12    Post subject: Reply with quote

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

PostPosted: Wed 19 Jul '06 22:10    Post subject: Reply with quote

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

PostPosted: Sat 22 Jul '06 11:32    Post subject: Reply with quote

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 Very Happy

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

PostPosted: Sat 22 Jul '06 16:35    Post subject: Reply with quote

search for some .res or .rc files.
Back to top
urangkayo



Joined: 04 Jul 2006
Posts: 11
Location: Depok - Indonesia

PostPosted: Sun 23 Jul '06 3:22    Post subject: Reply with quote

maniac wrote:
search for some .res or .rc files.


thanks manica Very Happy

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 Very Happy
Back to top


Reply to topic   Topic: Building PHP from Source View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads