Experts Round Table Network
Navigate
Home
ArticleWiki
Forum
Journal
Search
Newsletter
Links
Tech News
expertsrt.com
Welcome Guest.
Username:
Password:
Remember me
Forgot your password?
Register
Problem installing MYSQL with PHP
Welcome,
Guest
. Please
login
or
register
.
December 02, 2008, 04:08:18 AM
11304
Posts in
1248
Topics by
498
Members
Latest Member:
katCheeme
Home
Help
Search
Login
Register
Experts Round Table Network
|
Databases
|
MySQL
|
Problem installing MYSQL with PHP
« previous
next »
Pages:
[
1
]
2
3
Print
Author
Topic: Problem installing MYSQL with PHP (Read 1579 times)
klitscher
Offline
Posts: 24
Problem installing MYSQL with PHP
«
on:
July 07, 2006, 03:48:14 PM »
Hello,
I'm having some problems installing MySql with PHP and Apache2. I followed the guide at
http://www.expertsrt.com/tutorials/Matt/install-apache.html
and did everything exactly what it says. I have installed Apache/PHP5 and Mysql from scratch and have apache and php5 working well. It's installed on an XP box used just for development. I'm able to serve up phpinfo fine. I am also able to use mysql to run on the command line. I've uncommented extension=php_mysql.dll in php.ini but I can't for the life of me get phpinfo to show the mysql info. I'm able to manipulate the php.ini file to change other extensions, but not mysql or mysqli, and the dll's are in the right spot. Any help? I wish i could show you, but like i said, it's a development machine and not online. Thanks in advance.
I have also posed this question at PHPFreaks.com and the suggested resolutions and responses are here:
http://www.phpfreaks.com/forums/index.php?topic=99751.0
Thanks,
Ken
Logged
sajuks
Moderator
Offline
Posts: 18
Problem installing MYSQL with PHP
«
Reply #1 on:
July 07, 2006, 08:37:46 PM »
Few things to check :
Check the location of your php,ini file .Are you working with the right ini file? The php,ini file location will be available to you with the phpinfo() fnction.
Do you have multiple copies of libmysql.dll. DO a search from windows explorer to confirm.Ensure that the libmysql.dll are both of the same versions (Did you upgrade from an older version ? ) .If not available in the ystem32 directory yhen Copy libmysql.dll to the system32 directory .
Set the extension_dir in php.ini to the extension directory of your PHP installation directory (e.g.extension_dir=d:\php\ext)
Uncomment the line extension=php_mysql.dll
Logged
klitscher
Offline
Posts: 24
Problem installing MYSQL with PHP
«
Reply #2 on:
July 07, 2006, 10:19:51 PM »
Okay, that did it....There were other versions of libmysql.dll in system32 from when I installed sokkit to test it out...apparently uninstalling sokkit does not remove these...I went through my php root folder and deleted all of the the same files in system32 and all is well...thanks for the help!
Ken
Logged
COBOLdinosaur
ERT.com Admin
Offline
Posts: 481
Problem installing MYSQL with PHP
«
Reply #3 on:
July 08, 2006, 06:39:16 AM »
Nice catch Saju. :thumbup:
Logged
nicholassolutions
Administrator
Offline
Posts: 133
Problem installing MYSQL with PHP
«
Reply #4 on:
July 08, 2006, 09:35:09 AM »
Hi Ken,
I'm glad to see you took my advice to come to the forum, and even happier to see you got your problem sorted out. Hats off to Saju for a really nice catch - it takes a real veteran to spot something like that, when none of the information given would suggest it :notworthy:
Logged
klitscher
Offline
Posts: 24
Thanks
«
Reply #5 on:
July 08, 2006, 01:07:30 PM »
I appreciate the help here, and have noticed that you are looking for more forum posts, so i'll come here when (and it will probably be soon and often) i'm struggling setting this stuff up and making it run as it should...i'll be back
Ken
Logged
sajuks
Moderator
Offline
Posts: 18
Problem installing MYSQL with PHP
«
Reply #6 on:
July 09, 2006, 09:05:24 PM »
:oops: :oops:
you guys hell bent on embarassing me are you ?
Glad we could solve it for you ken.
Logged
COBOLdinosaur
ERT.com Admin
Offline
Posts: 481
Problem installing MYSQL with PHP
«
Reply #7 on:
July 10, 2006, 05:07:02 AM »
Quote
you guys hell bent on embarassing me are you ?
Just encouraging continued participation... Maybe get you to consider writing an article, so we can make you famous. :^)
Logged
guldar
Offline
Posts: 1
Re: Problem installing MYSQL with PHP
«
Reply #8 on:
July 19, 2006, 02:00:49 PM »
i having the same problem. i followed matts guide. I followed what sajuks suggested
and I still don't have a mysql section on my phpinfo.php
any other ideas? I'm almost ot the point where I'm going to wipe all that crap off my computer completly and start over. and I really don't want to do that.
Logged
DougB
Offline
Posts: 16
Re: Problem installing MYSQL with PHP
«
Reply #9 on:
November 20, 2006, 01:06:45 PM »
Hey Gang,
Oh boy, another newbie for you with dozens of questions. I too followed the same article and ended up with the same problem, I can't get my MySql info to show when I do a localhost/phpinfo.php run. My libmysql.dll file is showing up in my folders D:/webserver/php and my D:/webserver/MySql/bin but not in my system32 folder. Should I copy and paste it into my system32 folder in Widows?
At this point I have done everything else (including uncommenting the extension=php_mysql.dll in php.ini). PLease advise before I go further...
Many thanks gang for your help here,
DougB
Logged
More coffee....
rdivilbiss
Governing Council Member
Offline
Posts: 414
Re: Problem installing MYSQL with PHP
«
Reply #10 on:
November 20, 2006, 03:30:24 PM »
Quote from: DougB on November 20, 2006, 01:06:45 PM
My libmysql.dll file is showing up in my folders D:/webserver/php and my D:/webserver/MySql/bin but not in my system32 folder. Should I copy and paste it into my system32 folder in Widows?
You can do that, but copy the most recent version.
One problem I have with that method is updates. Every time you update MySQL you'll need to remember to copy that file to system32.
I would first try editing your computer's path statement to append the MySQL bin directory.
e.g. Right-Click MyComputer, choose Properties, the Advanced tab, Environment variables button, scroll the system variables to find path, click and choose the edit button. Append ;D:/webserver/MySql/bin to the end. You'll probably need to reboot.
Now when you installed MySQL, following Matt's tutorial, he had the include the MySQL bin directory in Windows path checkbox "checked" during install, and if you also choose that option it should be in your path already. If the path to the MySQL\bin directory is in your path environment variable and it still doesn't work, copy the lib file to system32.
«
Last Edit: November 20, 2006, 03:34:43 PM by rdivilbiss
»
Logged
Rod
DougB
Offline
Posts: 16
Re: Problem installing MYSQL with PHP
«
Reply #11 on:
November 21, 2006, 04:53:49 PM »
rdivilbiss,
Checked to see if the appended D:/webserver/MySql/bin/libMySql.dll was in the "path" variable first. It was there already. I then pasted it (libMySql.dll) into my sys32 folder where it wasn't. Rebooted the box and then opened Apache and did anhttp:// localhost/phpinfo.php test. The MySql information is still not there. Have I missed something here or what am I doing wrong...? Many thanks for your patience with a newbie to php and server environments.
BTW everything was new downlaod yesterday when I originally started so I'm assuming I have the most recent files. The Apache server and PHP are coming up fine...The MD5 codes were also verified as per Matt's instructions with all files verifying properly before installation...
DougB
Logged
More coffee....
klitscher
Offline
Posts: 24
Re: Problem installing MYSQL with PHP
«
Reply #12 on:
November 21, 2006, 07:32:34 PM »
Doug,
A couple of things that helped me figure this out when I had a problem:
Also verify that PHP is using the correct php.ini too, by running the phpinfo function. Check that Configuration File (php.ini) Path is pointing to the correct folder in which your php.ini file is located in. If PHP is not pointing to the correct php.ini file then, Add the following line:
Code:
PHPIniDir "C:/php"
Change C:/php to the correct folder location in which the php.ini file is located in. Restart Apache and check that php is using the correct php.ini file.
If it is using the correct php.ini and mysql extension still isn't loaded, Check that the extension_dir setting is point to PHPs extension folder which stores all your extensions in. Also find display_startup_errors = off and change off to on. Save your php.ini and restart Apache. If PHP is having any trouble loading up it should popup a little error message with whats wrong.
Ken
Logged
DougB
Offline
Posts: 16
Re: Problem installing MYSQL with PHP
«
Reply #13 on:
November 21, 2006, 11:24:59 PM »
Greeting Gang,
The correct path for the new install is D:/webserver/folders(MySql,php, apache)
This information is taken from my php.ini
extension_dir = D:webserverphpext
extension=php_mysql.dll
From my phpinfo.php information: Configuration File (php.ini) Path D:\webserver\php\php.ini
Are these settings correct?
Thanks again guys but it still ain't showing up...sigh
DougB
Logged
More coffee....
stone
Offline
Posts: 1
Re: Problem installing MYSQL with PHP
«
Reply #14 on:
January 26, 2007, 12:56:00 AM »
For what it's worth, I'm in the same boat. My situation is nearly identical to DougB's, except I'm also currently unable to change my PHPIniDir for some sinister reason. I'd really appreciate any help.
-Jason
Logged
Pages:
[
1
]
2
3
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
ERT 1.5
-----------------------------
=> Round Table Learning Center
=> Bug reports
-----------------------------
Legacy
-----------------------------
=> The next level
=> History of ERT
-----------------------------
Community Affairs
-----------------------------
=> Introductions
=> Ballot Box
===> Closed Polls
=> Soapbox
=> Propose and Consult
===> Propose and Consult...CLOSED
-----------------------------
Bits and Bytes
-----------------------------
=> Tips, Tricks, Snippets, Tidbits And General Pearls Of Wisdom
-----------------------------
Serverside Technology
-----------------------------
=> PHP
=> ASP
-----------------------------
Webservers
-----------------------------
=> Apache
=> IIS
-----------------------------
Databases
-----------------------------
=> MySQL
=> Access
=> MS SQL Server
-----------------------------
Clientside Technology
-----------------------------
=> HTML
=> CSS
=> Javascript
=> Flash
=> WAP/WML
-----------------------------
Web Technologies
-----------------------------
=> General Web Dev
=> Web Standards
=> XML
=> Online Marketing
-----------------------------
Graphics
-----------------------------
=> Graphics Design and Animation
-----------------------------
Programming
-----------------------------
=> .NET
=> JAVA
=> MS DOS Batch Scripting
=> Mathematics
=> C & C++
=> VB
=> Delphi
=> Algorithm design
-----------------------------
Operating Systems
-----------------------------
=> Windows (General)
=> NT Based (2K, 2K-03, NT, XP, Vista)
=> Open Source (All)
-----------------------------
Hardware
-----------------------------
=> Hardware General
=> Gamers Hardware (Advanced)
-----------------------------
Networking
-----------------------------
=> Home (small)
=> Office (large)
=> Internet
-----------------------------
Security
-----------------------------
=> General Security Issues
-----------------------------
Rants/Opinions/Proposals
-----------------------------
=> Site operation
Powered by SMF 1.1 RC2
|
SMF © 2001-2005, Lewis Media
Joomla Bridge by
JoomlaHacks.com