Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-08-20, 08:53 PM
Junior Member
 
Join Date: Aug 2005
Posts: 4
Raistlfiren
Default

Hey,
I was setting up a webserver with Apache 2.0.54, MySQL Client Version 5.0.4, PHP 5, and of course phpMyAdmin 2.6.3... Anyway after spending hours setting up my PHP with Apache I go to install phpMyAdmin onto my server. Though as you can see it didnt go well...

Before I get started on my problem, thought I might tell you some info about the os and other helpful information. I currently have Windows XP Professional SP2 on it. I have also tested my webserver by typing 127.0.0.1 in my url bar and was able to succesfully get into my server. I am also able to access PHP, by typing 127.0.0.1/phpinfo.php.

Whenever I try to connect to 127.0.0.1/phpMyAdmin/index.php it does not work! Whenever I go to the website I first recieve this message :

cannot load mysql extension;
please check PHP configuration
Documentation


Of course "Documentation is leading off to another site on my server that gives a FAQ of information about the problem. This is what it says :

[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration".
To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.


After checking multiple sites on the web, I have encountered not a whole lot as you can see me coming here... People have either went to a lower php or did unethical things by moving files to System32 and configuring things in your Enviroment Variables. I am trying to not have to have to go to a lower php. I was wondering if any of you knew what I mjay be doing wrong. I might also want to add that I really don't have much experience in making a server, and I'm just doing it to get the experince of doing it! Oh yes, I would also like to add that these are the running php modules after typing php -m in cmd prompt:

[PHP Modules]

bcmath
calendr
com_dotnet
ctype
dom
ftp
iconv
libxml
odbc
pcre
session
SimpleXML
SPL
SQLite
standard
tokenizer
wddx
xml
zlib

[Zend Modules]


Please help me, because I have totally run out of patience and I really do not want to screw up my settings with php 5! After spending hours configuring that... I also think that php comes out with more security each update... I am not totally sure about that...

Anyway,
Rat
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2005-08-20, 09:08 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

Funny how in the windows world it is "unethical" to change enviroment variables, and yet in the *nix world, it is called system adminstration.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #3 (permalink)  
Old 2005-08-21, 02:08 PM
Junior Member
 
Join Date: Aug 2005
Posts: 4
Raistlfiren
Default

If I may ask, what is the relevancy of that? Not trying to be rude, I am just trying to ask a question.
Reply With Quote
  #4 (permalink)  
Old 2005-08-21, 07:51 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

The proper way to resolve this issue, as I am aware, is something that is considered "unethical".
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #5 (permalink)  
Old 2005-08-21, 11:23 PM
Junior Member
 
Join Date: Aug 2005
Posts: 4
Raistlfiren
Default

Whenever I said "unethical" I said it because many people have said the same thing to me. I have been too a few forums and websites by way of Google and people have said that is not how your supposed to do it

So I have to do this :
1. Get ZIPPED version of PHP for windows from www.php.net
2. Extract the contents.
3. Find php_mysql.dll in EXT folder.
4. Copy and paste it in C:WINNT/SYSTEM32
5. Modify php.ini in C:WINNT as below.

extension_dir = "C:\WINNT\SYSTEM32"
extension=php_mysql.dll

Will this then cause future problems with my webserver? Shouldn't the extension_dir point to the php folder and not to your System32 folder?

Should I be following these directions, or does it have any relevancy to my problem at all? Foundation Dreamweaver
Raistlin
Reply With Quote
  #6 (permalink)  
Old 2005-08-22, 08:31 PM
Junior Member
 
Join Date: Aug 2005
Posts: 4
Raistlfiren
Default

Oh yes I would also like to add, that put php_mysql.dll into my System32 folder did not help. Everything else works but that still. I tryed both ways! I also have my enviromental variables changed to one too :

Variable Name : PHPRC
variable Value : C:\Server\PHP

I also inserted C:\Server\PHP into my Enviromental viariables path. Anything I might be missing? Any other ways to troubleshoot this?
Rat
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:13 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.