logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



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

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



PHP 5.2.1 x64 Released
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads



View previous topic :: View next topic  
Author Message
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Sat 17 Feb '07 3:47    Post subject: PHP 5.2.1 x64 Released Reply with quote

Coming only a few days after PHP.net released the official package

PHP 5.2.1 x64

Download:
PHP-5.2.1-x64

PHP Info: PHP Info 5.2.1 x64

Snapshot Information: snapshot.txt

Quote:
2007-02-15
Updated to PHP-5.2.1
2006-11-05
Updated to PHP-5.2.0
Added PHP-XDebug extension
2006-08-18
Updated to PHP-5.1.5 to fix security issues discovered.
Added MS SQL extension alternative (ODBTP extension)
2006-08-07
Added x64 extensions:
ADOdb (php_adodb.dll)
APC (php_apc.dll)
BCompiler (php_bcompiler.dll)
CVSClient (php_cvsclient.dll)
ID3 (php_id3.dll)
PDFLib (php_pdflib.dll)
Runkit (php_runkit.dll)
SSH2 (php_ssh2.dll)
Win64PS (modified version of Win32PS) (php_win64ps.dll)
ZIP (php_zip.dll)
2006-08-07
Fixed socket bug that effects PHP core (php5ts.dll). When attempting to open a remote socket that
doesn't exist, PHP would crash and often crash the web server too.

2006-07-28
Added GD2 extension (php_gd2.dll).

2006-07-07
Added working IIS API DLL (php5isapi.dll). Use this API (ISPAI) or CGI (php-cgi.exe) with IIS.
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sat 24 Feb '07 11:16    Post subject: Reply with quote

Hi can you please tell me how I can get this to work with mysql? I added "extension=php_mysql.dll" to php.ini but it keeps giving me the error "
Fatal error: Call to undefined function mysql_pconnect() in J:\httpd-2.2_x64\htdocs\Server\scripts\a.php on line 4
"

Oh and I also have "mysql.allow_persistent = On"
Back to top
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Sat 24 Feb '07 19:15    Post subject: Reply with quote

Can you try a phpinfo(); page and see that the MySQL extensionis being loaded correctly?

It should look like this:

http://www.fusionxlan.com/PHPx64/phpinfo-5.2.1-x64-2007-02-15.html#module_mysql
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sat 24 Feb '07 19:21    Post subject: Reply with quote

I'm pretty sure that is isn't being loaded correctly.

http://tso.hopto.org/mysql_info.php


In php.ini I have
extension_dir = "J:\httpd-2.2_x64\php\ext\"
extension = php_mysql.dll
mysql.allow_persistent = On

In J:\httpd-2.2_x64\php\ext\ I do indeed have that dll.
I also copied it to J:\httpd-2.2_x64\php\ and J:\httpd-2.2_x64\bin\ and C:\WINDOWS\
I did the same with libmySQL.dll



In httpd.conf
LoadModule php5_module php/php5apache2_2.dll
AddType application/x-httpd-php .php


I don't have the line that specifies the ini. So it defaults to the windows directory, where I have a copy of the php.ini.

I have also tried putting in the line and pointing it to the php directory. It didn't seem to make any difference.


And it's not just mysql_pconnect but also mysql_connect that isn't working, as well as pretty much all mysql commands.
Back to top
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Sat 24 Feb '07 19:52    Post subject: Reply with quote

Try putting this into your PHP.ini. I swapped the slashes and removed the trailing slash on the extension_dir setting. Also removed spaces from the extension=php_mysql.dll line.

extension_dir="J:/httpd-2.2_x64/php/ext"
extension=php_mysql.dll


Perhaps try moving libmySQL.dll to \Windows\System32 instead of just \Windows.

This seems to just be a technicality that's hanging you up.
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sat 24 Feb '07 21:15    Post subject: Reply with quote

Okay thanks.. I tried that and restarted apache.. it still isn't working though T_T

Here are my config files

http://tso.hopto.org/httpd.conf.txt
http://tso.hopto.org/php.ini.txt

I am using the 2.2.4 64bit apache
And the 5.2.1 64bit php
And the MySql extension that came with php

My OS is 64bit xp pro service pack 1
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Fri 02 Mar '07 11:15    Post subject: Reply with quote

Please can somebody tell me why the mysql won't work with this and how I can fix it? My site really depends on mysql..
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Fri 02 Mar '07 13:18    Post subject: Reply with quote

;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.

http://www.thescripts.com/forum/thread296.html
Back to top
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Fri 02 Mar '07 16:14    Post subject: Reply with quote

It is not true that MySQL is built in. It used to be but is no longer. He must be posting from an old PHP.ini.

Try putting everything in \Windows\System32 and change the extension dir back to "./". It's a simple path problem I bet. You're using the same files I use and when I created this: http://www.fusionxlan.com/PHPx64/phpinfo-5.2.1-x64-2007-02-15.html#module_mysql

Clearly it loads there. I have php5ts.dll, php5apache2_2.dll, php_mysql.dll in \Windows\System32 and php.ini in \Windows.
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sat 03 Mar '07 0:30    Post subject: Reply with quote

Thanks for reply ^^

I tried that I can't see any difference though :s

I still get an error saying unknown function when I try to use any of the mysql functions.. and it still says not loaded at http://tso.hopto.org/mysql_info.php
Back to top
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Sat 03 Mar '07 5:47    Post subject: Reply with quote

I can't imagine why it's not working Azu. Do other extensions work?

The only things that pop into my head are:
  • Possible libmysql.dll error
  • I noticed the older version of PHP.ini (from it saying MySQL is built in). Possibly the old version has a misconfiguration that we're not seeing. Can you use the php.ini-recommended included in the ZIP and reconfigure it to your settings?

Maybe enable some PHP error messages by changing the following in PHP.ini
Code:

error_reporting  =  E_ALL & E_CORE_ERROR & E_CORE_WARNING
display_startup_errors = On
log_errors = On
error_log = "C:\phperrors.txt"

With those saved restart Apache and check C:\phperrors.txt (or wherever you decide to log) for errors mentioning php_mysql. Anything interesting please post the log here!
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sat 03 Mar '07 8:13    Post subject: Reply with quote

Quote:
[02-Mar-2007 20:12:28] PHP Warning: PHP Startup: Unable to load dynamic library 'J:\httpd-2.2_x64\php\ext\php_mysql.dll' - Invalid access to memory location.
in Unknown on line 0
[02-Mar-2007 20:12:30] PHP Warning: PHP Startup: Unable to load dynamic library 'J:\httpd-2.2_x64\php\ext\php_mysql.dll' - Invalid access to memory location.
in Unknown on line 0


Confused
Back to top
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Sat 03 Mar '07 17:36    Post subject: Reply with quote

Azu can you please ZIP all the DLLs up (php5ts.dll, libmysql.dll, php_mysql.dll) and email them to me? I want to try to re-create the error and perhaps it's something with your files (since I use the same build perfectly).

Thanks. Please send the ZIP to park op fusionxlan.com
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sat 03 Mar '07 23:01    Post subject: Reply with quote

http://tso.hopto.org/DLLs.7z
Back to top
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Sat 03 Mar '07 23:13    Post subject: Reply with quote

Thanks. All the DLLs match against mine so there's nothing wrong with them.

Thanks for including the directory structure. I noticed that 'libmysql.dll' is not in System32. Try copying it to there (from PHP). Clear the log and restart Apache. See what you get.
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sat 03 Mar '07 23:47    Post subject: Reply with quote

Quote:
[03-Mar-2007 11:43:02] PHP Warning: PHP Startup: Unable to load dynamic library 'J:\httpd-2.2_x64\php\ext\php_mysql.dll' - Invalid access to memory location.
in Unknown on line 0
[03-Mar-2007 11:43:06] PHP Warning: PHP Startup: Unable to load dynamic library 'J:\httpd-2.2_x64\php\ext\php_mysql.dll' - Invalid access to memory location.
in Unknown on line 0


But when I searched for that dll I noticed that there is also one in bin with the same name but differant size. I also tried putting that one in system32. Neither worked. Here it is though
http://tso.hopto.org/libmysql.dll


Edit: oh I found the problem
The libmysql.dll that was in bin was bad, and there was also one in /windows/ that was bad. I replaced them with the one that was in /system32/ and it works now WOOT


Now I need to figure out how to get CURL to work..
Back to top
PaRK_7677



Joined: 01 Jun 2006
Posts: 65
Location: Missouri

PostPosted: Sun 04 Mar '07 0:22    Post subject: Reply with quote

Glad it is working! CURL should work fine, I've used it before. Make sure though to put the DLLs it requires in System32 or in a directory that's in PATH.

Quote:
Module: php_curl.dll
===========================
libcurl.dll
libeay32.dll
msvcr80.dll


All are included inside the ZIP. msvcr80.dll is the run time for C (2005.NET) which is already located correctly on your system or you couldn't run PHP at all! Just worry about the first two Smile
Back to top
Azu



Joined: 24 Feb 2007
Posts: 9
Location: U.S.A.

PostPosted: Sun 04 Mar '07 11:11    Post subject: Reply with quote

Thanks! Everything seems to be working now ^_^
Back to top
WRFan



Joined: 03 Nov 2006
Posts: 3

PostPosted: Tue 06 Mar '07 13:00    Post subject: Reply with quote

Are x64 bit versions of the PECL modules available somewhere? Modules like php_pdf.dll and so on, they are not included in this release. Would be nice to get a x64 bit version of the PECL package
Back to top
IowaTool_Jim



Joined: 13 Mar 2007
Posts: 2

PostPosted: Wed 14 Mar '07 0:31    Post subject: Echoing this feedback and question from main thread... Reply with quote

This is a truly super and much-needed contribution to the community! Thank you.

The only real bump I had along the way was that, for whatever reason -- even though I put my PHP directory in my PATH -- I could not get the MySQL extensions to load until I copied libmysql.dll to my windows/system32 directory.

Perhaps a reboot would have cleared this up, but its an intranet server at Iowa Tool and I'll wait until another time to do a system reboot.

Now the only issue I have is with phpMyAdmin wanting the mcrypt extension and it is not included in this great build.

QUESTION: The install instructions at (http://us2.php.net/mcrypt) suggest that this extension needs to be compiled in rather than dynamically included. Is this a possible to include mcrypt in an upcoming point release?
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads Goto page 1, 2, 3  Next
Page 1 of 3