WordPress Blogs for OEIT

,
OEIT

[fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”]

OEIT

OEIT

These notes are mostly for me…since I seem to create these blogs often enough I figured I should write up what to do.

Assumptions:

  • MySQL, PHP and Apache Installed and are properly configured.
  • You’re going to install the blog in the document root of the webserver, my examples will assume /home/www/project_name/.
  • That you want the user to access the blog at http://hostname.mit.edu/wordpress/

How to do it…

  1. Create a mysql database using MySQL Administrator or similar tool:
    • Create a database for <sitename_wordpress>
    • Create a user account for <username_wordpress>
    • Give <username_wordpress> privileges for localhost
    • Give <username_wordpress> privileges for % (any host) if you intend to allow the site to be edited remotely (probably not recommended or even necessary)
  2. Install the latest copy of WordPress:

    Navigate to the document root (/home/www/project_name/) and get a copy of the latest WordPress code.

    % wget http://wordpress.org/latest.zip

  3. Extract WordPress

    % unzip wordpress-x.x.x.zip

    which will create a wordpress subdirectory in your document root (/home/www/project_name/wordpress/), and the WordPress site will be visible at http://hostname.mit.edu/wordpress/

    If you want to change the location to http://hostname.mit.edu/, I suggest you do this before you edit the settings file and finish the configuration. Change webserver’s document root to /home/www/project_name/wordpress/ before proceeding. (WordPress includes a way to change the URL at which WordPress resolves, but it has always worked kind of wacky for me.)

  4. Create a Settings file

    Copy the sample settings file

    % cp /home/www/project_name/wordpress/wp-config-sample.php /home/www/project_name/wordpress/wp-config.php

    and edit the file and insert the database name, database username, database password in the appropriate locations.

  5. Finish the WordPress configuration

    Go to http://hostname.mit.edu/wordpress/, if everything’s working properly you should be asked to enter in your Site’s name and an email address for the administrator user. You can also select if you want the site to be searchable by Google and other search engines.

  6. Change the default administrator password.

  7. Create your account (and I suggest giving this account WordPress administrator privileges and using this account to administer the site).

  8. Get some plugins and/or themes.

Here are a sampling of the “standard” plugins I think should be used for OEIT-based WordPress installations.

  • This one’s being kinda finicky with some of the paid themes we’ve been using. Academic Sandbox, http://www.academicsandbox.com/academic_citations.html

    This WordPress 2.x plugin generates academic citations in five common academic citation formats: AMA, APA, Chicago, Harvard, MLA. You can select which (or all) of these five formats to show, and in the order you choose. Note: This requires some customization to get it working with the Thesis theme.

  • Akismet (comes preinstalled), http://downloads.wordpress.org/plugin/akismet.zip

    Akismet checks your comments against the Akismet web service to see if they look like spam or not and lets you review the spam it catches under your blog’s “Comments” admin screen.

  • Dublin Core plugin for WordPress, http://www.brainonfire.net/resources/files/dublin-core-for-wordpress/

    This plugin implements some Dublin Core metadata elements for WordPress.

  • Google Analytics for WordPress, http://yoast.com/wordpress/google-analytics/

    Optional: Use this if the theme does not include Search Engine Optimization (SEO). This plugin easily adds your Google Analytics tracking code (the new ga.js one!) to all pages within your blog. This plugin adds the possibility to tag and segment all outgoing links, so you can see whether a click came from a comment or an article.

    You’ll need to get a free Google Account to have access to their Analytics service. I usually use a general account for MIT project that I’ve setup, or if I’m building the WordPress site for a client, I’ll create a new username just for the project (this means I create a new GMail acccount, which also allows me to use the Analytics service). The separate accounts are a nice way of separating these projects.

  • Google (XML) Sitemaps Generator for WordPress, http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/

    Optional: Use this if the theme does not include Search Engine Optimization (SEO). This plugin generates a XML-Sitemap compliant sitemap of your WordPress blog. This format is supported by Ask.com, Google, YAHOO and MSN Search.

  • External Links Plugin For WordPress, http://www.semiologic.com/software/external-links/

    Optional: The external links plugin for WordPress lets you process outgoing links differently from internal links.

  • Sociable for WordPress, http://blogplay.com/sociable-for-wordpress/

    Optional: The Sociable Plugin is something we at BlogPlay.com offer to bloggers. With this easy-to-install plugin, your readers will be able to share your posts with the rest of the world.

  • Template Override, http://wordpress.org/extend/plugins/template-overide/

    Very simple, it lets you add custom css to your template so when you upgrade the template with the wordpress update function your changes are never lost!

  • WordPress.com Stats, http://wordpress.org/extend/plugins/stats/

    Automattic created its own stats system, to focus on just the most popular metrics a blogger wants to track and provide them in a clear and concise interface.

    You’ll need a free WordPress.com account to use their stats package. I usually use a general account for all my MIT projects that I’ve setup, or if I’m building the WordPress site for a client, I’ll create a new username just for the project. The separate accounts are a nice way of separating these projects.

  • WP-reCAPTCHA, http://wordpress.org/extend/plugins/wp-recaptcha/

    reCAPTCHA is an anti-spam method originating from Carnegie Mellon University which uses CAPTCHAs in a genius way. Instead of randomly generating useless characters which users grow tired of continuosly typing in, risking the possibility that spammers will eventually write sophisticated spam bots which use OCR libraries to read the characters, reCAPTCHA uses a different approach.

    You’ll want to get a free reCaptcha account to manage your reCaptcha keys. I usually use a general account for all my MIT projects that I’ve setup, or if I’m building the WordPress site for a client, I’ll create a new username just for the project. The separate accounts are a nice way of separating these projects.

Added June 18, 2010:
Some additional Plugins.

  • Flash Video Player, http://www.mac-dev.net/
    Simplifies the process of adding video to a WordPress blog. Powered by Jeroen Wijering’s FLV Media Player and SWFObject by Geoff Stearns.
    Replaced with mediaelement.js
  • WPaudio, http://wpaudio.com/
    Play mp3s and podcasts in your posts by converting links and tags into a simple, customizable audio player.
    Replaced with mediaelement.js
  • WPtouch iPhone Theme, http://bravenewcode.com/products/wptouch
    A plugin which formats your site with a mobile theme for the Apple iPhone / iPod touch, Google Android, Palm Pre and other touch-based smartphones.

Added July 20, 2010:

  • WP-DBmanager, http://wordpress.org/extend/plugins/wp-dbmanager/
    Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up and optimizing of database.
  • WP Post Notifier For All, http://wordpress.org/extend/plugins/wp-post-notifier-for-all/
    Notify all WordPress users (and not only the admin) on post publishing. The notification is sent only one time after the first post publishing(not on every update).

Added September 9, 2010:

  • Dynamic Content Gallery, http://wordpress.org/extend/plugins/dynamic-content-gallery-plugin/
    This plugin creates a dynamic gallery of images for latest and/or featured Posts or Pages using either the JonDesign SmoothGallery script for mootools, or the Galleryview script for jQuery. By associating your gallery images with individual Posts or Pages, using custom fields, the plugin dynamically creates the gallery from your latest and/or featured content. Additionally, default images can be displayed in the event that the necessary custom fields have not been created.

[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

2 replies
  1. Peter Wilkins
    Peter Wilkins says:

    I found that I had to perform another step to avoid the infamous “Error establishing a database connection”. There is an issue with password hashing with some versions of PHP and MySql. Issuing this SQL statement at the “mysql>” prompt resolves it.

    SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('your_old password_here');

Trackbacks & Pingbacks

  1. […] the most recent updates on what I’ve been doing for OEIT blogs. You may want to check out the original post (that was updated 3 […]

Comments are closed.