The MU forums have moved to WordPress.org

How do I blog to multiple blogs (8 posts)

  1. TonyVitabile
    Member
    Posted 15 years ago #

    OK, I'm totally confused here.

    I have WordPress MU installed & running in 2 places. One is under MAMP on my MacBook, and the other is on a host. I use the MAMP install to test ideas before I put them in place on the host.

    I've been working on a plug in and I had an epiphany last night about a better way to do what I want. It means scrapping some of what I've built, but in total it will be less work & should be up & running sooner.

    My site is set up so that the home page is a page and not the posts page. The first blog MU installs is set to display on a page. All this is working. The path to the primary blog is http://localhost./worship/<blog name>.

    The install is also set up to use subdirectories and NOT subdomains for additional blogs. I have set up a new blog whose path is http://localhost./worship/sermons. When I navigate to this page, I see a message about nothing being found. I think this is right because there are no posts in the new blog yet. When I check in the database, the tables for blog 2 are there, so that's right.

    The problem is that when I go to my dashboard, it only lets me create posts for the original blog. I went to the Dashboard | My Blogs page & set the second blog as my primary blog, but it still won't let me enter posts into the new blog.

    I'm set up as an administrator in both blogs. How do I enter content into the new blog???

    Tony

  2. andrea_r
    Moderator
    Posted 15 years ago #

    Your install is messed up.

    First, it is really on localhost? You should have seen a message on install about plain ol' localhost not being supported. In your hosts file, you can make it localhost.wpmu if you like, but it has to be something.something locally.

    You;re gettign a message abotut he blgo notbeing found because you probably sdon;t have the mod_rewrite module working and/or that IIS module needed on Windows boxes. Every new blog is set with a default post.

    This is also why you can't log in to the back of the sub-blog.

  3. TonyVitabile
    Member
    Posted 15 years ago #

    It's on localhost. That period isn't the end of that sentence, it's the address. The domain name is blank. It's been working fine since it was installed. Of course, up until today, I only had one blog running . . .

    I started phpmyadmin & took a peek at the contents of the wp_2_posts table & sure enough, there are 2 entries in there, one is a default post & the other is a sample page.

    I'll go research how to turn on mod_rewrite under MAMP. I'll turn that on & see what happens.

    Thanks

    Tony

  4. TonyVitabile
    Member
    Posted 15 years ago #

    I found the information in the readme.txt file. I'm a bit confused by one thing in it. I'm very new to Apache so please be gentle.

    This is the paragraph in the readme.txt file that I'm having problems with:

    3. In the <VirtualHost> section of the config file for your host there
    will be a line defining the hostname. You need to add the following
    if you want virtual hosts to work properly:
    "ServerAlias *.domain.tld"
    Replace domain.tld with whatever your one is, and remove the quotes.

    I can't find a <VirtualHost> section in the config file. This probably has to go with what you said about needing "localhost.<something>"

    So do I need to add a <VirtualHost> section? Would it look like:

    <VirtualHost>
    ServerAlias *.wpmu
    </VirtualHost>

    Is that all I have to do?

    Thanks

    Tony

  5. TonyVitabile
    Member
    Posted 15 years ago #

    From what I can tell, mod_rewrite is working, but I still have something wrong. It's probably localhost. I found the hosts file; I'm going to add something to that & set up a virtual host & see what happens

    Tony

  6. TonyVitabile
    Member
    Posted 15 years ago #

    OK, I can't get this to work right. Where I am right now, I can't even see anything installed.

    Here's my local hosts file:

    ##
    # Host Database
    #
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    ##
    127.0.0.1       localhost
    255.255.255.255 broadcasthost
    ::1             localhost
    fe80::1%lo0     localhost
    127.0.0.1       localhost.dev

    There is an .htaccess file in the root folder of my local website. This is what's in it:

    Redirect /index.html http://localhost.dev/worship/

    The idea was to redirect any requests to the root of the local site into WPMU, which I installed in /worship/.

    Finally, here's the important parts of my httpd.conf file from MAMP:

    LoadModule rewrite_module modules/mod_rewrite.so
    . . .
    ServerName localhost:80
    UseCanonicalName Off
    DocumentRoot "/Users/vitabile/Sites/church"
    <Directory "/Users/vitabile/Sites/church">
        Options All
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    
    . . .
    #
    # Use name-based virtual hosting.
    #
    
    NameVirtualHost *
    
    #  Leave this one alone - it makes sure that localhost works.
    <VirtualHost *>
    	DocumentRoot "/Applications/MAMP/htdocs"
    	ServerName localhost
    </VirtualHost> 
    
    #  Add new hosts here for development
    
    <VirtualHost *>
    	DocumentRoot /Users/vitabile/Sites/church/
    	ServerName localhost.dev
    </VirtualHost>

    Can anybody tell me what's wrong with the above?

    Thanks

    Tony

  7. andrea_r
    Moderator
    Posted 15 years ago #

  8. TonyVitabile
    Member
    Posted 15 years ago #

    Well, it took me two tries at reinstalling, but I got it working.

    I tried the instructions at the first link but after I finished installing WPMU, I kept getting "403 Forbidden" errors. I tried changing the permissions on the files, but they were all OK.

    Eventually, I deleted the MySQL I downloaded, as well as the PHP 5.3.0 I also downloaded using that post's instructions & reinstalled MAMP 1.7.6. I still had the DMG in my downloads folder from when I originally downloaded it. This time I got the settings right, using the second article & now it works.

    Thanks for the help

    Tony

About this Topic

  • Started 15 years ago by TonyVitabile
  • Latest reply from TonyVitabile