Title: Installation
Last modified: August 18, 2016

---

# Installation

 *  [mbaeducation](https://wordpress.org/support/users/mbaeducation/)
 * (@mbaeducation)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/)
 * Hi fellows,
 * I installed in my local computer f:\wordpress\…, and uploaded
 * f:\wordpress\(.php) –> (Web Server) \httpdocs\blog\
    f:\wordpress\ws-admin\(.
   php) –> (Web Server) \httpdocs\blog\ws-admin\
 * —- \httpdocs\ is my root ——
 * and create my dB (mba, johnmelo, password, localhost), please see below my config
   file (A)
 * but executing (Web Server) \httpdocs\blog\ws-admin\install.php
 * I always I receive the following answer (B) (Please help!):
 * ======== A ============== my config file:
 * <?php
    // ** MySQL settings ** // define(‘DB_NAME’, ‘mba’); // The name of the
   database define(‘DB_USER’, ‘johnmelo’); // Your MySQL username define(‘DB_PASSWORD’,‘
   password’); // …and password define(‘DB_HOST’, ‘localhost’); // 99% chance you
   won’t need to change this value
 * // You can have multiple installations in one database if you give each a unique
   prefix
    $table_prefix = ‘wp_mba’; // Only numbers, letters, and underscores please!
 * // Change this to localize WordPress. A corresponding MO file for the
    // chosen
   language must be installed to wp-includes/languages. // For example, install 
   de.mo to wp-includes/languages and set WPLANG to ‘de’ // to enable German language
   support. define (‘WPLANG’, ‘en’);
 * /* That’s all, stop editing! Happy blogging. */
 * define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.
   php’); ?>
 * ============= B ============== the received answer:
 * wp-config.php file. I need this before we can get started. Need more help? We
   got it. You can create a wp-config.php file through a web interface, but this
   doesn’t work for all server setups. The safest way is to manually create the 
   file.”); require_once(‘../wp-config.php’); require_once(‘./upgrade-functions.
   php’); $schema = ( isset($_SERVER[‘HTTPS’]) && strtolower($_SERVER[‘HTTPS’]) 
   == ‘on’ ) ? ‘[https://&#8217](https://&#8217); : ‘[http://&#8217](http://&#8217);;
   $guessurl = str_replace(‘/wp-admin/install.php?step=2’, ”, $schema . $_SERVER[‘
   HTTP_HOST’] . dirname($_SERVER[‘PHP_SELF’]) ); if (isset($_GET[‘step’])) $step
   = $_GET[‘step’]; else $step = 0; header( ‘Content-Type: text/html; charset=utf-
   8’ ); ?>
 * hide_errors(); $installed = $wpdb->get_results(“SELECT * FROM $wpdb->users”);
   if ($installed) die(‘
    ‘.__(‘Already Installed’).’ ‘.__(‘You appear to have already
   installed WordPress. To reinstall please clear your old database tables first.’).’
 * ‘); $wpdb->show_errors(); switch($step) { case 0: ?>
    ReadMe documentation at
   your leisure.’), ‘../readme.html’); ?>
 * ERROR: please type your e-mail address”)); } else if (!is_email($admin_email)){
   die (__(“ERROR: the e-mail address isn’t correct”)); } ?>
 * query(“INSERT INTO $wpdb->linkcategories (cat_id, cat_name) VALUES (1, ‘”.$wpdb-
   >escape(__(‘Blogroll’)).”‘)”); $wpdb->query(“INSERT INTO $wpdb->links (link_url,
   link_name, link_category, link_rss, link_notes) VALUES (‘[http://blogs.linux.ie/xeer/&#8217](http://blogs.linux.ie/xeer/&#8217);,‘
   Donncha’, 1, ‘[http://blogs.linux.ie/xeer/feed/&#8217](http://blogs.linux.ie/xeer/feed/&#8217);,”);”);
   $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss,
   link_notes) VALUES (‘[http://zengun.org/weblog/&#8217](http://zengun.org/weblog/&#8217);,‘
   Michel’, 1, ‘[http://zengun.org/weblog/feed/&#8217](http://zengun.org/weblog/feed/&#8217);,”);”);
   $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss,
   link_notes) VALUES (‘[http://boren.nu/&#8217](http://boren.nu/&#8217);, ‘Ryan’,
   1, ‘[http://boren.nu/feed/&#8217](http://boren.nu/feed/&#8217);, ”);”); $wpdb-
   >query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss,
   link_notes) VALUES (‘[http://photomatt.net/&#8217](http://photomatt.net/&#8217);,‘
   Matt’, 1, ‘[http://xml.photomatt.net/feed/&#8217](http://xml.photomatt.net/feed/&#8217);,”);”);
   $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss,
   link_notes) VALUES (‘[http://zed1.com/journalized/&#8217](http://zed1.com/journalized/&#8217);,‘
   Mike’, 1, ‘[http://zed1.com/journalized/feed/&#8217](http://zed1.com/journalized/feed/&#8217);,”);”);
   $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss,
   link_notes) VALUES (‘[http://www.alexking.org/&#8217](http://www.alexking.org/&#8217);,‘
   Alex’, 1, ‘[http://www.alexking.org/blog/wp-rss2.php&#8217](http://www.alexking.org/blog/wp-rss2.php&#8217);,”);”);
   $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss,
   link_notes) VALUES (‘[http://dougal.gunters.org/&#8217](http://dougal.gunters.org/&#8217);,‘
   Dougal’, 1, ‘[http://dougal.gunters.org/feed/&#8217](http://dougal.gunters.org/feed/&#8217);,”);”);//
   Default category $wpdb->query(“INSERT INTO $wpdb->categories (cat_ID, cat_name,
   category_nicename, category_count, category_description) VALUES (‘0’, ‘”.$wpdb-
   >escape(__(‘Uncategorized’)).”‘, ‘”.sanitize_title(__(‘Uncategorized’)).”‘, ‘
   1’, ”)”); // First post $now = date(‘Y-m-d H:i:s’); $now_gmt = gmdate(‘Y-m-d 
   H:i:s’); $wpdb->query(“INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt,
   post_content, post_excerpt, post_title, post_category, post_name, post_modified,
   post_modified_gmt, comment_count, to_ping, pinged, post_content_filtered) VALUES(‘
   1’, ‘$now’, ‘$now_gmt’, ‘”.$wpdb->escape(__(‘Welcome to WordPress. This is your
   first post. Edit or delete it, then start blogging!’)).”‘, ”, ‘”.$wpdb->escape(
   __(‘Hello world!’)).”‘, ‘0’, ‘”.$wpdb->escape(__(‘hello-world’)).”‘, ‘$now’, ‘
   $now_gmt’, ‘1’, ”, ”, ”)”); $wpdb->query( “INSERT INTO $wpdb->post2cat (`rel_id`,`
   post_id`, `category_id`) VALUES (1, 1, 1)” ); // Default comment $wpdb->query(“
   INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comment_author_email,
   comment_author_url, comment_date, comment_date_gmt, comment_content) VALUES (‘
   1’, ‘”.$wpdb->escape(__(‘Mr WordPress’)).”‘, ”, ‘[http://wordpress.org/&#8217](http://wordpress.org/&#8217);,‘
   $now’, ‘$now_gmt’, ‘”.$wpdb->escape(__(‘Hi, this is a comment.
    To delete a comment,
   just log in, and view the posts\’ comments, there you will have the option to
   edit or delete them.’)).”‘)”); // First Page $wpdb->query(“INSERT INTO $wpdb-
   >posts (post_author, post_date, post_date_gmt, post_content, post_excerpt, post_title,
   post_category, post_name, post_modified, post_modified_gmt, post_status, to_ping,
   pinged, post_content_filtered) VALUES (‘1’, ‘$now’, ‘$now_gmt’, ‘”.$wpdb->escape(
   __(‘This is an example of a WordPress page, you could edit this to put information
   about yourself or your site so readers know where you are coming from. You can
   create as many pages like this one or sub-pages as you like and manage all of
   your content inside of WordPress.’)).”‘, ”, ‘”.$wpdb->escape(__(‘About’)).”‘,‘
   0’, ‘”.$wpdb->escape(__(‘about’)).”‘, ‘$now’, ‘$now_gmt’, ‘static’, ”, ”, ”)”);
   $wp_rewrite->flush_rules(); // Set up admin user $random_password = substr(md5(
   uniqid(microtime())), 0, 6); $display_name_array = explode(‘@’, $admin_email);
   $display_name = $display_name_array[0]; $wpdb->query(“INSERT INTO $wpdb->users(
   ID, user_login, user_pass, user_email, user_registered, display_name, user_nicename)
   VALUES ( ‘1’, ‘admin’, MD5(‘$random_password’), ‘$admin_email’, NOW(), ‘$display_name’,‘
   admin’)”); $wpdb->query(“INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value)
   VALUES ({$wpdb->insert_id}, ‘{$table_prefix}user_level’, ’10’);”); $admin_caps
   = serialize(array(‘administrator’ => true)); $wpdb->query(“INSERT INTO $wpdb-
   >usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, ‘{$table_prefix}
   capabilities’, ‘{$admin_caps}’);”); $message_headers = ‘From: ‘ . $weblog_title.‘
   log in with the username “admin” and password “%2$s”.’), ‘../wp-login.php’, $
   random_password); ?>
 * Note that password carefully! It is a random password that was generated just
   for you. If you lose it, you will have to delete the tables from the database
   yourself, and re-install WordPress. So to review:’); ?>
 * admin
    wp-login.php

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357021)
 * Why is your admin section “ws-admin” instead of “wp-admin”?
 *  Thread Starter [mbaeducation](https://wordpress.org/support/users/mbaeducation/)
 * (@mbaeducation)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357022)
 * Hi,
 * In addition to my previous post:
 * 1. I use GoDaddy
 * 2. With the Plesk 7.5 I get:
    Welcome to phpMyAdmin 2.6.0-pl3 MySQL 3.23.58 running
   on localhost as johnmelo@localhost
 * Thanks!
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357024)
 * Can’t help you, sorry. I know nothing about godaddy, and I don’t want to learn.
 * However…. I ask again: why is your admin section “ws-admin” instead of “wp-admin”?
 * Wait a sec: if you installed on your local computer, what does godaddy have to
   do with it?
 *  Thread Starter [mbaeducation](https://wordpress.org/support/users/mbaeducation/)
 * (@mbaeducation)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357029)
 * Hi vkaryl,
 * Thanks, the post was in error, the directory in the Web Server is really \blog\
   wp-admin\.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357030)
 * Okay…. but explain please why if installing on your local machine, godaddy is
   involved.
 *  Thread Starter [mbaeducation](https://wordpress.org/support/users/mbaeducation/)
 * (@mbaeducation)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357031)
 * No,
 * I mention that the .php files are in my local computer and uploaded.
 * Thanks,
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357032)
 * Quote:
 * “Hi,
 * In addition to my previous post:
 * 1. I use GoDaddy
 * 2. With the Plesk 7.5 I get:
    Welcome to phpMyAdmin 2.6.0-pl3 MySQL 3.23.58 running
   on localhost as johnmelo@localhost
 * Thanks!”
 * Okay, wait. You’re really saying you just downloaded to your local machine, then
   put it up on godaddy?
 *  Thread Starter [mbaeducation](https://wordpress.org/support/users/mbaeducation/)
 * (@mbaeducation)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357033)
 * Yes,
 * I download and unziped and put in the local f:\wordpress\ directory. After, I
   changed the config file, etc., and upload to my Server at GoDaddy, in \httpdocs\
   blog\ and \httpdocs\blog\wp-admin\
 * \httpdocs\ is my root, and Plesk 7.5 sau the dB is in \localhost\, as I write
   in the config file. And apparently they don’t find the config, what is the real
   config directory?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357035)
 * Okay, you got me confused there. When you said “I installed in my local computer
   f:\wordpress\…,” I thought you meant on a local server, and nothing later would
   have been impossible with that (until I got to the godaddy stuff, see?)
 * You may have to contact godaddy’s support folks, there’s a fair amount of stuff
   that’s different about an install and the wp-config.php under their setup. Or
   using google, put this in the search box:
 * `site:wordpress.org/support godaddy install`
 * and read through the information in some of those threads.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Installation’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 9 replies
 * 2 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/installation-3/#post-357035)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
