PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 21, 2017 5:43 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Jan 22, 2015 12:36 pm 
Offline
Forum Newbie

Joined: Thu Jan 22, 2015 12:29 pm
Posts: 7
I have installed and configured Apache, PHP, & MySQL separately all appear to be running just fine but I have been unable to get phpmyadmin to run. phpinfo() runs just fine though it’s showing me some weird stuff. For example it says the php ini file is located at C:\WINDOWS but there absolutely is no such file to be found at C:\WINDOWS. In fact the only place a php.ini file can be found is C:\PHP and also in the download copy in the Downloads folder, also seems I’ve ended up with a copy in the Apache/htdocs/ folder. So apparently I don’t understand where phpinfo() gets its values i.e. “Configuration File (php.ini) Path” = C:\WINDOWS.
I’m thinking that maybe because of the method of downloading and duplicating file such as php.ini during the setup process perhaps the .ini file it’s reading isn’t necessarily the file I’m changing i.e. uncommentinting the mysql entries. Why does phpinfo() think php.ini is located at c:\WINDOWS

In any event when I try to go to localhost/phpmyadmin/ I get the following error
PHPmyadmin error
The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>

Also I’m not really getting the href reference


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 2:35 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6551
Location: WA, USA
PHP will claim to be looking in C:\Windows if it can't find a php.ini.

You're sure there is a C:\PHP\php.ini, that being the directory where you have PHP installed? And it's not php.ini-development or php.ini-production but really php.ini?


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 4:13 pm 
Offline
Forum Newbie

Joined: Thu Jan 22, 2015 12:29 pm
Posts: 7
Thanks for your reply,

Yes there is a php.ini file also a php.ini-development and a php.ini-production file. Also if I remember correctly the php.ini is just a copy of php.ini-development, or maybe it was php.ini-production that has been renamed

Like I said I suspect maybe it’s looking at something I’m not aware of. One of the problems is I’ve been tinkering around with this so long I lose track of what I’ve changed at some point I have uncommented “;extension=mysql.dll” and any other reference to mysql I can find in the php.ini file but since PHP appear to be unable to find the php.ini file. So where does it get it’s location for the php.ini file?


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 6:28 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6551
Location: WA, USA
The configuration file

When you installed and configured Apache and PHP, and where you tell Apache to load the PHP module, did you include a
Code:
PHPIniDir C:\PHP


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 7:21 pm 
Offline
Forum Newbie

Joined: Thu Jan 22, 2015 12:29 pm
Posts: 7
Yes if I understand what you’re asking I have added these lines to the httpd.conf file idouble checked after you asked and saw that I had been using forward slashes and then changed them to back slashes like you see here

Syntax: [ Download ] [ Hide ]

LoadModule php5_module "c:\php\php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir 'c:\php"



Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 7:40 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6551
Location: WA, USA
Mixed quotes, there.

So
Code:
PHPIniDir "C:\PHP"

works?


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 7:50 pm 
Offline
Forum Newbie

Joined: Thu Jan 22, 2015 12:29 pm
Posts: 7
darn I was really hoping that was gonna do it but still throwing the same phpmyadmin error ...


Syntax: [ Download ] [ Hide ]

The mysqli extension is missing...yada, yada, yada...

 


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 9:14 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6551
Location: WA, USA
But does phpinfo() show the right path?


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 9:43 pm 
Offline
Forum Newbie

Joined: Thu Jan 22, 2015 12:29 pm
Posts: 7
OK I appolagize I’m still getting familiar with php.
“Configuration File (php.ini) Path” is still showing “C:\WINDOWS”
However “Loaded Configuration File”, and I only just noticed this, is showing: “C:\PHP\php.ini”


Top
 Profile  
 
PostPosted: Thu Jan 22, 2015 11:15 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6551
Location: WA, USA
Alright, so it definitely has the right file now.

Did you uncomment the extension=php_mysqli.dll line?


Top
 Profile  
 
PostPosted: Fri Jan 23, 2015 10:41 am 
Offline
Forum Newbie

Joined: Thu Jan 22, 2015 12:29 pm
Posts: 7
Hey thanks for your help, it looks like I finally stumbled on the fix. Hey even a blind squrel finds a nut one in a while.

I was reading through the php.ini file searching the occurences of “extension” and I found the examples for loading extensions dynamicly so I copied the windows example and added it below the list of extension in the Dynamic Extensions section of the file so in the copied line I added the full path to the .dll file…
extension=C:\PHP\ext\php_mysqli.dll
Again, thanks a bunch for your help sometimes you just need someone to prompt you to keep digging and going over stuff you’ve already looked at a hundred times.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group