Difference between revisions of "User:Djgreen/WordPress: Engr Installation"

From WolfTech
Jump to navigation Jump to search
Line 68: Line 68:
 
#Create a folder called "uploads" in /wp-admin  
 
#Create a folder called "uploads" in /wp-admin  
 
#Adjust the AFS permissions of that folder to allow the Engr servers (pts group 'engr:www-servers') write access (all but 'a' rights).
 
#Adjust the AFS permissions of that folder to allow the Engr servers (pts group 'engr:www-servers') write access (all but 'a' rights).
#
+
#Edit /wp-admin/wp-includes/functions-post.php
 +
<pre>
 +
#$url = trailingslashit($siteurl) . $path;
 +
$url = trailingslashit($siteurl) . "wp-admin/" .$path;
 +
</pre>
 +
 
 +
Voila!

Revision as of 13:48, 21 April 2006

The following applies to the installation of version 2.0.2 of WordPress.

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.

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
#$url = trailingslashit($siteurl) . $path;
$url = trailingslashit($siteurl) . "wp-admin/" .$path;

Voila!