User:Djgreen/WordPress: Engr Installation

From WolfTech
< User:Djgreen
Revision as of 16:42, 3 January 2007 by Djgreen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The following applies to the installation of version 2.0.2 of WordPress within the College of Engineering webservers.

File Structure

(WolfTech people -- look in /wp/wordpress-template/ to find a version with these steps complete)

  • 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 (or copy existing wp_template DB).
  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.

Uploads

If you want to allow the administrative option of uploading files, you need to do the following. NOTE: Engr servers limit the filesize of uploads to just under 15MB.

  1. Within the Admin pages, under Options>Uploading, type "uploads" as the storage folder.
  2. Create a folder called "uploads" in /wp-admin
  3. Adjust the AFS permissions of that folder to allow the Engr servers (pts group 'engr:www-servers') write access (all but 'a' rights).
  4. Edit /wp-admin/wp-includes/functions-post.php (line 886 in version 2.0.2):
#$url = trailingslashit($siteurl) . $path;
$url = trailingslashit($siteurl) . "wp-admin/" .$path;

Voila!

Upgrading from 2.0.2 to 2.0.5

  1. Backup databases
  2. Backup folder
  3. Deactivate ALL plugins
  4. Copy new files OVER old ones.