Mark Jaquith
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Archives list SetupThat is intended.
index.phpshould be assumed as a default directory index by your server.Not sure what you’re talking about with
wp-admin… Would help if you provided the actual URLs.Forum: Fixing WordPress
In reply to: Changing the WP homepageThere’s not an easy way that I know of.
Why do you want to do this? Essentially, you’d be duplicating content across two URLs… i.e. each post would have a permalink on each subdomain. Why not just keep the blog in one place?
Forum: Plugins
In reply to: Un-check Default CategoryYou rock.
There used to be a Greasemonkey script that did this, but I think it stopped working… and it is locked to your browser.
Forum: Fixing WordPress
In reply to: high traffic crashing usmagazine.comMy suggestions are pretty much the same as Owen’s.
- If you’re dipping into swap, add RAM.
- If Apache’s connections are maxed, up the limit
- If MySQL is running slow, allocate more RAM to it (see number 1) and:
- Install the plugin that freezes $now, like Owen said
- enable MySQL’s Qcache
- Then, re-analyze your queries, and tackle any outliers
- APC is pretty much a free speed boost. Give it at least 32MB… maybe as much as 64MB or 96MB if you have a lot of pages.
- WP-Cache2 is a similar no-brainer, although do note the caveat that Owen linked
- Up the expiration on WP-Cache2 to at least double the default
I’ve done all this, plus relaced WP’s file-based object caching with in-memory caching using APC, and it all runs wicked fast. How much traffic it can handle depends on many things. If you’re getting a “slashdot” or “digg” type effect, meaning you have a lot of first-time viewers all hitting the same post, WP-Cache will handle millions of hits a day… as they’ll all be getting the same static cached file.
If your traffic is more spread out, say if someone big linked your front page and a majority is going on to click to other pages (this is rare… the vast majority will hit you once and go on to the next item) or if you simply have a large userbase, you might not to be able to handle quite as much, since many hits won’t be cached, especially if people have comment cookies, which means they can’t get a generic cached page, but the Qcache and the $now freezing and APC will do a lot to minimize that load. You may be able to handle this on a VPS, but a cheap dedicated server (expect to pay $90-$160 a month) will be able to handle it easily, especially with the modifications that I mentioned.
Forum: Alpha/Beta/RC
In reply to: You do not have sufficient permissions to access this page.#
Someone wandered into WordPress with this problem. The usermeta table was created, but was empty.
I wrote this script, and it fixed his problems:
http://txfx.net/files/wordpress/force-upgrade.phpsAs the name implies, it forces an upgrade (the upgrade_160() for all the 1.5 => 2.0 stuff).
It won’t fix every situations, but it’ll likely fix situations where people just need to force the upgrade.
Click “download” and save as force-upgrade.php and place it in your root WP directory. Access it via a browser. Delete it after it has run.
Forum: Installing WordPress
In reply to: “You do not have sufficient permissions to access this page.”Bah… usage:
Click “download” and save as
force-upgrade.phpand place it in your root WP directory. Access it via a browser. Delete it after it has run.Forum: Installing WordPress
In reply to: “You do not have sufficient permissions to access this page.”Someone wandered into WordPress with this problem. The
usermetatable was created, but was empty.I wrote this script, and it fixed his problems:
http://txfx.net/files/wordpress/force-upgrade.phpsAs the name implies, it forces an upgrade (the
upgrade_160()for all the 1.5 => 2.0 stuff).It won’t fix every situations, but it’ll likely fix situations where people just need to force the upgrade.
Forum: Fixing WordPress
In reply to: Tooltip confusionGo to Links » Link Categories and change the display options for that link category.
Forum: Installing WordPress
In reply to: Login Form on main page for guestsCheck out these resources:
http://www.ioerror.us/2005/04/14/wordpress-sidebar-login-form-hack/
http://wordpress.org/support/topic/28062?replies=8I can personally vouch for the first resource, I successfully used it when it was first written.
Forum: Installing WordPress
In reply to: Peak Hosting ProblemAre you upgrading WP, or making a fresh install? WP 2.0.2 is the latest version, so you should be using that. If it’s a new install, try wiping the database and starting from scratch.
Forum: Fixing WordPress
In reply to: Category post count on category archiveTry this:
<?php
if ( is_category() ) : // only run this on category pages
$this_cat = &get_category($wp_query->get_queried_object_id());
echo 'The category you are currently viewing has ' . $this_cat->category_count . ' articles';
endif;
?>Forum: Themes and Templates
In reply to: Innstalling wordpress to my own designYou might try some of the resources here:
http://codex.wordpress.org/Blog_Design_and_LayoutForum: Themes and Templates
In reply to: Three column K2Nice. Might want to notify the K2 authors… they’ve expressed some interest in 3 column layouts if it could be implemented easily as an option.
Forum: Plugins
In reply to: A static front page that mirrors the wp front page?You’d probably have to use something like
<?php query_posts('showposts=10'); ?>before the loop. That should load up your most recent 10 posts (adjust that to your liking). Then the normal loop copied fromindex.phpshould do the trick.Forum: Fixing WordPress
In reply to: Curly Quotes Reversed by ParenthesesTry putting the quotes inside the
<a href="..."></a>… that may be what’s causing the trouble.