OK, I'm trying to install Wordpress MU on our testing domain here. However, there some issues at play which probably make this install different from most others:
1) I'm trying to install it in a subdirectory (www.testing.example.com/wordpress_test/)
2) I have no direct access to .htaccess since the server admins use it to control security on the server and don't want people messing with it.
As a result, I had to send them what I wanted to go into the htaccess file, and I sent them the following:
------------------------------------------
RewriteEngine On
RewriteBase /wordpress_test/
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L] RewriteCond %{REQUEST_URI} !.*wp-content/plugins.* RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$ RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
------------------------------------------
I went through the installation screen and selected the subfolder option and entered all the database information, and when I clicked to proceed, I got an error, I guess unexpectedly, which said that it wouldn't edit the .htaccess file, and said that installation was aborted.
However, it created the wp-config file as well as database tables (though only wp_1_options appears to have any rows in it). When I try to go back to http://www.testing.example.com/wordpress_test/ I get a browser error saying "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
I've tried clearing my cache and cookies, but it still doesn't work.
The following is a copy of my wp_config file:
------------------------------------------
/** The name of the database for WordPress */
define('DB_NAME', 'xxxx');
/** MySQL database username */
define('DB_USER', 'xxxx');
/** MySQL database password */
define('DB_PASSWORD', 'xxxx');
/** MySQL hostname */
define('DB_HOST', 'xxxx');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
define('VHOST', 'no');
$base = '/wordpress_test/';
define('DOMAIN_CURRENT_SITE', 'testing.example.com' );
define('PATH_CURRENT_SITE', '/wordpress_test/' );
define('SITE_ID_CURRENT_SITE', 1);
define('BLOGID_CURRENT_SITE', '1' );
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
*
* @since 2.6.0
*/
define('AUTH_KEY', '60412eb3ca4b463dc4e1c5dcdface86316c582a3b92ef3b2d6d24684de7e804b');
define('SECURE_AUTH_KEY', 'c1ab0e04d475609901e96453f517cc67097a5f9decf96871704f17443be57450');
define('LOGGED_IN_KEY', '8f0561f1c0fe5cd0b39d198c4cad2a732f35c5c7dc3b08ee79c283fa60de7abc');
define('NONCE_KEY', 'f052924cc3e8e229542ca091afb39c72427f469a18ac01dfb4e7c6a05c1e1e05');
define('AUTH_SALT', '640861429330de823473d929d81aac49ca17a851d82537eb1cc30dbe64329d1e');
define('LOGGED_IN_SALT', '5b4a314a2c735652a659bd824b3bb27346764e81ece178e93b194a73f3fa15ab');
define('SECURE_AUTH_SALT', 'c2f194639d70324d2b3a9b10ad3aeb38f223990f6ce8577adb8b57d5308614c4');
/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de.mo to wp-content/languages and set WPLANG to 'de' to enable German
* language support.
*/
define ('WPLANG', '');
// double check $base
if( $base == 'BASE' )
die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );
// uncomment this to enable wp-content/sunrise.php support
//define( 'SUNRISE', 'on' );
// uncomment to move wp-content/blogs.dir to another relative path
// remember to change WP_CONTENT too.
// define( "UPLOADBLOGSDIR", "fileserver" );
// If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
// For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
// Set this value to %siteurl% to redirect to the root of the site
// define( 'NOBLOGREDIRECT', '' );
// On a directory based install you must use the theme 404 handler.
// Location of mu-plugins
// define( 'WPMU_PLUGIN_DIR', '' );
// define( 'WPMU_PLUGIN_URL', '' );
// define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );
// Uncomment to disable the site admin bar
//define( 'NOADMINBAR', 1 );
define( "WP_USE_MULTIPLE_DB", false );
/* That's all, stop editing! Happy blogging. */
/** WordPress absolute path to the Wordpress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
------------------------------------------
I'm not sure if this is some sort of error regarding wp_config (the first time I tried to install, I originally tried editing that file directly since that's what I was used to, but got the same redirect error) or whether it's somehow a problem with .htaccess.
Oh yeah, and this is the only wordpress install on this domain.
Any suggestions would be appreciated