X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..cc7b1505cd9fafd87c3672f669e13e98b0c544f7:/wp-admin/setup-config.php diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 38efd2b7..c3bc45c9 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -1,17 +1,18 @@ installing now."); - if (!file_exists('../wp-config-sample.php')) die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.'); + $configFile = file('../wp-config-sample.php'); if (!is_writable('../')) die("Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."); -$step = 0; -if(isset($_GET['step'])) $step = $_GET['step']; + +if (isset($_GET['step'])) + $step = $_GET['step']; +else + $step = 0; header( 'Content-Type: text/html; charset=utf-8' ); ?> @@ -20,45 +21,74 @@ header( 'Content-Type: text/html; charset=utf-8' ); WordPress › Setup Configuration File - -

WordPress

+ +

WordPress

The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.

"); switch($step) { case 0: ?> +

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. Database username
  3. -
  4. Database password
  5. +
  6. Database password
  7. Database host
  8. Table prefix (if you want to run more than one WordPress in a single database)
@@ -70,40 +100,42 @@ switch($step) { case 1: ?>

-
+

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

- + - + - + - + - + -
Database Name The name of the database you want to run WP in.
User Name Your MySQL username
Password ...and MySQL password.
Database Host 99% chance you won't need to change this value.
Table Prefix If you want to run multiple WordPress installations in a single database, change this.
- + +

+ +

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!

+?> +