• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache HTTP/PHP 32-bit detect/talk to 64-bit MySQL on Windows 7 64-bit?

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all

On Windows 7 64-bit, is it possible to have Apache HTTP 32-bit with PHP detect 64-bit MySQL?

I asked this because when I run phpinfo() I can't see the mysql module loaded when I have un-comment that line in php.ini file. I also copied the mysql DLL file to windows/system32 folder.

Must everything be 32-bit to work?
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem solved.

The mysql.dll should be placed in the apache HTTP bin folder.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:Hello all

On Windows 7 64-bit, is it possible to have Apache HTTP 32-bit with PHP detect 64-bit MySQL?

I asked this because when I run phpinfo() I can't see the mysql module loaded when I have un-comment that line in php.ini file. I also copied the mysql DLL file to windows/system32 folder.

Must everything be 32-bit to work?



Dear K. TSang,

I have similar issues where I need to use 64-bit of MySQL on our Windows Server 2012, but the PHP version 5.3 is just in 32-bit version ( I need to use Drupal 7 and it requires PHP 5.3.x (can not use newer version).
So, I am wondering if in your case everything work well if you use Apache 64-bit + PHP 32-bit and MySQL 64-bit?
Looking forward to hearing from you.

Thanks
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I haven't used Apache 64 bit but I guess the setup should be the same.

The PHP needs to be 64-bit too for it to work. So your current setup won't work.

For PHP, in the past Apache requires the PHP build be "VC6xxxx" (meaning build by Visual C 6.0). Now the new downloads are all VC9 or newer (which used to be for IIS PHP). So that VCx part may be something to watch out for.

I expect you know how to configure the the php.ini and httpd.conf accordingly. If not post here too.

Hope this helps.
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic