473,394 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

PHPinfo not showing mysql

66
Hello all,

I am a complete newbie to mysql / php i have installed apache, php and mysql and they are all working independently and php is working with apache.

I have created a database using mysql but when i came to getting the info from the database using php nothing was showing in the browser.

I checked the php info page and i noticed that there is no 'mysql' section so im guessing that php just doesn't realize that is should be communicating with mysql.

please could some one give me step by step instructions to solve this problem, i have installed all the latest versions and it is running on windows xp.

many thanks in advance

Jason
Jul 17 '07 #1
3 14857
Atli
5,058 Expert 4TB
Firstly, you have to go into the php.ini file and find these two line and remove the ; thingies.
Expand|Select|Wrap|Line Numbers
  1. Change:
  2. ;extension=php_mysql.dll
  3. ;extension=php_mysqli.dll
  4.  
  5. Into:
  6. extension=php_mysql.dll
  7. extension=php_mysqli.dll
  8.  
Now you must find the 'ext' directory in your PHP installation directory.
Copy the path to your 'ext' directory and paste it into the php.in file, in the 'extension_dir' line
Expand|Select|Wrap|Line Numbers
  1. extension_dir ="D:\Program Files\PHP\ext"
  2.  
Next you must go to that directory and make sure the files from the first two lines you edited are in there. If they are not you must download the ZIP version of PHP from www.php.net and copy the files to the 'ext' directory.

Finally you should go to the PHP directory and copy the 'libmysql.dll' into the 'bin' directory in you Apache root folder.
For example 'C:\Program Files\Apache group\Apache\bin'
(Note that this step may be avoided on windows if the PHP root dir has been added to the enviromental variable 'PATH')

After restarting Apache, your PHP should be able to connect to MySQL.
Jul 17 '07 #2
jasone
66
Hello,

thanks for your reply, i have made all changes as suggested! but the effect is as same as before, there is nothing showing up regarding MYSQL in the 'information' page for PHP and when i try to locally get data from a database the connection is fine but im just getting a blank page.

im sure this is uauly such an easy thing, sorry for the hassle :-S
Jul 17 '07 #3
jasone
66
ok all sorted!

managed to find a pretty good tutorial site, so if anyone gets this problem again, try using the below website:

http://www.expertsrt.com/tutorials/Matt/install-apache.html#dirsetup
Jul 17 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Patrick | last post by:
Hi I am a newbie and was just getting started working on a guestbook tutorial when I got an error message upon running my PHP code: Fatal error: Call to undefined function mysql_connect() in...
2
by: John Drako | last post by:
I just updated my server to apache 1.3.33 and php 5.0.3 from apache 1.3.31 and php 4.3.9. It's running RedHat and MySQL 4.0.20. All the code that I created myself in PHP is working as it should...
0
by: Scott F | last post by:
Configuration: Windows 2000 Server IIS 5.0 PHP set to run with the isapi.dll PHP 5.0.4 MySQL 4.1 IUSR_servername has Read, Execute access to \php and \ext Lines from php.ini
1
by: Randell D. | last post by:
Folks, I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I...
2
by: gerrymcc | last post by:
I'm wondering why, after fixing the path in php.ini and removing the ; from infront of the extension=php_mysql.dll the "Additional Modules" on the page returned by phpinfo() doesn't show anything....
3
by: Newt | last post by:
I've compiled MySQL 4.1, PHP 4.4.7 and Apache 1.3.37. When I try to use phpinfo() to ensure everything is OK, I get the following message: Warning:...
4
by: Ronald Raygun | last post by:
I have just discovered that the value reported for $_SERVER by phpinfo is different from the value I obtain when I run the following: <?php echo $_SERVER ?> My natural assumption is to assume...
7
by: eholz1 | last post by:
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7)...
3
by: gamereality | last post by:
Hello, this is my first post here. W00T. (Forgive me for using leet speak, it's not my fault.) Here's the rundown: I have MySQL. I have configured the PHP.INI to the correct settings,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.