diff --git a/wp-admin/install-config.php b/wp-admin/install-config.php new file mode 100644 index 0000000000..a12de63908 --- /dev/null +++ b/wp-admin/install-config.php @@ -0,0 +1,143 @@ + + + + +WordPress › Setup Configuration File + + + + +

WordPress

+ +

Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.

+
    +
  1. Database name
  2. +
  3. Database username
  4. +
  5. Database password
  6. +
  7. Database host
  8. +
  9. Table prefix (if you want to run more than one WordPress in a single database)
  10. +
+

In all likelyhood, these items were supplied to you by your ISP. If you do not have this information, then you will need to contact them before you can continue. If you’re all ready, let’s go!

+ +

+
+

Below you should enter your database connection details. If you're not sure about these, contact your host.

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Database NameThe name of the database you want to run WP in.
User NameYour MySQL username
Password...and MySQL password.
Database Host99% chance you won't need to change this value.
Table PrefixIf you want to run multiple WordPress installations in a single database, change this.
+ +
+ $line) { + switch (substr($line,0,16)) { + case "define('DB_NAME'": + fwrite($handle, str_replace("wordpress", $dbname, $line)); + break; + case "define('DB_USER'": + fwrite($handle, str_replace("'username'", "'$uname'", $line)); + break; + case "define('DB_PASSW": + fwrite($handle, str_replace("'password'", "'$passwrd'", $line)); + break; + case "define('DB_HOST'": + fwrite($handle, str_replace("localhost", $dbhost, $line)); + break; + case '$table_prefix ': + fwrite($handle, str_replace('wp_', $prefix, $line)); + break; + default: + fwrite($handle, $line); + } + } + fclose($handle); + chmod('../wp-config.php', 0666); +?> +

All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to run the install!

+ + + diff --git a/wp-admin/install.php b/wp-admin/install.php index ba8d65fe6d..533dbd290c 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -1,15 +1,15 @@ create one before moving on."); require_once('../wp-config.php'); - +require('upgrade-functions.php'); $step = $HTTP_GET_VARS['step']; if (!$step) $step = 0; ?> - WordPress — Installation + WordPress › Installation