Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Wordpress 3.0 Multisite: dashboard works but sites don't? Domain wildcard problem? Apache one?

Posted on 2010-11-19
4
Medium Priority
?
740 Views
Last Modified: 2012-05-10
Hi,

I've installed Wordpress 3.0.1 on my Ubuntu server and enabled the multi-site functionality (in order to later migrate several WP blogs to one WP multi-site). So far, so good.

I'm accessing and managing the main site via http://wplinux.test.local/wp-admin. There everything works fine, I can add plugins, posts, pages, etc.

But when I want to actually view a post or a page (like http://wplinux.test.local/about/) I get errors since they can't be found!?

Also when accessing http://wplinux.test.local I get the standard Apache welcome page instead of the main WP site: "It works! This is the default web page for this server. The web server software is running but no content has been added, yet."

The same for subsites. I can access and manage them (example: http://test1.wplinux.test.local/wp-admin/) but get errors when I want to actually view a page like this one: http://test1.wplinux.test.local/2010/11/18/hello-world/

I get an 'this link seems to be broken' error ...

Here's what I did DNS wise:

I've created a new zone on my DNS server > test.local
I've added a new host: *.test.local mapped to 192.168.1.57 (my Ubuntu server) - as this page seems to suggest: http://codex.wordpress.org/Migrating_Multiple_Blogs_into_WordPress_3.0_Multisite (step 3)
I've added 'ServerAlias *.test.local' to the 'default' (actually '000-default' for some reason) file in /etc/apache2/

So ... where did I go wrong??

Thank you very much :)

Jerome

[added:

Also: Why do the additional sites get *.wplinux.test.local addresses? Shouldn't they get *.test.local addresses?]
0
Comment
Question by:Xeronimo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 34172619
This is a problem with your modrewrite (in your .htaccess file). It's working for your dashboard because the /wp-admin location is a really in the filesystem and the /about url get rewritten to something like /?p=###. Try accessing the pages and posts by their id number instead to see if that works. You can change that in the dashboard under Settings - Permalinks.

Look in your apache error and access logs to see what's going on. You need to set "AllowOverride AuthConfig" in your httpd.conf file for the main site or the vhost that takes care of wordpress. I've seen problems with just allowing Authconfig, where you get a message about mod_rewrite not being allowed...if that's the case you need to change the AllowOverride to "all" rather than just "authconfig".

As for your last question, subdomain sites are created under the domain of the main wp site. If your main wp site is at "wplinux.test.local" then all subsites will be subsite.wplinux.test.local.
0
 

Author Comment

by:Xeronimo
ID: 34173389
Hi,

Thanks so far but I've now reinstalled the whole thing using sub-directories instead of sub-domains. I thought that was easier ......

Yet it isn't really. When I try to access a sub-directory I've created on the main site (example: http://linuxwp.test.local/galileo/) I get an error telling me that this page/site does not exist ... Accessing the backend of that directory doesn't work either therefore :(

I once got this running on a Windows server with IIS but I'd like to have it on Ubuntu now.

Any other suggestions??

Thanks!
0
 
LVL 26

Accepted Solution

by:
jar3817 earned 2000 total points
ID: 34173535
It's the same issue, all of that relies on mod_rewrite for apache and it isn't setup right. Post your httpd.conf file so we can see how you have it setup.
0
 

Author Closing Comment

by:Xeronimo
ID: 34211221
IIt's been indeed the mod_rewrite settings in the httpd.conf!
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question