Jump to content

Recommended Posts

I am new to PHP, MySQL,Dreamweaver etc... Old Cobol Programmer here and my first post.
I have Apache 2.0.59 and PHP 5.1.6 and Dreamweaver 8.0 using PHPMyAdmin 2.9.1-rcl
when I run the PHPinfo script from my browser it states that the configuration file is pointing to C:\windows
I have searched through this entire compuetr and found no file php.* or php* that is in the windows directory. My php.ini file is in the c:\php5.php.ini location.
This may be the cause of me getting an "Invalid Server Index" error when attempting to start MyPHPAdmin.

Question 1: How do I change to point to the correct path for PHP?
Question 2: Is the MyPHPAdmin error noted above related to the configuration question or do I have 2 separate problems? If 2 separate problems... any ideas on the server index error as well.

Thanks for your help.
Open you httpd.conf file for Apache and add the following to the end of the httpd.conf file:
[code]PHPIniDir "C:/php5"[/code]

Save the httpd.conf file and restart Apache. PHP should now be using the correct php.ini

Not sure about the your secound question though. Is this error coming from phpMyadmin or from Apache?
Should work I see now reason why it shouldnt. the only option is to put the php.ini either the Windows folder (C:\WINDOWS) or the system23 folder (C:\WINDOWS\system32). Or add the php installation folder to the PATH variable.
  • 2 weeks later...
try this little trick to see what is happening,  helped me a lot.

Make a  info.php file and put these lines inside:

<?php
phpinfo();
?>

Then just run that info.php script and you´ll see all variables inside PHP. Take a look at the very first 3 or 4 lines, it will point you on where that  PHP.INI file it is.

You can also make a global system variable PHPRC pointing to your script path.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.