To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Upgrading PHP

Upgrading PHP Issues concerning PHP version upgrades and future releases

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-21-2004, 08:21 PM   #1
BuzzLY
2($infinity) && $beyond
 
BuzzLY's Avatar
 
Join Date: Nov 2002
Location: Star Command
Posts: 2,535
Thumbs up Installed PHP5/Apache 2.0/MySQLi -- Yay me!

I finally got the following set up on my (ack, cough) Windows XP machine:
  • Apache 2.0.49
  • PHP 5.0.0RC3
  • MySQL 4.1.2-alpha-nt (using MySQLi)
  • phpMyAdmin 2.6.0-alpha2
I know a lot of people have trouble installing a setup like this, so here are a few notes:
  1. If possible, start from scratch. Uninstall MySQL, PHP, Apache. I had a much easier time this way.
  2. Set extension_dir to the proper path for your extentions in php.ini. For me, it was "C:\PHP\ext\". Make sure you include the final backslash, although on my system it didn't seem to matter. Most people recommended it.
  3. uncomment the line "extension=php_mysqli.dll" in php.ini, if using MySQLi, and "extension=php_mysql.dll" if using MySQL.
  4. copy php5ts.dll to your Windows %SYSTEM% directory (for me, that was c:\windows\system32).
  5. copy libmysqli.dll (if using MySQLi) and/or libmysql.dll (if using MySQL) to the Windows %SYSTEM% directory.
I missed copying the dll files to the system directory. I kept getting an error trying to load phpmyadmin, "could not load module," failing on php_mysql.dll. That was confusing, and I mucked with the extension_dir for hours. I finally went to www.dependencywalker.com and downloaded a very cool app called Dependency Walker. I ran it on php_mysqli.dll, and discovered that it couldn't find the libmysqli.dll and php5ts.dll files. Strangely enough, even though all of the "php_" extensions are in the ext folder, those two (and a few others) are in the root PHP directory. Copying them to the window system folder solved the problem.

I think that's most of the "gotcha's" of the installation. If I have missed anything, please use this thread to add it, so that other people trying to install this "uber-alpha" setup can do so without the toothaches I had to endure.

Thanks!
__________________
New to the board? Check out the guidelines
| Color Picker | Blogification |
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
With all its sham, drudgery, and broken dreams, it's still a beautiful world.

Last edited by BuzzLY; 06-21-2004 at 08:27 PM.
BuzzLY is offline   Reply With Quote
Old 06-21-2004, 10:29 PM   #2
Moonglobe
Better fan than rebelo!
 
Moonglobe's Avatar
 
Join Date: Apr 2003
Location: brain://localhost:left-side
Posts: 2,381
its generally best to copy every dll in the root php folder (excluding all the ones that start with php5 (except php5ts which isn't a SAPI)) to %windir%\system32
__________________
there's no place i can be, since i found serenity.
Moonglobe is offline   Reply With Quote
Old 06-22-2004, 01:26 PM   #3
goldbug
50,000 Watts of Goodwill
 
goldbug's Avatar
 
Join Date: May 2003
Location: Rummaging through your garbage.
Posts: 1,326
I've found it's much easier to install if you include the "L" part of "LAMP"

/me runs for the hills, sowing the seeds for OS holy wars as he goes.
__________________
Many eyes make few mistakes

goldendance
goldbug is offline   Reply With Quote
Old 06-26-2004, 12:33 AM   #4
trooper
Senior Member
 
Join Date: Mar 2001
Location: Portsmouth
Posts: 784
mysqli

Hey Buzzly where you get the mysqli.dll?

Its not in the rc3 release

I just managed to set up php5, mysql 4.1.2 and apache 2.47 on a box that already has a server setup but cannot find the mysqli.dll in rc3.
__________________
PPPPPP
trooper is offline   Reply With Quote
Old 06-27-2004, 09:44 PM   #5
BuzzLY
2($infinity) && $beyond
 
BuzzLY's Avatar
 
Join Date: Nov 2002
Location: Star Command
Posts: 2,535
On my installation, it was in the PHP\ext\ folder. It's called PHP_mysqli.dll. If you still need it, I can attach it here, but it should be there if you have the right PHP version installed.
__________________
New to the board? Check out the guidelines
| Color Picker | Blogification |
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
With all its sham, drudgery, and broken dreams, it's still a beautiful world.
BuzzLY is offline   Reply With Quote
Old 06-28-2004, 07:36 AM   #6
trooper
Senior Member
 
Join Date: Mar 2001
Location: Portsmouth
Posts: 784
Can you please forward it on as its not in the ext/ dir in the version i downloaded.

thanks


GM
__________________
PPPPPP
trooper is offline   Reply With Quote
Old 06-28-2004, 12:03 PM   #7
gte806e
Member
 
Join Date: Dec 2002
Posts: 85
Thanks!

Your post really helped me I was having the same mysql dll issue. Copied them all to the system32 folder works like a charm!

Jesse
gte806e is offline   Reply With Quote
Old 06-28-2004, 05:18 PM   #8
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,124
Quote:
Originally posted by trooper
Can you please forward it on as its not in the ext/ dir in the version i downloaded.
It was in the version I downloaded - which one did you download?
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 07-27-2004, 11:21 PM   #9
lanjoky
I'm Thumper
 
lanjoky's Avatar
 
Join Date: Jun 2003
Location: USA
Posts: 260
***** WARNING *****
Possible dumb question to follow!!!!
*** END WARNING ***


httpd config file I have the following

LoadModule php5_module D:/Programming Apps/PHP/php5apache2.dll
AddModule mod_php5.c
AddType application/x-httpd-php .php

wich is causing an error.

Its taking D:/Programming and Apps/PHP/php5apache2.dll to be 2 seperate arguements when 1. they cant be and 2. the LoadModule only takes a total of 2 arguments type and location.

My question is how do I represent the space with a character so that it works ... I tried %20 and that didnt work ... anyone got any ideas?


Thanks
__________________
lanjoky
lanjoky is offline   Reply With Quote
Old 07-28-2004, 02:50 AM   #10
planetsim
code | beer > sleep
 
Join Date: Sep 2002
Location: aus
Posts: 4,826
Single or Double quotes should do the trick so

Code:
LoadModule php5_module "D:/Programming Apps/PHP/php5apache2.dll"
AddModule mod_php5.c
AddType application/x-httpd-php .php
__________________
Dont be lazy Search
And use the Manual
Webmobo - Open Source News Script | Portfolio / Blog | Against TCPA
planetsim is offline   Reply With Quote
Old 07-28-2004, 03:44 AM   #11
rebelo
Resident Metal-head Coder
 
rebelo's Avatar
 
Join Date: May 2002
Location: Victoria BC - Canada
Posts: 240
Quote:
Originally posted by goldbug
I've found it's much easier to install if you include the "L" part of "LAMP"

/me runs for the hills, sowing the seeds for OS holy wars as he goes.
You're not kidding, though, man. I am reading this post and I am just baffled. Why is it such a problem doing this on windows? I upgraded to php5 on apache2 last night in about 5 minutes (the time it took to compile php5 from source). I removed php4, installed php5, changed a couple lines in httpd.conf and then restarted apache and everything was perfect.

If only they understood, man.
__________________
Please mark threads resolved if your question has been answered.
rebelo is offline   Reply With Quote
Old 08-18-2005, 10:41 PM   #12
peck_jon
Junior Member
 
Join Date: Aug 2005
Posts: 1
mysqli only working as CGI

FYI...originally added PHP to Apache as a module:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
...and couldn't get the mysqli ext to work no matter what I tried. So I finally went to CGI-mode instead:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
...and suddenly mysqli started working.

BTW also added c:\php and c:\php\ext to PATH instead of sumping dlls into c:\windows\system32, and that seems to work fine too...(unless they're loaded into memory now and will start failing when I restart...here goes!)

Last edited by peck_jon; 08-18-2005 at 10:44 PM.
peck_jon is offline   Reply With Quote
Old 01-07-2007, 01:03 AM   #13
guest
Senior Member
 
Join Date: Mar 2003
Posts: 129
Yay, BUZZLY!

I know this post is old as the hills, but your instructions just spared me a world of pain and I wanted to say "thank you".
guest is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:23 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.