Click to See Complete Forum and Search --> : [RESOLVED] How do you configure php with mysql?
Zeratulsdomain
Jan 18th, 2008, 10:12 AM
I dont know how many websites I have checked nor do I know how many hours in total I wasted on this... very frustrating, I can never EVER get php and mysqo to work together.
I am using apache 2.0, php5 and mysql5.
For one there is no "extension=php_mysql.dll" in my php.ini (but I added it anyway), there is no "libmysql.dll" on my whole computer (much less php directory) so I downloaded it online and threw it in system32... both php and mysql is in my path...
nothing works... they really dropped the ball on this, should of been a yes/no question and BANG it all works.
kfcSmitty
Jan 18th, 2008, 10:18 AM
They didn't drop the ball. 9/10 people can get it working without issues, you seem to be an exception. Whether you're not understanding it, or there are issues with your computer, I'm not sure.
Since you're having so much trouble I would recommend just trying to use WAMP to get the server up and running.
It is an executable that will install apache, mysql and php on a windows machine.
WAMP (http://www.wampserver.com/en/)
Zeratulsdomain
Jan 18th, 2008, 10:28 AM
they did drop the ball. This is just stupid. This was my second attempt at doing this. A computer programmer having such a hard time doing something so simple is illogical.
anyway, I just fixed it. Do you know what was the issue? They apparently omitted the required extensions in the windows .msi installation (or at least it was not selected as a default) I had to go back to there website and download the zip version and throw them in my php folder there.
So not only did I have to go online to download a .dll file on a third party website, I also had to go online to a third party website find a specific line to add to my php.ini and I also had to go online to download extensions.
techgnome
Jan 18th, 2008, 11:11 AM
Or you just get WAMP or XAMP and be done with it... one down load, unzip, BAM! You're running. Regarding missing items from the msi, when ever I have the choice of an installer vs a zip which I can xcopy... ALWAYS go with the zip... odds are it's more up to date.
And who dropped the ball mySQL or php? And for "libmysql.dll" - I've *never* dumped any of mysql stuff into the system32 folder.... maybe that's where you went wrong with it...
Aaaaanyways....
-tg
Zeratulsdomain
Jan 18th, 2008, 12:16 PM
Or you just get WAMP or XAMP and be done with it... one down load, unzip, BAM! You're running. Regarding missing items from the msi, when ever I have the choice of an installer vs a zip which I can xcopy... ALWAYS go with the zip... odds are it's more up to date.
And who dropped the ball mySQL or php? And for "libmysql.dll" - I've *never* dumped any of mysql stuff into the system32 folder.... maybe that's where you went wrong with it...
Aaaaanyways....
-tg
well maybe I did not need to move that file, but it was from one tutorial (+ previous ones I remember trying when I first had failed this) so I did it. I also noticed after my last post here that the specific file was also missing from the MSI but in the zip.
Also good question on who dropped the ball... I want to say php because I felt they were missing so much and all configuration needed to be done from there end (and it used to work auto with php4 apparently), but then again mysql could have designed it so it configured itself the same way php configures itself to which ever HTTP client you select.
penagate
Jan 19th, 2008, 04:58 AM
anyway, I just fixed it. Do you know what was the issue? They apparently omitted the required extensions in the windows .msi installation (or at least it was not selected as a default) I had to go back to there website and download the zip version and throw them in my php folder there.
It is always recommended to download the zipped binaries for PHP. Have you read the two installation tutorials on this website? Both cover this.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.