on  
Apache Lounge
Webmasters & Programmers Home

 


Forum Index Downloads Contact
Search Forum Register Log in
 RSS Feed Apache Lounge



Register.com New Year Banners


Keep Server Online

The Apachelounge is not funded by anyone other than me (Steffen).

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

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

Thank You! Steffen

Your donations will help to keep this site alive and well.

httPHPdSSL Win64

 
Post new topic   Reply to topic    Apache Forum Index -> Apache on Win64
View previous topic :: View next topic  
Author Message
Virsacer



Joined: 16 Jan 2010
Posts: 14
Location: Germany

PostPosted: Thu 13 May '10 23:32    Post subject: httPHPdSSL Win64 Reply with quote

Here is my Win64 build of Apache and PHP:
http://www.erazergermany.de/HOME/httPHPdSSL-Win64-2010-08-02-1034.zip

Apache 2.2.16
OpenSSL 1.0.0a
PHP 5.3.3

EXTENSIONS:
bcmath
bz2
calendar
com_dotnet
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
intl
json
libxml
mbstring
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
SQLite
sqlite3
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib


Last edited by Virsacer on Mon 02 Aug '10 8:44; edited 3 times in total
Back to top
View user's profile
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 2809
Location: Germany, Next to Hamburg

PostPosted: Tue 22 Jun '10 13:32    Post subject: Reply with quote

Please post how you compiled PHP in 64 bit. Does that also work with VC 9 express edition?

Thanks for compiling since the 32 bit version is a bit anoying when I try to open files in System32, cause of the redirection. So
C:\windows\sytem32\drivers\etc\hosts become
C:\Windows\winsxs\amd64_microsoft-windows-w..nfrastructure-other_31bf3856ad364e35_6.1.7600.16385_none_6079f415110c0210\hosts
Back to top
View user's profile Visit poster's website
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 2809
Location: Germany, Next to Hamburg

PostPosted: Tue 22 Jun '10 14:49    Post subject: Reply with quote

Intressting is that the 64 bit is not much faster than the 32 bit version

I used the benchmarkscript from http://cvs.php.net/viewvc.cgi/ZendEngine2/bench.php?view=markup

Code:

C:\svn>\php\php bench.php
simple             0.258
simplecall         0.445
simpleucall        0.471
simpleudcall       0.587
mandel             0.831
mandel2            1.009
ackermann(7)       0.474
ary(50000)         0.046
ary2(50000)        0.041
ary3(2000)         0.388
fibo(30)           1.398
hash1(50000)       0.083
hash2(500)         0.072
heapsort(20000)    0.243
matrix(20)         0.234
nestedloop(12)     0.475
sieve(30)          0.226
strcat(200000)     0.033
------------------------
Total              7.314

C:\svn>\php64\php bench.php
simple             0.272
simplecall         0.414
simpleucall        0.431
simpleudcall       0.480
mandel             0.794
mandel2            1.099
ackermann(7)       0.447
ary(50000)         0.061
ary2(50000)        0.055
ary3(2000)         0.384
fibo(30)           1.318
hash1(50000)       0.097
hash2(500)         0.071
heapsort(20000)    0.233
matrix(20)         0.238
nestedloop(12)     0.461
sieve(30)          0.280
strcat(200000)     0.031
------------------------
Total              7.166

C:\svn>
Back to top
View user's profile Visit poster's website
Virsacer



Joined: 16 Jan 2010
Posts: 14
Location: Germany

PostPosted: Tue 22 Jun '10 15:09    Post subject: Reply with quote

Yes, VC9 Express is sufficient.
But you need the Windows SDK and the PHP Build Tools: http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip
Back to top
View user's profile
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 2809
Location: Germany, Next to Hamburg

PostPosted: Wed 23 Jun '10 14:31    Post subject: Reply with quote

So like discribed in the PHP Wiki except of /x86 but /x64 ?
Back to top
View user's profile Visit poster's website
Virsacer



Joined: 16 Jan 2010
Posts: 14
Location: Germany

PostPosted: Wed 23 Jun '10 16:04    Post subject: Reply with quote

Yes, but I use

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\Visual Studio 2008 x64 Win64 Command Prompt.lnk

Then I switch to the sourcedir and run

Code:
cscript /E:JScript win32\build\buildconf.js
cscript /E:JScript configure.js --enable-snapshot-build
nmake snap
Back to top
View user's profile
Virsacer



Joined: 16 Jan 2010
Posts: 14
Location: Germany

PostPosted: Sun 25 Jul '10 12:09    Post subject: Reply with quote

UPDATED:

PHP 5.3.3

PS: Compiled with VC2010
Back to top
View user's profile
Virsacer



Joined: 16 Jan 2010
Posts: 14
Location: Germany

PostPosted: Mon 02 Aug '10 8:43    Post subject: Reply with quote

UPDATED:

Apache 2.2.16
OpenSSL 1.0.0a
Back to top
View user's profile
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 2809
Location: Germany, Next to Hamburg

PostPosted: Mon 02 Aug '10 9:51    Post subject: Reply with quote

How do you build the php5apache2_2.dll? I tried the param in the configure script, but it don't build.

Code:

configure --enable-apache2filter --enable-apache2-2filter --enable-apache2handler --enable-apache2-2handler --enable-snapshot-build


Anything I miss?
Back to top
View user's profile Visit poster's website
Virsacer



Joined: 16 Jan 2010
Posts: 14
Location: Germany

PostPosted: Mon 02 Aug '10 10:40    Post subject: Reply with quote

I think you're missing this:
Code:
Checking for httpd.h ...  <not found>
Checking for httpd.h ...  <not found>
WARNING: Could not find apache2.2 libraries/headers
Back to top
View user's profile
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 2809
Location: Germany, Next to Hamburg

PostPosted: Mon 02 Aug '10 11:19    Post subject: Reply with quote

Yepp that is my error. Adding the apache path to the %PATH% didn't help.

i.e.
Code:

SET PATH=%PATH%;%PHP_SDK_BIN_PATH%;%PHP_SDK_SCRIPT_PATH%;C:\Apache22\include;C:\Apache22\lib


Last edited by James Blond on Mon 02 Aug '10 12:17; edited 1 time in total
Back to top
View user's profile Visit poster's website
Virsacer



Joined: 16 Jan 2010
Posts: 14
Location: Germany

PostPosted: Mon 02 Aug '10 12:15    Post subject: Reply with quote

No, PHP expects it to be in a special dir:
Code:
    if (FSO.FolderExists("..\\deps")) {
        PHP_PHP_BUILD = "..\\deps";
    } else {
        if (FSO.FolderExists("..\\php_build")) {
            PHP_PHP_BUILD = "..\\php_build";
        } else {
            if (X64) {
                if (FSO.FolderExists("..\\win64build")) {
                    PHP_PHP_BUILD = "..\\win64build";
                } else if (FSO.FolderExists("..\\php-win64-dev\\php_build")) {
                    PHP_PHP_BUILD = "..\\php-win64-dev\\php_build";
                }
            } else {
                if (FSO.FolderExists("..\\win32build")) {
                    PHP_PHP_BUILD = "..\\win32build";
                } else if (FSO.FolderExists("..\\php-win32-dev\\php_build")) {
                    PHP_PHP_BUILD = "..\\php-win32-dev\\php_build";
                }
            }
        }
    }
Back to top
View user's profile
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 2809
Location: Germany, Next to Hamburg

PostPosted: Mon 02 Aug '10 12:30    Post subject: Reply with quote

Thanks for that info. So it worked to copy C:\Apache22\include to C:\php-sdk\php53dev\vc9\x64\deps\include and copy C:\Apache22\lib to C:\php-sdk\php53dev\vc9\x64\deps\lib
Not it builds fine Smile
Back to top
View user's profile Visit poster's website

Post new topic   Reply to topic    Apache Forum Index -> Apache on Win64
Page 1 of 1