Installing PHP on Windows for the first time

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I'm having this same problem again... exactly the same problem (read above). I can't get mysql to work.
me wrote:Alright... I am trying to install mysql now. I uncommented "extension=php_mysql.dll" in the php.ini file, set the extension_dir directive to the correct path. I added the php directory to the path environment variable, and of course installed mysql. I also restarted apache. Anything I'm forgetting?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Did you use an installer or the zip?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Is the Windows MySQL service started? Or are you starting manually via MS-DOS? Check you can reach the mysql prompt across MS-DOS and run some simple queries. After that it's down to PHP's extensions not copping on to MySQL being started, or the extension options not being registered properly.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

@feyd: I used the installer
@Maugrim It is started
User avatar
neel_basu
Forum Contributor
Posts: 454
Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India

Post by neel_basu »

Try To Make Sure That There Is A "php_mysql.dll" File in that folder where all of the dll files are
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

there is
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Retry using the zip? (You may need to uninstall first.)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

yup tried that too. I also tried installing mysql version 4 instead of 5, still no go.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Okay, so what versions of everything are you currently trying to install and integrate? What files have you altered (and their alterations) and where were these files located?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Geeze! I uninstalled EVERYTHING and removed EVERY file left over after uninstall. Then I went and downloaded the php zip package (v5.2.1), mysql(v5.0.37), and Apache (v2.0.59), then I installed Apache, then PHP, then Mysql.

Now it works... go figure. I used the installer the first time around because I thought it would be EASIER... :roll:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I've yet to see any evidence that the installer works properly from anyone. :)
Post Reply