Forum archive
Problem when enabling network/multisite on Wordpress 3.0 appliance
Greetings to all.
First of all i want to congradulate you for the fantastic work.
There seems to be a strange redirection problem when enabling the network feature in the Wordpress appliance. Network is needed to be able to use the multisite feature.
Let's take it step by step.
I booted a fresh Wordpress appliance and gave it the LAN IP 192.168.10.232.
You can see it works just fine until this step.

Also the login redirection works just fine

Under Settings->General i see the Wordpress address and Site address as folows:

Using this
http://codex.wordpress.org/Create_A_Network
as a guideline, i added in wp_config.php the following.
define ('WP_ALLOW_MULTISITE', true);
At this point my wp_config.php was like this:
<?php
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', '620ab1d6ce38fca0d6ade6e847ea4627');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define('AUTH_KEY', '47e2f590f4c14d20cce3b7bea447031cfd2c0a42cda452254506492d2f28b34e');
define('AUTH_KEY', '47e2f590f4c14d20cce3b7bea447031cfd2c0a42cda452254506492d2f28b34e');
define('LOGGED_IN_KEY', '9fe94b4ad1a655308aca618e98fdc4496926c7dd5976174c35ab50810f53e626');
define('NONCE_KEY', '8d84b40c24280d56392240c701c3bc5b0e01258bab39c80736d379aced1a9ab7');
$table_prefix = 'wp_';
define ('WP_ALLOW_MULTISITE', true);
define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST']);
// WordPress Localized Language, defaults to English.
define ('WPLANG', '');
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
As a result the Network option appeared under Tools

There is a warning on top that says
Because your install is in a directory, the sites in your WordPress network must use sub-directories.
Warning! The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.
After i pressed the "Install" button i get a screen about the changes i must make in order to finish the Network installation

So i created the blogs.dir folder

Added the provided lines to wp_config.php, so it became something like this:
<?php
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', '620ab1d6ce38fca0d6ade6e847ea4627');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define('AUTH_KEY', '47e2f590f4c14d20cce3b7bea447031cfd2c0a42cda452254506492d2f28b34e');
define('AUTH_KEY', '47e2f590f4c14d20cce3b7bea447031cfd2c0a42cda452254506492d2f28b34e');
define('LOGGED_IN_KEY', '9fe94b4ad1a655308aca618e98fdc4496926c7dd5976174c35ab50810f53e626');
define('NONCE_KEY', '8d84b40c24280d56392240c701c3bc5b0e01258bab39c80736d379aced1a9ab7');
define( 'SECURE_AUTH_KEY', '^!]`-[T8nsP,o9k+D7;?/*dH:@,FFrBQ5-[9-@yAou`#=_|EEQN]{tF:d(,m#+^T' );
define( 'AUTH_SALT', 'h4b*FqVN37XMe=hkgyLt2=2abz7_BaHfk>_8+IDpH=m?&ff3!UC]kfFUbe=G&ZW-' );
define( 'SECURE_AUTH_SALT', '}cn-)!_!E?OVr(erZU0[V`F45L8 pTdxY|[h/0lI!J#QCg+):^|CBMLLQ{jJGh:H' );
define( 'LOGGED_IN_SALT', 'rr^S|yNOaS24wCa-~}=_7W/>+h/5U}_ {2_<U?%XaReu_.1{FAP@Y{+ro3x{&F+^' );
define( 'NONCE_SALT', '%jM`9-Fh@q[{6uk!+GC(?Cw>Ho~gf|myX!@Y(A^E5mvk2C`<>Yg)lm5KG,MPmx;H' );
$table_prefix = 'wp_';
define ('WP_ALLOW_MULTISITE', true);
define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST']);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', '192.168.10.232' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
// WordPress Localized Language, defaults to English.
define ('WPLANG', '');
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
and used the provided code to create a .htaccess file under /var/www/wordpress in the appliance

After making the changes the problem appears.
The fronpage and the login page are stripped out of graphics.See below


Entering the username and password on the login page i get redirected to: http://127.0.0.1/wp-login.php

Also when i try to enter http://192.168.10.232/wp-admin i get redirected to: (again to 127.0.0.1 )

Of cource any access to the admin panel was not possible.
After some hours i did the following and made some progress.Using phpmyAdmin i have changed in the Wordpress database, in the wp_options table the siteurl field from
and managed to login to admin panel

But that's not a complete solution.Even after i entered the admin panel i get redirections to 127.0.0.1.See below (visit is highlighted with the mouse)

I don't know how to fix this. If i restore the initial wp_config.php, remove the .htaccess file from /var/www/wordpress and restore the initail value in the siteurl filed in the database,the site works like normal again, with no multi-site feature.
Do you have any idea how can i get the multisite feature to work?
Excuse my bad english.
Best Regards.
Alexandros.
P.S. I don't now if that rings a bell to someone, but when i tried to enter PhpMyAdmin i accidently didn't use https but http
Of course i got an error page saying that i must use https and i got a "correct" https link. That link as well pointed to https://127.0.0.1:12322 and not https://192.168.10.232:12322

Install a fresh WP appliance ( or rollback all changes ) and edit the wp-config.php file and add these directives in the 'define' section
define('WP_HOME',$SERVER_NAME); define('WP_SITEURL',$SERVER_NAME);With that setting the site can be accessed by any IP configured in that box