Where is conf.php?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bwv2
Forum Commoner
Posts: 83
Joined: Fri Jun 10, 2005 11:50 am
Location: AZ

Where is conf.php?

Post 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...)
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post 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?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

you probably mean php.ini?
bwv2
Forum Commoner
Posts: 83
Joined: Fri Jun 10, 2005 11:50 am
Location: AZ

Post 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?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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
bwv2
Forum Commoner
Posts: 83
Joined: Fri Jun 10, 2005 11:50 am
Location: AZ

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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?
Post Reply