The MU forums have moved to WordPress.org

user login using unique domain name (3 posts)

  1. mark_f_edwards
    Member
    Posted 14 years ago #

    hello -

    once again i apologize if this has been covered, but i am unable to locate it.

    my desire is to create a new blog but be able to refer to it using a unique domain name. Lets pretend I am starting with the domain name http;//ParentDomain.com and i want to have a child blog called http;//ChildDomain.com.
    (i am using case for readability)

    http;//ChildDomain.com domain path is the same as http;//ParentDomain.com

    here are the steps i have followed thus far.

    1) start with nice fresh mu install:

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

    and I even make a test posting for good measure to make sure everything is working properly

    2) i log in, go to "SiteAdmin-->Blogs, Add new blog":

    Blog Address: ChildDomain
    Blog Title: Marks Child Domain

    the new blog is now called http;//ChildDomain.ParentDomain.com

    3) using http;//ChildDomain.ParentDomain.com/wp-login/ i can log in to childdomain and create a test post

    the new post shows up at http;//ChildDomain.ParentDomain.com! very good!

    4) under "Blog Info (wp_blogs)" Domain, top left, I change

    ChildDomain.ParentDomain.com

    --to--

    ChildDomain.com

    and i leave "Update 'siteurl' and 'home' as well." checked.

    5) now i can refer to http;//ChildDomain.com and see my new post from the previous step - and everything is wonderful!

    Now here is where the trouble starts:

    i am UNABLE to log back into http;//ChildDomain.com/wp-login/ or ParentDomain.com/wp-login/ using the childDomain username/password.

    how can i log back into the ChildDomain blog? i can repeat step four and reset the Domain name from ChildDomain.com back to ChildDomain.ParentDomain.com and
    then i am able to log in using childDomain and make posts/edits.

    i tried to change the users "Role" but i get the impression this only affects ParentDomain, not ChildDomain.

    i have also tried mu-domain-mapping, but this plug-in does not really seem to make any difference. is this just more for documentation?

    thanks for any help!

    mark

  2. mark_f_edwards
    Member
    Posted 14 years ago #

    scratch this... i found the solution. i will post it ASAP.

  3. mark_f_edwards
    Member
    Posted 14 years ago #

    i am assuming ParentBlog.com is the parent blog and ChildBlog.com is the child blog. note that i am using "westhost" and i dont have access to the zone files.

    preliminary stuff parent blog

    1) request that westhost create a "custom zone file" wildcard entry for the parent wordpress domain

    2) change the http.conf record to look like this:

    <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>

    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) 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 http://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

About this Topic

  • Started 14 years ago by mark_f_edwards
  • Latest reply from mark_f_edwards