Difference between revisions of "User:Djgreen/WordPress: Engr Installation"
Jump to navigation
Jump to search
m (→DataBase) |
m |
||
Line 53: | Line 53: | ||
# Create a db called wp_SITENAME on mysql5.ece.ncsu.edu | # Create a db called wp_SITENAME on mysql5.ece.ncsu.edu | ||
# Create a user called wp_SITENAME on mysql5.ece.ncsu.edu, zero global perms, full perms on the wp_SITENAME db. | # Create a user called wp_SITENAME on mysql5.ece.ncsu.edu, zero global perms, full perms on the wp_SITENAME db. | ||
− | # Add the following SQL to the db | + | # Add the following SQL to the db: |
− | |||
<pre> | <pre> | ||
</pre> | </pre> | ||
− | |||
# Make sure you change the two wp_options (home and URL) to point to the URL of the new site. | # Make sure you change the two wp_options (home and URL) to point to the URL of the new site. | ||
# 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. | # 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. |
Revision as of 16:44, 19 April 2006
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
- Create a db called wp_SITENAME on mysql5.ece.ncsu.edu
- Create a user called wp_SITENAME on mysql5.ece.ncsu.edu, zero global perms, full perms on the wp_SITENAME db.
- Add the following SQL to the db:
- Make sure you change the two wp_options (home and URL) to point to the URL of the new site.
- 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.