1

Topic: Config file does not exist

After I filled in the values in install.php, it asked me to create a config.php file and copy and paste the values it provided.  Which I did.

When I click next, I get

The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first.


The file is definately there.  Any suggestions?

Re: Config file does not exist

Either you put the file in the wrong place, or you failed the copy procedure (missed the define() statement) or php was unable to include the file.. The choice is yours ;)

3

Re: Config file does not exist

Oh i see.  I just noticed it's supposed to go under /upload dir.

Re: Config file does not exist

You're only supposed to upload/move/copy/whatever the upload dir. The other stuff doesn't belong on your webserver.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5

Re: Config file does not exist

i have the same problem, its in the correct directory, and i copied the whole thing.

(config.php)

<?php

$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'forum';
$db_username = 'forumuser';
$db_password = 'pass';
$db_prefix = '';
$p_connect = false;

$cookie_name = 'punbb_cookie';
$cookie_domain = '';
$cookie_path = '/';
$cookie_secure = 0;

$language = 'en';

define('PUN', 1);

?>

anyone know whats wrong

6

Re: Config file does not exist

ok its the next day now, i tried index.php again and i am getting the following error message.

An error was encountered
Error: Unable to connect to MySQL server. Access denied for user: 'forumuser@localhost' (Using password: YES).

i have the mysqladmin program on, i checked the database exists using the mysql monitor.  But is the database i mage for punBB meant to be displayed in the databases section in the msqladmin program? coz it doesn't, it just showes the "test" database.

7

Re: Config file does not exist

Brainstem wrote:

.. i have the mysqladmin program on, i checked the database exists using the mysql monitor.  But is the database i mage for punBB meant to be displayed in the databases section in the msqladmin program? coz it doesn't, it just showes the "test" database.

Then your database would not appear to exist. Create the database and run install again.

8

Re: Config file does not exist

thanks guys, the problem i had was the username and password in the my.ini file was wrong (yes very silly mistake from me) as i have been trying to get a php music player to link to the database as well with diff usernames and stuff.  (not sure if that made sense, but anyway)

thanks for them help, hopefully i won't have anymore problems.

9

Re: Config file does not exist

haha i knew something was gonna go wrong.

The problem now is with the Base URL, when i try to change the setting in the admin section i get a message saying.

"Bad HTTP_REFERER. You were referred to this page from an unauthorized source. Please go back and try again. If the problem persists please make sure that 'Base URL' is correctly set in Admin/Options and that you are visiting the forum by navigating to that URL.
"
and the message also come up when i try to change my profile.
everythingelse work the login, the search, the user list.

I have the forums in the following location
http:/localhost/brainstem/forum/

i have tried all of the following base URL's
http:/localhost/
http:/localhost/brainstem/forum/
http:/localhost/brainstem/forum/index.htm

any ideas?

10

Re: Config file does not exist

that last baseline is meant to be index.php not index.htm

11

Re: Config file does not exist

that last baseline is meant to be index.php not index.htm

12

Re: Config file does not exist

http://localhost/brainstem/forum

13

Re: Config file does not exist

thanks, it was nortons internet security.  But that only fixed the admin options page, i am able to change setting in admin options, but still not able to change setting whereelse (categoried, forums).

i keep getting the same message

"Bad HTTP_REFERER. You were referred to this page from an unauthorized source. Please go back and try again. If the problem persists please make sure that 'Base URL' is correctly set in Admin/Options and that you are visiting the forum by navigating to that URL" (incase you missed it above)

Re: Config file does not exist

See this topic.

"Programming is like sex: one mistake and you have to support it for the rest of your life."