Title: wp-install.php problem
Last modified: August 18, 2016

---

# wp-install.php problem

 *  Anonymous
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/)
 * Sorry, about the big post but this is the message I got when I click on the wp-
   install.php from the readme.html. What don’t I have config correctly?
    Step 1
   Okay first we’re going to set up the links database. This will allow you to host
   your own blogroll, complete with Weblogs.com updates. Installing WP-Links. Checking
   for tables… ” . mysql_error()); if ($result != false) { echo “ Table ‘$tablelinkcategories’
   created OK \n”; $got_cats = true; } } else { echo “ Found table ‘$tablelinkcategories’,
   don’t need to create it… \n”; $got_cats = true; } if (!$got_links) { echo “ Can’t
   find ‘$tablelinks’, gonna create it… \n”; $sql = “CREATE TABLE $tablelinks ( 
   link_id int(11) NOT NULL auto_increment, link_url varchar(255) NOT NULL default”,
   link_name varchar(255) NOT NULL default ”, link_image varchar(255) NOT NULL default”,
   link_target varchar(25) NOT NULL default ”, link_category int(11) NOT NULL default
   0, link_description varchar(255) NOT NULL default ”, link_visible enum (‘Y’,’
   N’) NOT NULL default ‘Y’, link_owner int NOT NULL DEFAULT ‘1’, link_rating int
   NOT NULL DEFAULT ‘0’, link_updated DATETIME NOT NULL DEFAULT ‘0000-00-00 00:00:
   00’, link_rel varchar(255) NOT NULL default ”, PRIMARY KEY (link_id) ) “; $result
   = mysql_query($sql) or print (“Can’t create the table ‘$tablelinks’ in the database.”.
   $sql . “ ” . mysql_error()); $links = mysql_query(“INSERT INTO $tablelinks VALUES(”,‘
   [http://wordpress.org&#8217](http://wordpress.org&#8217);, ‘WordPress’, ”, ”,
   1, ”, ‘Y’, 1, 0, ‘0000-00-00 00:00:00’, ”);”); $links = mysql_query(“INSERT INTO
   $tablelinks VALUES (”, ‘[http://cafelog.com&#8217](http://cafelog.com&#8217);,‘
   b2’, ”, ”, 1, ”, ‘Y’, 1, 0, ‘0000-00-00 00:00:00’, ”);”); $links = mysql_query(“
   INSERT INTO $tablelinks VALUES (”, ‘[http://photomatt.net&#8217](http://photomatt.net&#8217);,‘
   Matt’, ”, ”, 1, ”, ‘Y’, 1, 0, ‘0000-00-00 00:00:00’, ”);”); $links = mysql_query(“
   INSERT INTO $tablelinks VALUES (”, ‘[http://zed1.com/b2/&#8217](http://zed1.com/b2/&#8217);,‘
   Mike’, ”, ”, 1, ”, ‘Y’, 1, 0, ‘0000-00-00 00:00:00’, ”);”); if ($result != false){
   echo “ Table ‘$tablelinks’ created OK \n”; $got_links = true; } } else { echo“
   Found table ‘$tablelinks’, don’t need to create it… \n”; $got_links = true; }
   if ($got_links && $got_cats) { echo “ Looking for category 1… \n”; $sql = “SELECT*
   FROM $tablelinkcategories WHERE cat_id=1 “; $result = mysql_query($sql) or print(“
   Can’t query ‘$tablelinkcategories’. ” . $sql . “ ” . mysql_error()); if ($result!
   = false) { if ($row = mysql_fetch_object($result)) { echo “ You have at least
   1 category. Good! \n”; $got_row = true; } else { echo “ Gonna insert category
   1… \n”; $sql = “INSERT INTO $tablelinkcategories (cat_id, cat_name) VALUES (1,‘
   General’)”; $result = mysql_query($sql) or print (“Can’t query insert category.”.
   $sql . “ ” . mysql_error()); if ($result != false) { echo “ Inserted category
   Ok \n”; $got_row = true; } } } } if ($got_row) { echo “ All done! \n”; } ?> Did
   you defeat the boss monster at the end? Great! You’re ready for Step 2.

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

 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23466)
 * Are you sure PHP is running on your server?
 *  Thread Starter Anonymous
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23467)
 * Yes, I believe so because I installed b2 withouth problem. I’m just have problem
   with wordpress.
 *  [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23469)
 * Wait, you have b2 running? Are you doing an install over b2, or are you just 
   upgrading to WP?
 *  Thread Starter Anonymous
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23471)
 * Yes, I installed b2 and got it running. Then I drop the database for b2 and start
   the wordpress install from scratch and that’s the current problem. I kept the
   b2 and wordpress folders separate from each other and follow the install structions
   separately. I also tried the b2-2 upgrade and that did not work either. I thought
   a fresh install of wordpress would be a good solution but did not work.
 *  [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23486)
 * If you dropped the tables, that could be the problem. Depending on what you are
   using for your control panel, it could be a bug. I have found that cpanel has
   a bug that shows that that tables are dropped, but they are still there.
    What
   you should probably do is try to use a new MySQL database. If you only have one
   available, put in a support ticket to your host and tell them the problem. They
   will wipe the tables out for you and that should be the solution. 🙂
 *  Thread Starter Anonymous
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23492)
 * Still have the same problem…I created another database different from the one
   for b2 and launch wp-install.php.
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23495)
 * Could you post a link to your phpinfo.php?
 *  Thread Starter Anonymous
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23500)
 * Sorry, I don’t give you a link but I’ll email the phpinfo page to you.
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23505)
 * I looked at it and I really don’t know what your problem is. There’s no reason
   why PHP code would be displayed to the browser in any situation if PHP is running
   on the server. I would recommend (if you can) trying it on a different server
   and see if you fare better there.
 *  Thread Starter Anonymous
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23519)
 * Thanks for the help. I’m really at a lost here. I installed b2 without problem
   but have a problem with wp.
    I don’t have another system to test this on. I’m
   using iBook OS X 10.2.6 with the default php and tested it with Safari, MS IE
   and Camino just of good measure. I’m surprise other people don’t have this problem.
   I just downloaded 7.2 beta and no luck.
 *  [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * (@dougal)
 * [23 years, 1 month ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-23523)
 * It really sounds like for some reason, your httpd isn’t recognizing the files
   as PHP code for some reason. You might try looking for help in some of the OS/
   X specific forums?
 *  Thread Starter Anonymous
 * [23 years ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-24045)
 * I think you use “open file” to open the readme.html.
    You need open the readme.
   html via httpd. as below [http://localhost/wordpress/readme.html](http://localhost/wordpress/readme.html)
 *  Thread Starter Anonymous
 * [23 years ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-24049)
 * I experienced the same problem with Safari. What you need to do rather then clicking
   on the wp-install.php from within the readme.html you need to type in the url
   like [http://localhost/wp-admin/wp-install.php.](http://localhost/wp-admin/wp-install.php.)
   
   I did open the readme.html just by clicking on that file which is the same as‘
   open file’. You can try sword’s respond also that sounds logical.

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

 The topic ‘wp-install.php problem’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 13 replies
 * 4 participants
 * Last reply from: Anonymous
 * Last activity: [23 years ago](https://wordpress.org/support/topic/wp-installphp-problem/#post-24049)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
