Archive for the ‘Basics’ Category

Forum cheat sheet

Tuesday, February 23rd, 2010

As the merge comes closer, the forums are winding down. Most of the time, I’m only answering threads that I can do immediately without digging up additional info. That means I also repeat myself quite a bit. In the interest of making sure all those answers are in one place, here’s my cheat sheet. It’s in a text file on my desktop and I leave it open whenever I jump in the forums.

More tips;
- a link to see all the latest posts to the forums
- the right search page
- in Firefox, use the Linky extension to open all unread threads on that page. Just select down the screen, right-click, open all in new tab. Wait until they load, then grab one & start reading/answering.

godaddy WPMU info

Stopping splogs
Cookies for comments yes it says comment but it does check for splogs too.
Hash cash Same deal. Don’t let the mention of comments fool you.
Stoping spam bogs in WPMU

Timthumb and WPMU

wordpress video plugin (probably not needed with 2.9.x)

Importing a single WordPress blog into WordPress MU the direct to database method, because nobody imports like the bava, NOBODY. Use this method for large sites where the usual export /Import is too big or when you want to also pull the users and options.

Handy MU plugins in the repo:
the wpmu tag results page There’s been some interesting ones show up lately. Subscribe to the feed tag to keep up.
Sitewide Tags
Unfiltered MU
Donncha’s Domain Mapping
Blog topics to categorize the blogs
New blog defaults

How to domain map blogs A writeup I did for WP webhost. This is cpanel-specific.

How to make a page template

Donncha’s blog the original (and only) dev of WPMU

Top pages from this here blog:
Installing in a subfolder mostly for previous version, as the 2.9.x branch fixes this
Make a listing of the blogs on your site
Free ebook on how to install WPMU

500 errors and 1and1 webhost If you’re having issues installing MU there.

installing on windows

Switch to blog and showing the main blog’s nav bar on other blogs. This code goes in the other theme’s header.php file.
just before the nav bar code put

right after the navbar code put

then it will always show the pages from Blog #1.
Yes it works for other code, but fair warning – switch to blog can get expensive. Think hard before using it on sites with lots of blogs.

When your permalinks don’t work, either mod_rewrite isn’t enabled, or isn’t explicitly enabled on your vhost in apache. You’ll need this line:
AllowOverride FileInfo Options

And the last one: Check your error logs! :D

Random Posts

 


© andrea for WPMU Tutorials, 2010. |
Permalink |
No comment |
Add to
del.icio.us


Post tags:

Need real genuine helpful support? MU Support.

Feed enhanced by Better Feed from Ozh

How to backup WPMU

Wednesday, December 2nd, 2009

Backup. Everyone tells you to, but maybe you don’t know how. After all, your host does backups, right?

True – your host does backups, but can or will restore only in the event of a complete disaster, and it restores the entire web account. You should very much take your own backups and store them somewhere else.

There are two things you need backups of:
- the database, where settings and content live
- the wp-content folder, where plugins, themes, and uploaded files are stored. The rest of the files are replaceable, unless you made hacks to the core.

If you have phpMyAdmin on your server, database backups are easy. PhpMyAdmin has an Export function to backup the entire database or just a table, if you wish.

In the event your database is large and using phpMyAdmin gets too unwieldy, your host may have a database backup tool in the web account control panel.

If you have ssh access, making a database backup is even easier. After logging in, move to the folder where you want the backup to be stored for now. A good one woudl be a /backups/ folder on the same level as public_html for now. Run the following command:

mysqldump –opt -u dbuser -p dbname> dbname.sql

Replace dbuser, dbname with your own. This will give you a straight up SQL dump of the database, so let’s compress it. Run this:

gzip -c dbname.sql>dbname.sql.gz

I like doing it in two steps so I know it’s done right, but if you wanted to do it all in one go, try this:

mysqldump –opt -u dbuser -p dbname> dbname.sql | gzip > outputfile.sql.gz

Now you have the database backed up and not saved under public_html, because we don’t want the outside world to have access to it. :) If you did it in two steps as above, you’ll have a zip of the database as well as a SQL dump, so to free up some space, we can get rip of the dump since we already zipped it.

rm dbname.sql

Now navigate to the root of your install. It may be something like
cd /home/webaccountname/public_html/

Let’s archive the entire wp-content folder.

zip -r wp-content-backup-Dec-3.zip wp-content/

This puts everything under wp-content in a zip. The -r in there tells it to get all the subfolders too. I like to put the date I made the backup in the filename. Once filenames have stopped scrolling by, move this zip to the backup folder we made previously.

mv wp-content-backup-Dec-3.zip ../backups

This moves the file from where we are up one directory and down into the backups directory we made earlier. Now you’re ready to move both zip files somewhere else off the server for safekeeping, or continue with an upgrade.

Random Posts

 


© andrea for WPMU Tutorials, 2009. |
Permalink |
No comment |
Add to
del.icio.us


Post tags:

Need real genuine helpful support? MU Support.

Feed enhanced by Better Feed from Ozh