[Info] I accidently deleted my config.php file.WHAT DO I DO?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
Kylecool
Registered User
Posts: 674
Joined: Sat Feb 02, 2002 3:51 am
Location: Southern California, U.S.A! GO USA!
Contact:

[Info] I accidently deleted my config.php file.WHAT DO I DO?

Post by Kylecool »

New link to the Knowledge Base

If you are like one of the many people who accidently delete their config.php file, you need the code. Simply place the following code in notepad and save it as config.php and upload it to your phpBB directory. Please note that you must change your mysql host, username, password, and database name.

Code: Select all

<?php

//
// phpBB 2.x auto-generated config file
// Do not change anything in this file!
//

$dbms = "mysql";

$dbhost = "localhost";
$dbname = "dbnamehere";
$dbuser = "usernamehere";
$dbpasswd = "dbpasswordhere";

$table_prefix = "phpbb_";  

define('PHPBB_INSTALLED', true);

?>
Please note that your table prefix may be different. Make sure you change dbms, depending on which database you use, and the dbname, dbuser, and dbpasswd. That's it! Upload to your phpBB directory.

-Kyle
VACATION UNTIL june 29TH or 30th. :)
Jarf
Registered User
Posts: 1202
Joined: Mon Sep 17, 2001 1:50 am
Location: Albuquerque, NM
Contact:

Post by Jarf »

FYI:
Your choices of values for the $dbms are:
  • MySQL 3.x

    Code: Select all

    $dbms = "mysql";
    
  • MySQL 4.x

    Code: Select all

    $dbms = "mysql4";
    
  • PostgreSQL 7.x

    Code: Select all

    $dbms = "postgres";
    
  • MS SQL Server 7/2000

    Code: Select all

    $dbms = "mssql";
    
  • MS SQL Server [ODBC]

    Code: Select all

    $dbms = "mssql-odbc";
    
  • MS Access [ODBC]

    Code: Select all

    $dbms = "msaccess";
    
Locked

Return to “2.0.x Support Forum”