steps to get wordpress multiuser working

Sep 9, 12:59 AM

2022-03-23 – torguard did not let me log into multiuser, gave me “page not found” errors for XXXXX.mydomain.com/wp-admin/

2020-01-30

## manually added to httpd.conf by mark 2021-01-30    ##############ServerAlias *.comptonpesltrainers.com ;-)

https://forum.virtualmin.com/t/domain-name-wildcard-in-directives/109164/2
“Server Configuration” > “Website Options” > “Website matches all sub-domains?” (2022-03-22 this does not always work correctly )

2020-01-30

when creating new “alias” domain, choose “Alias of comptonpesltrainers.com”,

DO NOT CHOOSE “Alias of comptonpesltraienrs.com with own email” !

2010-09-07 – all this changed:

1) the mu-wordpress merged into regular wordpress

2) just go into wp-config and add this:
define(‘WP_ALLOW_MULTISITE’, true);

3) under tools, network (or something like that, you will be prompted to add this:
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘brucewampler.us’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );

3b) you will also be prompted to add stuff to .htaccess

i am assuming ParentBlog.com is the parent blog and ChildBlog.com is the child blog.

preliminary stuff parent blog

0) the domain name MUST be hosted at westhost:
ns1/2.west-datacenter.net
you cant get away with merely pointing the “A” record to 208.131.151.50 with 1and1.com dns service (1and1 does not allow for “custom-zone” wildcards.

1) request that westhost create a “custom zone file” wildcard entry for the parent wordpress domain – INCLUDE your last four digits of credit card! example:

I need a wild-card subdomain for domain.com Please add this as a CNAME
Account verification: *** Primary Account’s Domain: primary_domain.com

2) change the httpd.conf record to look like this:
(and note asterisk in ServerAlias!) – forgot 2011-04-11

<VirtualHost *:80>
   ServerName parentblog.com
   ServerAlias *.parentblog.com
   DocumentRoot /var/www/domains/parentblog.com/www
   <Directory /var/www/domains/parentblog.com/www>
       Options +FollowSymlinks
       AllowOverride FileInfo Options
   </Directory>
</VirtualHost>

NOTE: good test to make sure this is all done properly:
$ host childblog.parentblog.com;

as a result we should see:
childblog.parentblog.com is an alias for parentblog.com.
parentblog.com has an address 208-131-151-50

NOT JUST
xx.800-language.com has address 208.131.151.50

create the database

1) create the database and note dbname, db-username, and password

install multi-user wordpress

1-4) curl http://mu.wordpress.org/latest.tar.gz | tar -xzv —strip-path=1 ;

1) wget http://mu.wordpress.org/latest.tar.gz from
http://mu.wordpress.org/latest.tar.gz – right-click the “tar.gz” option and “copy link location”

2) tar -zxvf *.gz

3) go down into the new directory and MOVE all the entries up one level

4) remove the tar file and the now empty directory
rm latest.tar.gz; rmdir wordpress-mu ;

5) install wordpress (using default subdomains option) (just go to the website and you should be prompted for database name, db username and db-username-password)

5a) notice the CHMOD command – a cut-paste should do it

5b) *****NOTE PASSWORD

6) log in and change the password – create test postiing

7) make plug-ins active for ALL blogs, not just the parent blog (plugins enabled checkbox)

8) install “wordpress mu domain mapping” plugin Donncha

9) activate this plug-in

9) find . -name sunrise.php -exec ls -l {} ;

10) copy the sunrise.php folder into the wp-content folder: cp ./wp-content/plugins/wordpress-mu-domain-mapping/sunrise.php ./wp-content/sunrise.php

11) uncomment the SUNRISE definition in ./wp-config.php
define( ‘SUNRISE’, ‘on’ );

12) under “tools—>domain mapping” – enter ’208.131.151.50’ into “server IP address”

to create a new “child” blog

1) use either A record or domain name server to “point” to our server.

2) in the /etc/httpd/conf/httpd.conf, change the VirtualHost

<VirtualHost *:80>
   ServerName childblog.com
   ServerAlias www.childblog.com
   DocumentRoot /var/www/domains/parentblog.com/www
</VirtualHost>

3) in the parentblog.com, go to “site admin—->blogs” and create new blog

4) under “site admin—->users” change password for new user under ‘users’

5) log out of parentblog.com

5) log in to childblog.parentblog.com using this new username/password

6) under “plugins” activate domain mapping

7) under “tools—>domain mapping” – enter the new domain name

8) log out of childblog.parentblog.com

9) log into childblog.com and create a test blog

written from this

Mark Edwards

,

---

Commenting is closed for this article.

---