Title: WordPress already installed error?
Last modified: August 18, 2016

---

# WordPress already installed error?

 *  [danielledennie](https://wordpress.org/support/users/danielledennie/)
 * (@danielledennie)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/)
 * When trying to activate WordPress, we received the error below. We are not sure
   what this means. Can anyone help?
 * danielle
 * 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’); $guessurl = str_replace(‘/wp-admin/install.php?step=2’, ”, ‘[http://&#8217](http://&#8217);.
   $_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(“UPDATE $wpdb->options SET option_value = ‘$weblog_title’ WHERE option_name
   = ‘blogname'”); $wpdb->query(“UPDATE $wpdb->options SET option_value = ‘$admin_email’
   WHERE option_name = ‘admin_email'”); // Now drop in some default links $wpdb-
   >query(“INSERT INTO $wpdb->linkcategories (cat_id, cat_name) VALUES (1, ‘”.addslashes(
   __(‘Blogroll’)).”‘)”); $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name,
   link_category, link_rss) VALUES (‘[http://blog.carthik.net/index.php&#8217](http://blog.carthik.net/index.php&#8217);,‘
   Carthik’, 1, ‘[http://blog.carthik.net/feed/&#8217](http://blog.carthik.net/feed/&#8217););”);
   $wpdb->query(“INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss)
   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)
   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)
   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)
   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)
   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)
   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)
   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) VALUES (‘0’, ‘”.addslashes(__(‘Uncategorized’)).”‘, ‘”.sanitize_title(
   __(‘Uncategorized’)).”‘)”); // 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_title, post_category, post_name,
   post_modified, post_modified_gmt) VALUES (‘1’, ‘$now’, ‘$now_gmt’, ‘”.addslashes(
   __(‘Welcome to WordPress. This is your first post. Edit or delete it, then start
   blogging!’)).”‘, ‘”.addslashes(__(‘Hello world!’)).”‘, ‘0’, ‘”.addslashes(__(‘
   hello-world’)).”‘, ‘$now’, ‘$now_gmt’)”); $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_author_IP, comment_date, comment_date_gmt, comment_content)
   VALUES (‘1’, ‘”.addslashes(__(‘Mr WordPress’)).”‘, ”, ‘[http://wordpress.org&#8217](http://wordpress.org&#8217);,‘
   127.0.0.1’, ‘$now’, ‘$now_gmt’, ‘”.addslashes(__(‘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.’)).”‘)”); // Set up admin user $random_password
   = substr(md5(uniqid(microtime())), 0, 6); $wpdb->query(“INSERT INTO $wpdb->users(
   ID, user_login, user_pass, user_nickname, user_email, user_level, user_idmode,
   user_registered) VALUES ( ‘1’, ‘admin’, MD5(‘$random_password’), ‘”.addslashes(
   __(‘Administrator’)).”‘, ‘$admin_email’, ’10’, ‘nickname’, NOW() )”); $message_headers
   = ‘From: ‘ . stripslashes($_POST[‘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
 * WordPress, personal publishing platform.’); ?>

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/wordpress-already-installed-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wordpress-already-installed-error/page/2/?output_format=md)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213693)
 * It means PHP is not runing on your server.
 *  [arepo](https://wordpress.org/support/users/arepo/)
 * (@arepo)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213867)
 *  [arepo](https://wordpress.org/support/users/arepo/)
 * (@arepo)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213868)
 *  [arepo](https://wordpress.org/support/users/arepo/)
 * (@arepo)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213869)
 *  [arepo](https://wordpress.org/support/users/arepo/)
 * (@arepo)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213870)
 * I’m not sure the problem is with PHP not running on your server. You can check
   this though by trying to run the following code:
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213871)
 * `<?php infophp(); ?>`
 *  [arepo](https://wordpress.org/support/users/arepo/)
 * (@arepo)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213872)
 *  [arepo](https://wordpress.org/support/users/arepo/)
 * (@arepo)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213873)
 * Sorry all those postings, I was trying to show code and couldn’t get the backticks
   to work. Anyhow, Just type in a plaintext editor, save it to your server and 
   see if you get info about the PHP version on the server it means PHP is running.
   I was having the same problem as you. I reinstalled MySQL, deleted MySQL receipts,
   reinstalled, dropped tables, databases, ect. After doing all this I just happened
   to point my browser at the old site and to my supprise I was taken to the install
   page instead of the WordPress Already Installed page, go figure. Everything seems
   to be working fine now. So maybe try that or maybe even a different browser. 
   I know it sounds weird but I’ve had some problems with Safari and serving content
   on localhost. Hope this helps a little.
 *  [emccomas](https://wordpress.org/support/users/emccomas/)
 * (@emccomas)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213917)
 * I am having the same problem as danielle. I tested the php using the infophp()
   command and it works fine.
 * arepo, what do you mean when you say I pointed my browser at the old site?
 *  [w2dmb](https://wordpress.org/support/users/w2dmb/)
 * (@w2dmb)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213921)
 * I am having exactly the same problem.
 * My server stats say that PHP is enabled, and when I try to run the <?php infophp();?
   > script, it gives me a completely blank pagf, and the status bar says ‘Done’.
 * Any ideas?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213922)
 * Can we have a lot more info about the hosting please ?
 *  [w2dmb](https://wordpress.org/support/users/w2dmb/)
 * (@w2dmb)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213923)
 * What are you looking for?
    I am with a company called Dataspace.co.za I have 
   create a MySQL database, and added the details into my wp_config file, What else
   do you need? I can find out for you.
 * Thanks 😀
 *  [emccomas](https://wordpress.org/support/users/emccomas/)
 * (@emccomas)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213926)
 * I’m still having the same problem that danielle reported. I have confirmed that
   Apache and php are functioning properly. I can’t seem to get wordpress installed.
   Any ideas?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213927)
 * w2dmb / emccomas:
    I realise this is frustrating for you, but in order to get
   the right information to you – rather than throwing a ton of links at you – it
   would be really helpful to get as much info as possible about your hosts:
 * – Who are you hosted with ?
    – Windows or Linux Server ? – php / mysql versions–
   what have you tried from your searches here ? – have you contacted your host 
   about this ? – do you have cpanel / plesk / vdeck ? – _exactly_ what happens 
   when you try to install ? – can we have a link to where the files are installed?
   Info, lots of info is what we need – and then we are better informed to help 
   you 🙂
 *  [emccomas](https://wordpress.org/support/users/emccomas/)
 * (@emccomas)
 * [21 years ago](https://wordpress.org/support/topic/wordpress-already-installed-error/#post-213929)
 * I am attempting to host this on my local machine. I am using Apache 2.0 and php
   5.0.4. My machine is a Windows 2000 system. I am using MySQL 4.1.
 * I can connect to my machine through Netscape. My machine reports that Apache 
   is installed correctly when I do this. I can also log onto the MySQL database
   from a command window and execute various commands. And, I can test php using
   infophp() that I learned about on this website.
 * I don’t have, or know what, cpanel / plesk / vdeck are.
 * When I try to install wordpress by opening the install.php file from the Netscape
   browser, I get the exact same message that appears at the top of this thread.
 * I am located behind multiple firewalls, and a secure government site, so I can’t
   provide a link to my site.
 * I have used my system as a web host for other pieces of software with success.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/wordpress-already-installed-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wordpress-already-installed-error/page/2/?output_format=md)

The topic ‘WordPress already installed error?’ is closed to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 21 replies
 * 7 participants
 * Last reply from: [w2dmb](https://wordpress.org/support/users/w2dmb/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/wordpress-already-installed-error/page/2/#post-213996)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
