LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-15-2007, 09:00 AM   #1
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Rep: Reputation: 15
Problem with PHP Configuration File?


I installed Apache 2.2, MySQL 5, PHP 5, and phpmyadmin on winXP recently, but when I try to access http://localhost/phpmyadmin/index.php I get an error that says "cannot load mysqli" extension. I followed the instructions here: http://www.devside.net/guides/windows/phpmyadmin

Under the php configuration settings, it tells me to "Edit file %SYSTEMROOT%\php.ini". Is System root just a placeholder for where the path to php.ini is, in my case C:\Server\PHP?

The directions tell me to uncomment ";extension=php_mbstring.dll", but I don't have that line. Instead I have "extension=msql.dll", so I commented this out and replaced it with ";extension=php_mbstring.dll". Unfortunately, that didn't work either. Any ideas what could be wrong? Thank you.
 
Old 11-15-2007, 09:18 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
You should edit config.inc.php and change value of the line
Quote:
$cfg['Servers'][$i]['extension']
to mysql instead of mysqli.
The other extensions you've mentioned have nothing to do with mysql.
As for %SYSTEMROOT%, I guess it's c:\windows\system or c:\windows\system32
 
Old 11-15-2007, 09:43 AM   #3
draxen
Member
 
Registered: Nov 2004
Posts: 43

Rep: Reputation: 15
Open the command window and enter "echo %SYSTEMROOT%". On my PC is says "C:\WINDOWS". That's where your php.ini wants to be, I think. Just copy it from C:\Server\PHP to C:\WINDOWS (or whatever your SYSTEMROOT shows).
I use XAMPP (http://www.apachefriends.org/en/xampp.html) which is self-contained and keeps all of the configuration files within it's directory.

Last edited by draxen; 11-15-2007 at 09:44 AM.
 
Old 11-15-2007, 12:25 PM   #4
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by draxen View Post
Open the command window and enter "echo %SYSTEMROOT%". On my PC is says "C:\WINDOWS". That's where your php.ini wants to be, I think. Just copy it from C:\Server\PHP to C:\WINDOWS (or whatever your SYSTEMROOT shows).
I use XAMPP (http://www.apachefriends.org/en/xampp.html) which is self-contained and keeps all of the configuration files within it's directory.
Thanks for the help, nothing is working so I'm just going to uninstall everything and try XAMPP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in configuration of php and apache jetro2k5 Linux - Newbie 2 04-11-2007 01:21 AM
Apache and PHP configuration problem mrzack Linux - Software 2 10-13-2006 07:00 PM
Apache PHP Configuration Problem Br. Nicholas Suse/Novell 3 09-20-2006 03:59 PM
PHP configuration problem mithras Linux - Software 1 09-14-2003 02:03 AM
PHP configuration problem mithras Linux - Newbie 2 09-14-2003 02:03 AM


All times are GMT -5. The time now is 03:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration