User:Djgreen/WordPress: Engr Installation

From WolfTech
Jump to navigation Jump to search

File Structure

  • Copy /wp-content and /wp-includes into /wp-admin (note that you will need to place plugins and templates in *both* the main /wp-content and the one copied within /wp-admin
  • Edit wp-admin/admin.php
#require_once('../wp-config.php');
require_once('./wp-config.php');

#require_once(ABSPATH . 'wp-admin/admin-functions.php');
#require_once(ABSPATH . 'wp-admin/admin-db.php');
require_once(ABSPATH . '/admin-functions.php');
require_once(ABSPATH . '/admin-db.php');

require(ABSPATH . '/menu.php');
#require(ABSPATH . '/wp-admin/menu.php');

#require_once(ABSPATH . '/wp-admin/admin-header.php');
require_once(ABSPATH . '/admin-header.php');

#require_once(ABSPATH . '/wp-admin/admin-header.php');
require_once(ABSPATH . '/admin-header.php');

#include(ABSPATH . 'wp-admin/admin-footer.php');
include(ABSPATH . 'admin-footer.php');

#if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))	
if (! file_exists(ABSPATH . "import/$importer.php"))

#include(ABSPATH . "wp-admin/import/$importer.php");
include(ABSPATH . "import/$importer.php");

#require_once(ABSPATH . 'wp-admin/admin-header.php');
require_once(ABSPATH . 'admin-header.php');

#require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
require_once(ABSPATH . 'upgrade-functions.php');

#include(ABSPATH . 'wp-admin/admin-footer.php');
include(ABSPATH . 'admin-footer.php');
  • Place a second copy of wp-config.php and wp-settings.php in the /wp-admin directory.
  • Edit /wp-admin/admin-header.php
#require(ABSPATH . '/wp-admin/menu-header.php');
require(ABSPATH . '/menu-header.php');

#require(ABSPATH . '/wp-admin/options-head.php');
require(ABSPATH . '/options-head.php');

DataBase

  1. Create a db called wp_SITENAME on mysql5.ece.ncsu.edu
  2. Create a user called wp_SITENAME on mysql5.ece.ncsu.edu, zero global perms, full perms on the wp_SITENAME db.
  3. Add the following SQL to the db.

  1. Make sure you change the two wp_options (home and URL) to point to the URL of the new site.
  2. The SQL above has a default sysadm user with the name "admin" and an initial pwsd of "12345". Login to the site. Change the "admin" paswd.