Getting WordPress Multisite to Work Part 1

Discover how ManageWP solves all these problems and more!


Eventually I get up to the point where the domain mapping plugin tells me:

Please uncomment the line //define( ‘SUNRISE’, ‘on’ ); in your /home/mydomain/public_html/mydomain/wp-config.php

But there isn’t a line with that define in my config.php — which may be because the directions are written for WPmu and not WordPress 3 ?

So I go to my config.php and add this line just like I was told

define( 'SUNRISE', 'on' )

And lo and behold, I get this error! And by error, I mean that this is all that my website does now:

Parse error: syntax error, unexpected T_STRING in /home/mydomain/public_html/mydomain/wp-config.php on line 18

(I replaced my domain name in the above string because I’m not sure if I really want to be publishing details of my server config here.)

Anyway, it was around 3am and thus I spent about an hour fiddling with where I put the define in the config.php — does it go in the middle, at the top, at the end? Does it matter? Finally looking around I noticed a thread on this sorta topic where the person published their config.php and someone commented that it didn’t end with a


to close out the php code. And somehow I went AHA! and realized that I’m playing with CODE here and need to remember that.

So I looked at what I was doing more carefully and realized that I needed to add a “;” at the end of the define to make it:

define( 'SUNRISE', 'on' );

DUH! The perfect sort of problem to miss when sleepy and frustrated.

Again to make it clear:

Do this:

define( 'SUNRISE', 'on' );

Not this:

define( 'SUNRISE', 'on' )

And save yourself a few hours and get some sleep instead.

So far I’ve managed to get two sites running off the same install, however the I can’t get to any WordPress admin screens on the added site and so can’t post to it or use it — however it does show up at the proper domain with the Hello World post that it defaults to. So there’s still some little detail I’m missing with how to get the domain mapping to work.

Related Posts:

1 thought on “Getting WordPress Multisite to Work Part 1”

Comments are closed.