PeterNYC
Forum Replies Created
-
Forum: Networking WordPress
In reply to: The Anatomy of a Typical Multi-SiteDon’t call it ‘ce’ π It’s just your main site on your network. Site #1..
Sorry for not being clear: CE is just a stub name I gave to the blog. I’ll stick to “main blog”.
That’s what the .htaccess rules do. If you make a page called ‘about’ on a WP site, there’s no file or folder named ‘about’ on the server, is there? Of course not π It’s Virtual! So are the sites π
I figured WP virtualized posts + comments, but thought the sites themselves had at least a starting index.php.
Then maybe I have a DB problem. I see two things that look suspicious.
First: I see 3 blogs in my DB: main blog, wp_3 and wp_4. There’s a wp_site table but no wp_3_site / wp_4_site table. The contents of wp_site are what I’d expect (domain and relative path). Wouldn’t there be similar tables for the other two blogs?
Second: There’s a wp_sitemeta table. I looked at the output of
select meta_id, site_id, meta_key from wp_sitemeta;
and site_id is “1” for ever meta_key. Shouldn’t there be 3’s and 4’s in there as well?
The main blog dashboard looks OK; the dashboards of the other sites give a 404.
When I visit any of the 3 blogs, I get a blank page.
What’s the 404 look like? Does it match the style of your main site or a server error?
Definitely server. From My Sites | Test | Dashboard, the browser tries to open http://dirac.org/wordpress/test/wp-admin/ and the Apache log is predictable:
AH00128: File does not exist: /www/dirac/wordpress/test/wp-admin/
which is why I thought the sites themselves weren’t virtualized (not realizing mod_rewrite comes into play). The same thing happens for the 2nd subsite.
For the main blog: My Sites | CE | Dashboard gives me the dashboard, and it looks correct. The browser URL is what I’d expect: http://dirac.org/wordpress/wp-admin/
My /usr/share/wordpress/htaccess is:
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]No folders made. I’m not educated in WP enough to start messing with file locations yet, but I hope to get there… π
Forum: Networking WordPress
In reply to: The Anatomy of a Typical Multi-SiteUseful! I was wondering about the uploads directory. Thanks.
My multi-site is non-functional. I’m trying to diagnose, but my unfamiliarity with WP’s anatomy and mod_rewrite’s URL munging is making it very difficult.
There appears to be a “preferred blog” (in my case “ce”) which can’t be deleted. I created two other blogs. This is what I see in my network dashboard:
name path ce wordpress test wordpress/test/ test2 wordpress/test2/The dashboard of ce looks OK, but the dashboards of the other two sites give a 404. When I visit any of the 3 blogs, I get a blank page.
I see the dashboard links point to (http://blahblahblah before each):
ce /wordpress/wp-admin test /wordpress/test/wp-admin test2 /wordpress/test2/wp-adminWhat should I be seeing in my filesystem? I assume the dashboards are not located at:
ce: /usr/share/wordpress/wp-admin test: /usr/share/wordpress/test/wp-admin test2: /usr/share/wordpress/test2/wp-adminIf these dashboards actually worked, from where would Apache be serving up the content? There *has* to be a directory named “test” and “test2” somewhere… where would that be?
Forum: Networking WordPress
In reply to: I think my DB is borkedJames, thank you!
Forum: Themes and Templates
In reply to: Editing Themes with Desktop SoftwareStephen, thank you!
But more importantly — how were you able to determine that?
I mean, I get the implication of having #main width to 1020px (content + sidebar + space in between), but there’s a ton of selectors that have a hard-coded value of 600px:
.post-box .holder {
width: 600px;
}
.post-box-bottom {
width: 600px;
height: 31px;
margin: 0 0 25px;
}
.post-box .text-holder-s {
width: 600px;
font-size: 14px;
color: #4b677d;
}How were you able to home in on the right ones? The post-box selector totally passed by me. Do you visualize the div elements? Or do you rely solely on Firebug’s inspector?
I found a plugin called Tilt that’s *almost* helpful. If there was a way to suppress, say, child div’s greater than a certain number, it could be really powerful to help visualize the CSS layout.
Forum: Themes and Templates
In reply to: Editing Themes with Desktop SoftwareI don’t suppose you have a more advanced video that you like? This one just shows how you inspect elements. This video is far too basic to be useful.
My problem is that there are multiple divs that point to what is seemingly the same rectangle on the screen. When I change certain widths, things will happen like the sidebar will float off the page. Or it will open up space between the content and the sidebar. After 20 minutes of fiddling, I still don’t know what div is responsible for the content to become wider.
Is there a way to visualize the hierarchy of divs on a page at the same time with maybe a little space between the borders so I can get a bird’s eye view?
For example, I created a little test post (I’m brand new to WP and wanted to see what it can do) here:
http://repeatedpatterns.org/?p=4
I can see that “wrapper” contains the entire screen.
Underneath that is w1 which also contains the entire screen.
Underneath that is header which has screen width but header height.
Underneath that is header-holder which has content width but header height. Changing this changes the site header width.
Underneath that is nav-block, which changes the page header width.
Under that is “main” which changes the content and sidebar width (but each retains its original width)
Under that is two columns, which looks the same as “main”.This is what I’ve been doing, but I can’t seem to get the actual content itself, let’s say the number of characters of content that appear on a single line on the browser screen, to increase.
Any advice?
Forum: Installing WordPress
In reply to: First Install: Apache Problems, I Think…I thought when I mentioned “network of WP” in the original post it implies multisite (I thought “network” was the proper term for a “multisite”).
OK… I’ll post again in the proper forum.
Thanks!
Forum: Installing WordPress
In reply to: First Install: Apache Problems, I Think…Maybe I misunderstood, then. For example, from this site:
On the other hand, if you choose sub-directories or path based URLs for subsites on your network, then the only thing you need to do is enable pretty permalinks on your root site.
This is spot-on what I was hoping to achieve. It sounds like it would apply to me. Is this not the case?
Forum: Installing WordPress
In reply to: First Install: Apache Problems, I Think…I think we’re on the same page, but just to be sure, suppose the website is http://www.site.org and I have two blogs, named blog1 and blog2. I’d like requests for:
to go to blog1, and requests for:
to go to blog2, from a purely external point of view. I’m agnostic as to where the files and such are located, since this is my server. I’m free to do whatever.
From an internal point of view, suppose document root is /var/www/site. Then I assume the symlinks need to be set as:
/var/www/site/blog1@ –> /usr/share/wordpress
/var/www/site/blog2@ –> /usr/share/wordpressThere must be some kind of PHP variable to prefix MySQL table names to keep the blogs separate. Somehow, this PHP variable gets set differently depending on whether you request http://www.site.org/blog1 or http://www.site.org/blog2. Maybe mod_rewrite helps with this.
I also gather that mod_rewrite must also help in translating URLs for image files and such from the WP installation dir, /usr/share/wordpress, to the content directory, /www/www/wp-content. I think the same thing goes for plugins and language files.
Is this the general way things work?