Page 1 of 1

Where is conf.php?

Posted: Tue Nov 28, 2006 11:48 am
by bwv2
This seems like a very basic question that only a complete idiot would ask. That's why I'm asking it. I'll play village idiot for today.

I need to update some values in conf.php so that I can get mysql calls to work on my local machine, but I can't find conf.php. I have done a search of my entire machine and can't find it. I also checked my other computer, in which mysql calls work fine, and i can't find it on there either. Am I missing something here?

I need to update my hostname, username, and password in conf.php so that my database queries will be allowed. Anyone? (be gentle...)

Posted: Tue Nov 28, 2006 12:15 pm
by Zoxive
Its kind of hard for someone on the internet to tell you, where you missed placed your file.

Did you even write a conf.php file?

Posted: Tue Nov 28, 2006 12:15 pm
by Luke
you probably mean php.ini?

Posted: Tue Nov 28, 2006 12:26 pm
by bwv2
In researching why my mysql calls weren't going through, I was told that I need to edit the host, username and password lines in the "conf.php" file. I was not aware thet these lines exist (or should exist) in php.ini. Is conf.php simply an underground nerdy term for php.ini?

Posted: Tue Nov 28, 2006 12:35 pm
by Luke
no... I just figured that's what you might have meant. Are you working with a script somebody else built? Give us the whole story

Posted: Tue Nov 28, 2006 12:47 pm
by bwv2
I have been developing a web application over the last couple of years on my local machine. The app uses html, php, and mySQL. I set up my local machine a couple of years ago by installing WAMP. I am running Windows XP.

I ran into this problem back then when I set up my local server, but was able to fix it by changing the password/username lines in some configuration file. I hired someone to configure my production server some time later, so I had nothing to do with that. Now I am setting up a laptop with a local server so I can take my work on the road. I just ran WAMP setup and got everything to run correctly. Now when I login to the application and start running it, it stops at the first mySQL call and says something to the tune of "could not connect to database xyz using user@...access is denied" (I'm not around the laptop now so I can't tell you the exact wording).

I'm fairly certain that I just need to change the username and password in a conf file to match the one being sent by the php call. Does that help? If it's any help, I installed mysql Administrator, and when I start it up I get an error saying it couldn't locate a configuration file (again, I can't tell you the exact wording, which isn't any help at all), but I click OK and can still access and edit my databases.

Posted: Tue Nov 28, 2006 12:50 pm
by Luke
I know phpmyadmin has a file called my.conf.php or something like that... which contains username/password if you want it in there. As far as YOUR application, I believe you are the only one who is going to be able to locate/create your own configuration file. That is information you should have had to set up at one point unless you set up your php.ini file to know that stuff automatically.

Posted: Tue Nov 28, 2006 1:52 pm
by RobertGonzalez
Couple of things to consider:

1) Search your system for all files where files might contain the name 'conf.php' or the file itself contains the string '$host' or something to that effect.
2) The error you're getting could be from any number of issues. It could be a username/password conflict, or it could be a client API issue.
3) Are you attempting to take an app that is running on one system and drop it onto another system? If so, what are the setups on the first and new machines?