Wednesday, May 1, 2013

The WordPress Famous 5-Minute Install

  1.      Download and unzip the WordPress package, if you haven't already.
  2.     Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
  3.     Rename the wp-config-sample.php file to wp-config.php.
  4.     Open wp-config.php in your favorite text editor and fill in your database details.
  5.     Place the WordPress files in the desired location on your web server:
  •         If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
  •         If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.

        Hint: If your FTP transfer is too slow read how to avoid FTPing at : Step 1: Download and Extract.
  1.     Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
  •         If you installed WordPress in the root directory, you should visit: http://example.com/wp-admin/install.php
  •         If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php

That's it! WordPress should now be installed.

Changing File Permissions

On computer filesystems, different files and directories have permissions that specify who and what can edit and read them. This is important because WordPress may need access to write to files in your wp-content directory to enable certain functions.

Here is one possible permission scheme.
All files should be owned by your user account, and should be writable by you. Any file that needs write access from WordPress should be group-owned by the user account used by the webserver.

  •     / - The root Wordpress directory: all files should be writable only by your user account
  •         EXCEPT .htaccess if you want WordPress to automatically generate rewrite rules for you
  •     /wp-admin/ - the WordPress administration area: all files should be writable only by your user account.
  •     /wp-includes/ - the bulk of WordPress application logic: all files should be writable only by your user account.
  •     /wp-images/ - image files used by WordPress: all files should be writable only by your user account.
  •     /wp-content/ - variable user-supplied content
  •         /wp-content/themes/ - theme files. If you want to use the built-in theme editor, all files need to be group writable. If you do not want to use the built-in theme editor, all files can be writable only by your user account
  •         /wp-content/plugins/ - plugin files: all files should be writable only by your user account.
  •         other directories under /wp-content/ should be documented by whatever plugin / theme requires them. Permissions will vary.
  •         The WordPress Database Backup Plugin requires the /wp-content/ folder be made writeable. In some cases, this may require assigning 755 permissions or higher (e.g. 777 on some hosts). 
 Using an FTP Client

FTP programs ("clients") allow you to set permissions for files and directories on your remote host. This function is often called chmod or set permissions in the program menu.

In a WordPress install, two files that you will probably want to alter are the index page, and the css which controls the layout. Here's how you change index.php - the process is the same for any file. In the screenshot below, look at the last column - that shows the permissions. It looks a bit confusing, but for now just note the sequence of letters.
Initial permissions
Initial permissions

Right-click 'index.php' and select 'File Permissions'
A popup screen will appear.
Altering file permissions
Altering file permissions

Don't worry about the check boxes. Just delete the 'Numeric value:' and enter the number you need - in this case it's 666. Then click OK.
Permissions have been altered
Permissions have been altered

You can now see that the file permissions have been changed.
Unhide the hidden files

By default, most FTP Clients, including FileZilla, keep hidden files, those files beginning with a period (.), from being displayed. But, at some point, you may need to see your hidden files so that you can change the permissions on that file. For example, you may need to make your .htaccess file, the file that controls permalinks, writeable.

To display hidden files in FileZilla, in it is necessary to select 'View' from the top menu, then select 'Show hidden files'. The screen display of files will refresh and any previously hidden file should come into view.

  1. To get FileZilla to always show hidden files - under Edit, Settings, Remote File List, check the Always show hidden files box.
  2. Using the Command Line

If you have shell/SSH access to your hosting account, you can use chmod to change file permissions. Before you start using chmod it would be recommended to read some tutorial like this and also the manual page to make sure you understand better what you can make with it.

You can make all the files in your wp-content directory writable in two steps:
  1.     Go to your WordPress main directory, with a command like cd wordpress/
  2.     Enter chmod -R 777 wp-content

What does this mean? chmod is a unix command that means "change mode" on a file. The -R flag means to apply the change to every file and directory inside of wp-content. 777 is the mode we are changing the directory to, it means that the directory is readable and writable by WordPress. Finally, we have the name of the directory we are going to modify, wp-content.

If you use Permalinks you should also change permissions of .htaccess to make sure that WordPress can update it when you change settings or add some new Page (which requires update of the file to work when Permalinks are enabled).
  1.     Go to the main directory of WordPress
  2.     Enter chmod 666 .htaccess


 

Importing from Other Blogging Systems Into WordPress

WordPress currently supports importing data in the form of posts (articles) and most of the details or features supported by the content publishing platform.

Most of the following Content Import scripts can be found under the "Import" tab of your WordPress administration interface.

If you run into specific problems, a search on the WordPress Support Forum will likely lead to a solution or try the Codex FAQ. Users of a blogging system not listed here who wish to switch to WordPress are invited to ask for help in the WordPress Support Forum as well.

To help you understand the differences between WordPress and other existing software, we recommend you review the WordPress Features and more on Working with WordPress.
b2

The script for importing b2 posts into your WordPress blog is located on your site in the wordpress/wp-admin/import-b2.php.

(Note: In Wordpress 2.0.2, this is no longer true. There is a b2.php file under wordpress/wp-admin/import, however, it is empty.)
b2evolution

There are currently two methods of importing a b2evolution install into Wordpress described in this section.

Direct Import Between Databases

A non-WordPress script for for importing from b2evo to WordPress 2.x is available (legacy importer for WordPress 1.x).

Instructions:

    Install WordPress

    Download file, remove .txt extension, and upload to your wp-admin directory
    Run the script and input your b2evo database name and password

Done! Details about the script and usage can be found in this forum topic with discussion and updates

This script has currently not been updated since September 2006 and is incompatible with the current (v1.9) b2evolution database structure.

Import via Movable Type Export Format

The second approach is to re-skin a b2evolution blog so that when its source is viewed it appears to be in the Movable Type export format. This approach, which should work for all versions of Wordpress, and all recent versions of b2evolution is described in full on this page.
Blogger

Users of WordPress 2.2 and above can import from Blogger. Earlier versions cannot import from Blogger because "New Blogger" was released by Google, invalidating all the old importers. Only WordPress 2.2 and later has support for "New Blogger".

If you haven't already, you must be using New Blogger and a Google Account on Blogger. If you are still using Old Blogger, the importer will not work.

To start the importer, go to Manage → Import → Blogger and follow the directions.
Blogware

    A Guide to Importing from Blogware to WordPress

Target page no longer exists. There is an import function built in to WordPress 2.5.1
Blosxom

    A Xcript for Importing from Blosxom to WordPress

    Perl script for converting Blosxom entries to WP-friendly RSS (Picky about html correctness in Blosxom entries, including final slash in img and br tags.)

Dotclear

    View the tutorial(en) to import a Dotclear blog into a WordPress 2 one.

Drupal

    Detailed migration of Drupal 4.7 to WordPress
    Migrating Drupal to WordPress

e107 CMS

You can find a dedicated script to import e107 news, categories, users, custom pages and comments to Wordpress on Coolkevmen's blog.

Greymatter
The script for importing Greymatter posts into your WordPress blog is located at wp-admin/import-greymatter.php.

The script is fairly old. It was originally written to import from Greymatter to b2. There have been cases where the import script does not work with WordPress 1.5. In these cases, you can try this workaround:

    Install WordPress 1.2
    Import from Greymatter
    Then upgrade to WordPress latest version

You can also read the forum thread at http://wordpress.org/support/topic.php?id=24110 for other workarounds. 
Jogger.pl

There's a script that allows to import entries and comments from Jogger.pl - Polish, Jabber-powered weblog system. Comments and manual are in Polish (since Jogger is mostly polish), but if you have any questions, feel free to ask in comments on author's blog.
LiveJournal

The script for importing LiveJournal posts into your WordPress blog is located at wp-admin/import-livejournal.php (Manage → Import → LiveJournal). It is available in WordPress 2.1.1. WordPress 2.3 and above, it is located at wp-admin/import/livejournal.php

The LiveJournal importer requires you to export entries from your LiveJournal account in XML format. Instructions for exporting LiveJournal entries can be found at LiveJournal export instructions. This tools seems to require exporting your journal one month at a time. However. the import tool will happily accept all the entries in a single file, so you may save them all in the same file. You may also have to do a "View Source" on the page that the Livejournal export tool returns, in order to see the XML source. You can then copy and paste this into a file to import.

If your exported XML file is very large (several years' worth of content, for example), the import script may run into your host's configured memory limit for PHP. A message like "Fatal error: Allowed memory size of 8388608 bytes exhausted" indicates that the script can't successfully import your XML file under the current PHP memory limit. If you have access to the php.ini file, you can manually increase the limit; if you do not (your WordPress installation is hosted on a shared server, for instance), you will have to break your exported XML file into several smaller pieces and run the import script on the one at a time.

    http://heinous.org/wiki/LiveJournal_XML_Export_Script has a perl script (ljexport.pl) that can export all LJ entries to one XML file for a range of years, saving the trouble of having to manually pull this for each month.
    LJ Archive is a Windows-only exporter for LiveJournal.

Live Space (MSN Space)

    Live Space Mover

Mambo

    A Script for Importing from Mambo to WordPress (ZIP)

Motime - Splinder

These are brands of the blog hosting provider Tipic Inc.

Using a python script named Spleender, you can import the posts (not the comments), see an English case study or the full documentation in Italian.

You can import comments, posts and categories also using the WP Plugin Splinder/Motime Importer, see an English quick guide or the full documentation in Italian.
Pivot

There is a script: Importing posts from Pivot 1.2 with *Linux* server to WordPress

There is another script, which has been updated to work with WordPress 2.0: Pivot importer for WordPress. It tries to preserve users and categories.

However, Pivot also has an excellent RSS support and that WordPress can import RSS. Example.
Movable Type

To import from Movable Type, select the Manage tab, then the Import sub-tab. You can also run the import.php program manually. It is located on your site in the wordpress/wp-admin/import.php. Select the link Movable Type and TypePad.

    Importing from Movable Type to WordPress
    Scot Hacker's "Notes on a Massive WordPress Migration"

Nucleus CMS

    A Guide to Importing from Nucleus CMS
    James Sasitorn's Script for Importing from Nucleus CMS mentioned in http://wordpress.org/support/topic/2893
    Nucleus zu WordPress-Konverter, a script for converting, with German explanation.
    Tested working importing from NucleusCMS 3.24 to Worpress 2.1
    Ultimate NucleusCMS to any blog migration: Adding any blogging engine, including wordpress, to a nucleus directory, keeping all old URLs intact and without issues with images etc.

Radio Userland

    A Guide to Importing from Radio Userland

Roller

You can fairly easily import data from Roller using the MovableType import script. First, you need to export your blog from Roller database, then use it to create entries in your new blog. Pictures you need to copy to appropriate content directory yourself. Modify the $user, $oldresources, $newresources, and $connection variables in a beginning of script, store it on somewhere on you web host where php execution is allowed, and you will get the dump of your Roller blog in MovableType Import format in return. You can just use wget to store it into file. Then follow the instructions for MovableType import...

    Importing From Roller is complete and comprehensive. This should work for Roller pre-2.0 release. After Version 2.0, the comment table is changed to roller_comment. Just change the select statement to roller_comment.

    Also have a look another technique explained at the blog Null Pointer.

Textpattern

The script for importing Textpattern posts into your WordPress blog is located at wp-admin/import-textpattern.php.

Another script may be found on the WordPress Forum on this forum thread.

(Update March 31, 2007) The wordpress textpattern.php import script seems to be buggy. Therefore, another script(hack of the wordpress-included one) and step-by-step importing instructions are to be found over here.
TypePad

The Importing from Movable Type to WordPress works for TypePad blogs, too. The only difference is in the process of exporting entries from the TypePad blog. Contact TypePad support for instructions on exporting entries from TypePad. Once you have the exported entries, follow the instructions in Importing from Movable Type to WordPress to complete the import into WordPress.
Typo

    Script and instructions for automatically importing typo articles, pages, comments, categories and tags into WordPress

web-log.nl

    Script and Instructions for Importing from web-log.nl to WordPress

WordPress

To import from a WordPress export file into a WordPress blog follow these steps.

    Log into that blog as an administrator.
    Go to Manage: Import in the blog's admin panels.
    Choose "WordPress" from the list.
    Upload this file using the form provided on that page.
    You will first be asked to map the authors in this export file to users on the blog. For each author, you may choose to map to an existing user on the blog or to create a new user
    WordPress will then import each of the posts, comments, and categories contained in this file into your blog

Xanga

xanga.r is a program that parses xanga pages to get the post and comments. Then it can output them in the WordPress rss 2.0 xml format for WordPress to import.
Xanga Archives

If you had paid for Xanga Premium and saved your archive files before switiching to WordPress, an importer can be found here.
Zoomblog

These are the instructions to import your posts from Zoomblog:

    Go to your Zoomblog account and export your blog data (it generates an XML file).
    Download the Zoomblog importer from here. Save it as zoomblog.php and upload it to your wp-admin/import directory.
    Login into WordPress and go to Manage:Import:Zoomblog.
    Choose the Zoomblog XML export file and it should be done.

It imports all posts and comments, and creates new categories, though, unfortunately, there's no way to figure out the proper category name, so you'll have to edit them afterwards. It does not deal with multiple authors.
Importing from an RSS feed
2.0.x

2.0 introduced this as an option in the Admin menu under "Import".

First, save the RSS feed you wish to import someplace on your local machine. This would be the source and would come from the site that has the content you wish to import into your WP blog. A simple way to get the feed into a text file is to find the RSS link for that site, click it and view it in your browser, then copy/paste that to a text file. Or, of course, use your preferred tools.

Click the "Browse" button and navigate to the file containing the feed you wish to import and click "Import" to let it run.

Note: Depending on the feed and format, you may not get the entire thing loaded on the first attempt. One option is to determine how much got imported (Manage -> Posts) and remove those sections from your saved RSS file and then re-import. Lather, rinse, repeat as necessary.
Pre 2.x

WordPress also has a generic RSS importer, which you can find in your WordPress source at wp-admin/import-rss.php. If your current blogging system can export in a valid RSS format, you can import that into WordPress.

Importing the RSS data is done by running the import-rss.php script from the server. For security reasons you have to edit the script to point to the file where the RSS data is stored.

If you have your blog at http://example.com, you can place your file, for example oldblog.xml, in the wp-admin directory on your site.

Edit import-rss.php by changing the value of RSSFILE in the beginning of the script. After you have changed this, run the script by accessing the script with your browser, in this case you’ll go to http://example.com/wp-admin/import-rss.php.

If the script finds your file, a link marked Begin RSS Import occur, and by pressing this link the import will start.

The RSS data are now imported, and you can remove the RSS file and restore the script.

Saturday, April 27, 2013

WordPress Installation Techniques

In addition to the typical installation of WordPress, there are other ways to install WordPress to consider.


What to use WordPress in a language other than English? There are various versions, tips, sites, and support forums for the various languages of WordPress. Considering moving your old blog to WordPress? If you are working on developing WordPress Themes or Plugins, you may consider installing WordPress to your computer so you can work without connecting to the Internet. There are also tips for installing WordPress to a Linux server.

If you are new to WordPress, we recommend that you start with the introduction to installing WordPress and review the hosting requirements, working with FTP client programs, and be sure you know how to change file and folder permissions on a server.

These special installation techniques are not for the novice. Be sure you backup everything and keep extra copies of your WordPress files, Themes, and Plugins, just in case.

If you are nervous about installing WordPress, do not use these special techniques. Use the simple to use WordPress installation instructions and guide or get volunteers to help you from Install4Free WordPress, a service supported by WordPress volunteers.
Installing WordPress in Your Language

To install WordPress in a language other than English, see Installing WordPress in Your Language and WordPress in Your Language for support and files.
Moving to WordPress

If you are moving to WordPress from another blogging platform, these articles and tips may help you to import your former blog's content into your new WordPress blog.
  •     Importing from Other Blogging Systems Into WordPress
  •     Moving WordPress
  •     Importing from Movable Type to WordPress
  •     Importing from b2
  •     Importing from b2evolution
  •     Importing from Blogger
  •     Importing from Blogware
  •     Importing from Blosxom
  •     Importing from Dotclear
  •     Importing from Drupal
  •     Importing from e107 CMS
  •     Importing from Greymatter
  •     Importing from Jogger.pl
  •     Importing from LiveJournal
  •     Importing from Live Space (MSN Space)
  •     Importing from Mambo
  •     Importing from Motime - Splinder
  •     Importing from Pivot
  •     Importing from Nucleus CMS
  •     Importing from Radio Userland
  •     Importing from Roller
  •     Importing from Textpattern
  •     Importing from TypePad
  •     Importing from Typo
  •     Importing from web-log.nl
  •     Importing from WordPress
  •     Importing from Xanga
  •     Importing from Xanga Archives
  •     Importing from Zoomblog
  •     Importing from Importing from an RSS feed
  •     Importing from Roller to WordPress

Updating/Upgrading WordPress

There are various ways to update your WordPress blog.
  •     Upgrading WordPress
  •     Installing/Updating WordPress with Subversion
  •     InstantUpgrade WordPress Plugin (offsite)

Installing WordPress Locally

There are a variety of articles on and off the WordPress Codex to show you how to install WordPress locally - on your own computer. These techniques involve installation of files and programs that turn a portion of your computer's hard drive into a server.
  •     Install WordPress Locally on MacOS X (offsite)
  •     Install WordPress Locally on MacOS X with MAMP (offsite)
  •     Install WordPress Locally on Debian Etch using .deb
  •     Install WordPress Locally on Gentoo Linux (offsite)
  •     Install WordPress Locally on Windows with 'Web-Developer' Server Suite (offsite)
  •     Install WordPress Locally on Debian Linux (offsite)
  •     Install WordPress Locally on Ubuntu Linux with LAMP (offsite)
  •     Install WordPress Locally on Windows XP with XAMPP (offsite)
  •     Install WordPress Locally with WAMP (offsite)

Using Various Web Host Interfaces

Some web hosts allow installation of WordPress through their server interfaces. Here are some articles on how to use the most popular web host interfaces.
  •     Uploading WordPress with FileZilla
  •     Installing and Using WordPress in cPanel
  •     Installing WordPress Using phpMyAdmin
  •     Installing WordPress Using the MySQL Client
  •     Installing WordPress Using Plesk

Customizing Your WordPress Installation

There may be times when you need a custom form of installation to work WordPress into an already existing website or installing it to its own directory on your server.
  •     Moving WordPress
  •     Moving to a New Server
  •     Uploading WordPress to a Remote Host
  •     Installing Multiple Blogs
  •     Creating a Static Front Page
  •     Integrating Wordpress with Your Website
  •     Giving WordPress Its Own Directory
  •     "Hiding" WordPress Installation Files (offsite)

How to Installing WordPress 2.6

WordPress is well known for its ease of installation. Under most circumstances installing WordPress is a very simple process and takes less than five minutes to complete. The following installation guide will help you, whether you go for the Famous 5 Minute Installation, or require the more detailed installation guide.
  •     Things to Know Before You Begin Installing WordPress
  •     The Famous 5-Minute Installation
  •     Detailed Installation Instructions
  •     Common Installation Problems
  •     WordPress in Your Language
  •     Installing WordPress in Your Language
  •     How to Install Multiple Blogs
  •     How to Install WordPress Locally
  •     Getting Started with WordPress (much more installation info)

WordPress Installed for Free
Before you read much further, if you, for whatever reason, aren't inclined to do this type of software installation on your web server/host, you can still use WordPress by requesting the WordPress Install4Free team do the installation for you for free!

Things to Know Before You Begin


Before you begin the install, there are few things you need to have and do.
Things You Need For The Installation

You need access to your site and its directory and software to proceed with the installation. These are:
  •     An access to your web server (via shell or FTP)
  •     A text editor
  •     An FTP Client (if you need to install WordPress on a remote server)
  •     Your web browser of choice

Things You Need to Do For The Installation

Begin your installation by:
  •     Checking to ensure that you and your web host have the minimum requirements to run WordPress.
  •     Download the latest release of WordPress.
  •     Unzip the downloaded file to a folder on your hard drive.
  •     Print this page out so you have it handy during the installation.

Famous 5-Minute Install

Here's the quick version of the instructions, for those that are already comfortable with performing such installations. More detailed instructions follow.
  •     Download and unzip the WordPress package, if you haven't already.
  •     Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
  •     Rename the wp-config-sample.php file to wp-config.php.
  •     Open wp-config.php in your favorite text editor and fill in your database details.
  •     Place the WordPress files in the desired location on your web server:
  •         If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.
  •         If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you'd like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called "blog", you should rename the directory called "wordpress" to "blog" and upload it to the root directory of your web server.
  •         Hint: If your FTP transfer is too slow read how to avoid FTPing at : Step 1: Download and Extract.
  •     Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
  •         If you installed WordPress in the root directory, you should visit: http://example.com/wp-admin/install.php
  •         If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php

Detailed Instructions

Step 1: Download and Extract

Download and unzip the WordPress package from http://wordpress.org/download/.

    If you will be uploading WordPress to a remote web server, download the WordPress package to your computer with your favorite web browser and unzip the package.
    If you have shell access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your web server using wget (or lynx or another console-based web browser) if you want to avoid FTPing:
  •         wget http://wordpress.org/latest.tar.gz
  •         Then unzip the package using:
  •         tar -xzvf latest.tar.gz

        The WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.

    If you do not have shell access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your web server using ZipDeploy.

Step 2: Create the Database and a User

If you are using a hosting provider, you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider's support pages or your control panel for clues about whether or not you'll need to create one manually.

If you determine that you'll need to create one manually, follow the instructions for accessing phpMyAdmin on various servers, or follow the instructions for Using cPanel or Using phpMyAdmin below.

If you are installing WordPress on your own web server, follow the Using phpMyAdmin or Using the MySQL Client instructions below to create your WordPress username and database.

If you have only one database and it is already in use, you can install WordPress in it - just make sure to have a distinctive prefix for your tables, to avoid over-writing any existing database table.
Using cPanel

Main article: Using cPanel

If your hosting provider uses cPanel, you may follow these instructions to create your WordPress username and database.
  •     Log in to your cPanel.
  •     Click MySQL Databases.
  •     If a user relating to WordPress does not already exist under the Users section, create one:
  •         Chose a username for WordPress ('wordpress' is good) and enter it in the UserName field.
  •         Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field.
  •         Write down the username and password you chose.
  •         Click Add User.
  •     If a database relating to WordPress does not already exist under the Databases section, create one:
  •         Choose a name for your WordPress database ('wordpress' or 'blog' are good), enter it in the Db field, and click Add DB.
  •     Under Databases, select your WordPress username from the User dropdown, then select your WordPress database from the Db dropdown. Make sure All is checked under Privileges, then click Add User to Db.
    When you return to the main MySQL Account Maintenance screen, cPanel will list information about the database you just created. You should see the username you just added to the database (with ALL PRIVILEGES), as well as a few sample Connection Strings for you to use in Perl or PHP scripts to connect to the database. The PHP code will have the following format:

$dbh = mysql_connect("hostname", "username", "<PASSWORD HERE>") or die ("message");
mysql_select_db("databasename");

    Write down the values of hostname, username, databasename, and the password you chose. (Note that hostname will usually be localhost.)

Using phpMyAdmin

If your web server has phpMyAdmin installed, you may follow these instructions to create your WordPress username and database.

Note: These instructions are written for phpMyAdmin 2.6.0; the phpMyAdmin user interface can vary slightly between versions.

    If a database relating to WordPress does not already exist in the Database dropdown on the left, create one:
        Choose a name for your WordPress database ('wordpress' or 'blog' are good), enter it in the Create new database field, and click Create.
    Click the Home icon in the upper left to return to the main page, then click Privileges. If a user relating to WordPress does not already exist in the list of users, create one:
        Click Add a new User.
        Chose a username for WordPress ('wordpress' is good) and enter it in the User name field. (Be sure Use text field: is selected from the dropdown.)
        Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field. (Be sure Use text field: is selected from the dropdown.) Re-enter the password in the Re-type field.
        Write down the username and password you chose.
        Leave all options under Global privileges at their defaults.
        Click Go.
    Return to the Privileges screen and click the Check privileges icon on the user you've just created for WordPress. In the Database-specific privileges section, select the database you've just created for WordPress under the Add privileges to the following database dropdown. The page will refresh with privileges for that database. Click Check All to select all privileges, and click Go.
    On the resulting page, make note of the host name listed after Server: at the top of the page. (This will usually be localhost.)

Using the MySQL Client

If you have shell access to your web server, are comfortable with using the command line, and your MySQL user has the permissions to create MySQL users and databases, you may follow the example session below to create your WordPress username and database.

$ mysql -u adminusername -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE databasename;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname"
    -> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
 
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> EXIT
Bye
$

In the above:

    adminusername will typically be root, unless you have another high-privileged account set up.
    wordpress or blog are good values for databasename.
    wordpress is a good value for wordpressusername.
    hostname will usually be localhost. If you don't know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
    password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.

Write down the values you used for databasename, wordpressusername, hostname, and password.
Using Plesk

See: Plesk 7 at tamba2.org
Step 3: Set up wp-config.php

For the next part, the code you will be looking to change is as follows:

// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere');    // The name of the database
define('DB_USER', 'usernamehere');     // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
// Change SECRET_KEY to a unique phrase.  You won't have to remember it later,
// so make it long and complicated.  You can visit https://www.grc.com/passwords.htm
// to get a phrase generated for you, or just make something up.
define('SECRET_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

    Returning to where you extracted the WordPress package in Step 1, rename the file wp-config-sample.php to wp-config.php.
    Open the renamed wp-config.php file in your favorite text editor and fill in the following information, per the example above:

    DB_NAME
        The name of the database you created for WordPress in Step 2 .
    DB_USER
        The username you created for WordPress in Step 2.
    DB_PASSWORD
        The password you chose for the WordPress username in Step 2.
    DB_HOST
        The hostname you determined in Step 2 (usually localhost, but not always. See some possible DB_HOST values).
    DB_CHARSET
        The database character set, normally should not be changed. See Editing wp-config.php for details.
    DB_COLLATE
        The database collation should normally be left blank. See Editing wp-config.php for details.

    Save the file.

    For more extensive details, and step by step instructions for creating the configuration file, refer to Editing wp-config.php.

For information on enabling SSL in WordPress 2.6, see SSL and Cookies in WordPress 2.6.
Step 4: Upload the files

Now you will need to decide where on your web site you'd like your blog to appear:

    In the root directory of your web site. (For example, http://example.com/)
    In a subdirectory of your web site. (For example, http://example.com/blog/)

Note: The location of your root web directory in the filesystem on your web server will vary across hosting providers and operating systems. Check with your hosting provider or system administrator if you do not know where this is.
In the Root Directory

    If you need to upload your files to your web server, use your favorite FTP client to upload all the contents of the wordpress directory (but not the directory itself) into the root directory of your web site.
    If your files are already on your web server, and you are using shell access to install WordPress, move all of the contents of the wordpress directory (but not the directory itself) into the root directory of your web site.

In a Subdirectory
    If you need to upload your files to your web server, rename the wordpress directory to your desired name, then use your favorite FTP client to upload the directory to your desired location within the root directory of your web site.
    If your files are already on your web server, and you are using shell access to install WordPress, move the wordpress directory to your desired location within the root directory of your web site, and rename the directory to your desired name.

Step 5: Run the Install Script

Point your favorite web browser to start the installation script.

    If you placed the WordPress files in the root directory, you should visit: http://example.com/wp-admin/install.php
    If you placed the WordPress files in a subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php

The following screenshots show how the installation progresses. Notice in the screen, Entering the details, you enter your Weblog title and your e-mail address. Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and Technorati. Leave the box checked if you would like your blog to be visible to everyone, including search engines, and uncheck the box if you want to block search engines, but allow normal visitors. Note all this information can be changed later in your Administration Panels.

 Install Script Troubleshooting

    If you get an error about the database when you run the install script:
        Go back to Step 2 and Step 3, and be sure you got all the correct database information and that it was entered correctly into wp-config.php.
        Be sure you granted your WordPress user permission to access your WordPress database in Step 3.
        Be sure the database server is running.

Common Installation Problems

The following are some of the most common installation problems. For more information and troubleshooting for problems with your WordPress installation, check out FAQ Installation and FAQ Troubleshooting.

I see lots of Headers already sent errors. How do I fix this?
    You probably introduced a syntax error in editing wp-config.php.

        Download wp-config.php (if you don't have shell access).
        Open it in your favorite text editor.
        Check that the first line contains nothing but <?php, and that there is no text before it (not even whitespace).
        Check that the last line contains nothing but ?>, and that there is no text after it (not even whitespace).
        If your text editor saves as Unicode, make sure it adds no byte order mark (BOM). Most Unicode-enabled text editors do not inform the user whether it adds a BOM to files; if so, try using a different text editor.
        Save the file, upload it again if necessary, and reload the page in your browser.

My page comes out gibberish. When I look at the source I see a lot of "<?php ?>" tags.
    If the <?php ?> tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That's why it's called a preprocessor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.

I keep getting an Error connecting to database message but I'm sure my configuration is correct.
    Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:

SET PASSWORD FOR 'wordpressusername'@'hostname' = OLD_PASSWORD('password');

    If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host's control panel to reset the password for your database user.

My image/MP3 uploads aren't working.
    If you use the Rich Text Editor on a blog that's installed in a subdirectory, and drag a newly uploaded image into the editor field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select "Send to Editor." 

Starting wordpress step by step: Version - 2.6

If you are new to WordPress and you're worried about where to start, you've come to the right place! Here is a very simple step-by-step plan for getting started with WordPress. Please remember, if you need help along the way, plenty of options for assistance are listed in this article. Welcome to the exciting world of WordPress!

After installing WordPress and going through the following process step-by-step, consider making your first plugin installation the Codex and Forum Searcher Plugin. It allows you to search both the WordPress Codex and WordPress Support Forum from your WordPress Administration Panels. Click on one of the search results and the page will open in a new window or tab so you can have the article or discussion open while working on WordPress. This will make your transition to WordPress a much gentler one with information right at your finger tips.

 Step One - Read
Before you invest your valuable time and energy into installing WordPress, there are some documents you need to read. WordPress is a great product; it's easy-to-use, it's quite powerful, but it isn't necessarily the right software for everyone. Just like building a house, you have to use the right tool for the right job.
  •      About Weblogs - What is Blogging all about?
  •     What is WordPress?
  •     WordPress Features
  •     Before You Install WordPress

 Step Two - Make a Plan

Based upon the information you've just read, including instructions on installing WordPress, you should have a list of the things you need, and the things you need to do. If not, make that list now--you'll want to make sure it includes the following information:
  •     Website Host Requirements Checked and Verified
  •     Versions of PHP and MySQL Checked and Verified
  •     Your Website Username and Password
  •     Text Editor Software
  •     An FTP Client Software
  •     Your Web Browser of Choice

The following documents will help you understand more about how WordPress works and how to make a plan for your WordPress site:
  •     WordPress Features
  •     First Steps With WordPress
  •     WordPress Lessons

It is important to make a plan about how you want to use WordPress on your site. Here are some questions to ask yourself. Make a list of the answers so you can add to your plan.
  • Will you install WordPress in the root directory, subdirectory, or you just want to make a test site to make sure you want to use it?
  •  Have you made a list of your site Categories? Understand that WordPress can only order Categories alphabetically by name or by ID (order entered through the Manage > Categories screen), so if the display order of your Categories is important to you, start making your list of Categories.
  • Have you made a list of Pages you may want to add to your site, such as About, Contact, or Events?

Step Three - Install WordPress

With this information and your plan, it's time to install WordPress.
  •     Before You Install WordPress
  •     Installing WordPress
  •     Hosting WordPress
  •     Editing the wp-config.php file
  •     Frequently Asked Questions About Installing WordPress
  •     Using FTP Clients and Software
  •     Changing File Permissions
  •     Upgrading WordPress
  •     Common Installation Problems
  •     Trouble: I Can't Login

Step Four - Set Up WordPress
With your installation complete, it's time to set up WordPress so it will work the way you want it to work. As you change various settings, it is recommended you view how those changes impact your site by frequently clicking the View Site link at the top of the Administration Screen. Though you may choose to do these steps in any order, your site will cause you fewer problems if you proceed in the following order:

    Administering Your Blog
    Users > Your User Profile - set the user information you want published on your site
    Your User Profile > Other Users - add authors and users that will be using your site, if applicable
    Options > General - set your site name and other site information
    Options > Writing - set the settings of your Write Post screen
    Options > Reading - set how many posts to show on the front page and in categories and your feed requirements
    Options > Discussion - Turn on or off comments and set how to handle them
    Manage > Categories - add a few categories to get started from your category list
    Manage > Posts - After you have written a few posts, this is where you will manage them by editing or deleting
    Presentation > Themes - maybe change the look of your site?
    Manage > Pages - add a Page or two like "About Us" or "Contact Me"
    Write > Write Post - start adding content to your site
    Writing Posts - step-by-step instructions on writing posts

Take time to explore the WordPress Codex site, the official documentation site for WordPress. You'll find helpful information by reading WordPress Lessons, and these helpful documents:
  •     Introduction to Dealing with Comment Spam
  •     Moderating Comments
  •     Using the Links Manager
  •     WordPress in Languages Other than English

Presentation and Themes
With the new WordPress version 1.5, changing the look of your WordPress website is possible with just a few clicks. Here is a list of resources and information about changing the look of your site with WordPress Themes.
  •     Using WordPress Themes
  •     Blog Design and Layout
  •     Using Pages

At this point, there may be something about your Theme choice that is bothering you, or, you really want to get your hands dirty understanding how your WordPress Theme works. These simple guides to help customize your WordPress Theme:
  •     Lessons: Designing Your WordPress Site
  •     CSS Overview, Tips, Techniques, and Resources
  •     Stepping Into Templates
  •     Lessons: Template Files
  •     Stepping Into Template Tags
  •     Lessons: Working With Template Tags
  •     WordPress Template Tags
  •     Understanding the WordPress Loop
  •     The WordPress Loop in Action
  •     Editing Files in WordPress
  •     Frequently Requested Design Help
  •     Frequently Asked Questions about Site Layout and Design

If you want to create a new WordPress Theme from scratch, or do major renovations, or even design WordPress Themes for public release, you will need to be familiar with HTML, XHMTL, and CSS. The following documents will get you started:
  •     Developing Your Own WordPress Theme
  •     Designing Themes for Public Release
  •     Validating a Website
  •     Lessons: Website Development
  •     CSS Fixing Browser Bugs
  •     CSS Troubleshooting
  •     Positioniseverything
  •     Position is Everything's 3 Complex Column - Perched on a Lily Pad
  •     Position is Everything Piefecta 3-Column Layout

If you want a custom-made WordPress Theme created especially for you by expert web-designers, it is recommended you search for qualified web-designers on the Internet, or look in your local community, or draw from the List of Recommended Web Page Designers by Laughing Squid.
Adding Plugins

There are many "add-on" scripts and programs for WordPress called Plugins that add more capabilities, choices, and options to your WordPress site. WordPress Plugins do many things, including; customizing the results of your site information, adding weather reports, adding spell check capability, and presenting custom lists of posts and acronyms. For more on how to work with Plugins and where to find WordPress Plugins for your site:

Advanced Use of WordPress
Now that you are familiar with the basic features and functions of how WordPress works, it might be time for you to plunge deeper into the power of WordPress. The links below will expand your familiarity with PHP, HTML, XHTML, and CSS.

Monday, April 1, 2013

Common Errors after transfer WordPress to new server

WordPress is most well liked blogging framework of PHP. When any one try to move the wordpress website from one server to other site than there is some mistake will come. This mistake is not a large-scale matters and it can be explained by easy modification. There are many monarch of mistake come after transferring and underneath are the solution of this kind of some mistake.
Database mistake

mistake) Database mistake after uploading location in new server
This is just because of you require to change database title, username and password in config file. You need to change all like below connection step by step.

answer)
Check it step by step.
404 mistake

Error) 404 not discovered mistake when bang on mail after move to new server
This type of mistake arrive when you have changed in “GENERAL > Permalink” to make “/%postname%/”. This is because there is some application finished in .htacess document.

answer) you need to go to “GENERAL > Permalink” and make it default option than check the location and bang on post connection. If you open the post than change it afresh to “/%postname%/”. So you will get precisely same as before.
list Not brandish

Error) major menu not brandish.
Solution)This is difficulty when you change server or use other theme on website. You can easily go to “Appearance > list” and set it again. so you will get menu as it is.
Images Not brandish

mistake) Some images is not display.
answer) This kind of problem happens because you didn’t use benchmark connection of likeness. In any php document you have utilised “[URL]/wp-admin/[folder location]” this kind of URL. But you require to make it just like that “/wp-admin/[folder location]“. No require to use your domain URL to compose in link.

WordPress tutorial for beginners step by step

WordPress is mostly utilising structure of PHP that utilised for blogging. Every one can discover it and appreciated it easily. Any one can make them blog by just doing this easy step. They can also utilised distinct theme and plugin than they install it. It is so easy and not obligation of cipher. WordPress is opensource so no obligation to pay and you don’t need any particular editor.
Step By step WordPress tutorial

Step 1) Download WordPress from http://wordpress.org/

Step 2) In Live server, Unzip it in your Servers “public_html” Folder.
In localizedizedizedized server, Unzip it in your “c://wamp/www” Folder.

Step 3) Create database in your “PHPMyAdmin”.
In reside server, Cpanel add database from MySQL Option and add user in that database.
In local server, Browser open and make Database in “Localhost/phpMyAdmin”

Step 4) Open your location using your browser. Then pursue the process step by step. Also write your database name, client, Password in installation.

Step 5) After all process finished. This is all prepared for blogging. Now you can install new topic and plugins in Appearance>topic and Plugin>AddNew. And you can get it from WordPress.org and it is free. So enjoy…!!!

Five Beginner WordPress Tutorial Sites

Websites devoted to WordPress tutorials are few and far between. underneath are some that I have discovered. They cover just the basics to more than you might ever desire to understand. And, they are free.

wptuts WordPress tutorials
large location for learning about WordPress. Tutorials. items. Tips. Videos. If you are new to WordPress, ascertain out their Basix part.

cutting into Into WordPress
This is a large reference location. This has large content for those well known with WordPress. Most of the content is beyond the basics of WordPress. They cover everything from security to customization to topics. any thing you desire to understand after the basics, you’ll find on this location. If you are new to WordPress ascertain out their book, cutting into Into WordPress. It’s a truly incredible, functional publication. And, it’s very well designed. I refer to it nearly every time I do a new install of WordPress.

WordPress Beginner
Great location for those starting with WordPress. Their dwelling sheet has connections to everything you need to know to get begun with WordPress. They even offer free installation and setup if you use one of their suggested hosts. They have additional tutorials, a gallery of WordPress sites, a news part, information on plugins, etc. It is a great resource for any WordPress client.

ithemes wordpress tutorials
New to WordPress? ithemes has a great set of introductory videos. They cover all the rudimentary steps of using WordPress: the dashboard, posts, pages, connections, images, classes, tags, templates, plugins, themes.

Siteground wordpress tutorials
One can’t proceed incorrect with siteground. Their tutorials are methodical, comprise great screenshots, and are very simple to pursue.

What other sites have you discovered for good beginner WordPress tutorials? What are your favorites?

Thursday, March 28, 2013

WordPress Developer's Tutorial

At some point in every world wide world wide web developer's vocation, one sits down, breathes a heavy sigh, and gets the feeling "I've finished this all before, and too many times". if you work interior to a business, as a freelance developer, or just for your own mesh of sites, finally the 80/20 direct hits you. You understand, the one that has many corollaries, but in this case means "80% of the work you do on websites is effectively the identical stuff, over and over again".

Wouldn't it be pleasant instead to let someone additional do much of that work and support, and save your bashing brain for the creative stuff that's distinct every time? That considered hit me a few years before, when I recognized that even though all my websites were entirely distinct, I could design, cipher, and maintain them all with an open-source Content Management scheme (CMS). I did some serious study, such as implementing one website utilising PHP-Nuke, Mambo, Joomla, and eventually WordPress.

I chose WordPress as my general-purpose structure, even though it's theoretically a blogging platform, for a number of causes. First of all, it's backed by a company, yet still has a large number of unaligned suppliers. This is likely the best way of keeping cipher up to date and viable commercially, while still utilising the Open Source model. New features, bug repairs, and security patches are therefore released somewhat often, and it doesn't hurt that you can now update WordPress with a lone bang. Secondly, there are a phenomenal number of without coercion available, high value topics and plugins that permit you to effortlessly customize not only the look and seem, but furthermore the functionality of your WordPress site. eventually, the total interoperability of WordPress with other platforms is second to no one, so your location will be adept to handle everything from Google charts to SEO to AdSense to iPhone capability from day one. Don't accept as true it? That's why I'm here to teach you how to do it all.

Let's start with the basics. You can set up a WordPress blog free, but since you're a developer, you want a WordPress-based website, not simply a blog. At smallest, you'll need get access to to a world wide world wide web server with PHP 4.3 and MySQL 4.1.2, and then you just download the cipher, edit one configuration file, and upload it to your server. I've heard a allotment of programs businesses make outlandish claims, but believe me, the WordPress people are not exaggerating...when they converse about "five-minute installation", they are really departing you an extra 3 or 4 minutes for coffee! utilising a web hosting provider that carries cPanel makes things even easier (once you know your way round cPanel, that is), but if you know the database login information for MySQL on your server, you're attractive much already finished.

one time you've effectively installed WordPress, make sure you exact replicate the admin account login name and password (they will even develop a good one for you). You'll first find yourself at the Dashboard:

Most of the purposes and technical menus are on the left sidebar. discover the client interface a bit. WordPress comes with a lone experiment blog mail (Posts/Edit); you should add a couple of more, not just to get the feel of how it's done, but furthermore to fill up the page with text and mails, so that you'll better be able to glimpse how different topics change the gaze of the sheet. 

And "page" is the key phrase here, because sheets are the mystery key to getting WordPress to do what you desire (assuming you desire more than just a blog). Using the WordPress page characteristic, you can create and title static sheets easily--using either the built-in WYSIWYG reviewer or raw HTML--while remaining inside the WordPress structure with all of its advantages. 

one time you've conceived some mails and sheets (use Lorem Ipsum if you're in a hurry), you can advance to finding yourself a pleasant topic. As I mentioned in a previous article, you can save a lot of time when picking topics by deciding what function you desire the topic to assist. There are topics currently optimized for things like photo galleries, e-commerce, and SEO, so seek for tags or keywords that will help you do what you desire. WordPress even has a new search interface for this very reason. And when you do get a list of likely topics, take a very cautious look at how well other users ranked them, because that will give you a good hint of how much trouble persons had endeavouring to use them!

Basics of Effective Web Designing

The website is more than just a notice board. It plays an important role in making your business popular to the competitive market field. It is your web presence that represents your brand eminence to the prospective customers and creates the positive impact on viewers mind. That is the reason why you need to select the most efficient website design company who can pave your way to success through brilliant website design and development. You may not think of hiring a professional designer and decide to construct the website at your own. But setting up a web designing team to develop just a single website for your business will definitely be much more expensive for your budget. Therefore, it is wise to outsource the service from an eminent company, which will save your money and effort to a great extent.

But the matter is to select the best service provider in order to get the most out of your expense. The professionals not only develop a website from the scratch but also enhance the quality of an existing website by redesigning and editing the content as needed. Website redesigning services are normally offered under separate package. In fact, there are multiple packages in offer for web design, website redesigning, logo, designing, banner designing, website promotion, web marketing and many more. Careful website maintenance is one most essential part of having an active web presence. When the business develops and the infrastructure scales up, the website should reflect that. Therefore, website maintenance is another service offered by the web developers.

Some of the companies offer multiple services in a single package to make the deal more cost effective. So, identify the services you actually want before hiring a web designing company. However, you must not concern only over the service cost compromising with the quality. The web design technology should be in line with the current designing trend and standards. It should not throw up more questions on viewers mind than revealing the answers. With strategic design and development, the capable website designers bring perfect web marketing solution for the site owners. Through careful research and analysis the web developers find the basic objective of the website and then prepare the content accordingly. So, you must be a wise consumer and pick the best website development company within your reach.

We intend to Inform, Impress and Induce through the websites. The fact is website visitors take no time to move away with a single click finding no impressive content at a glance. So, the site should be catchy enough to grab the attention of the viewers and retain their interest. Too much of anything is always harmful. A fine balance of graphics and applications should be there to make the navigation simpler and faster. The site should not take ages to get loaded as no one has the time and patience to wait for. These are few of the very common aspects of a good website that a professional web designer normally takes care of.

How to make a blog website



First we need to download WordPress from WordPress.com You can upload through a FTP, or log into your host dashboard and install WordPress using the already provided WordPress download. Since we do not want to ReDesign our existing website and only add a blog page we will simply install WordPress in the subroot directory on your server. If you wish to go fully dynamic install in the root directory.

Once installed you will then login to your dashboard. Example of Login is (url wp-admin) The wp-admin must always appear in order to log in. Now since we are not Re-Designing the site and just adding a blog page it would look like this to log in. (url/blog/wp-admin)
Now that you have a blog and have logged in WordPress site, it’s time for your site to start taking shape. I have listed these in order. This must be done this way or you will never get your site to appear properly.
  • Add Pages first, decide what you will name them and click on the page tab on the fly out menu to your left.
  • Add Menu, to get to the menu you will need to locate the appearance tab on the left. The first thing you need to is name the menu. Header Menu,Footer Menu and Sidebar Menu. Now look to the lower left and you will see you pages. Select all pages and hit apply. If you want sub page drop downs simply drag the new page menu over a notch to the right under the appropriate name.
  • Change Permalinks is important, you will find this under the Settings tab. Click on permalinks. Most people name them %postname% this renames your pages from numbers to the name of the page you included in the menu.
  • Install Jetpack.is a great feature to add to a web design. Once connected by clicking on the menu tab called Jetpack you will see many useful choices. My favorite is the Stats. This feature is free and allows you to see what visitor came to your site when, and best of all what key words they used to find you.
  • Add plug-ins and once installed you will add widgets to your site. An easy way to think of this is that each plug in is a widget. My favorite is Ultimate SEO. So for sake of keeping with this web design article type in Ultimate SEO. Once you see it in the list click on install. Once installed Click on Activate.

Tuesday, March 26, 2013

A Network of Websites Using WordPress Multisite

WordPress Multisite is a characteristic that since WordPress type 3 has been encompassed discreetly right into the establish itself. It is a feature that loads a gigantic hit, permitting 1000s of blogs to live effectively inside one, lone WordPress install. It is a large idea for large-scale sites that use multiple sub-domains, blog systems, social systems, or even interior networking for enterprises or organizations. While this characteristic has been around for nearly as long as WordPress itself, it is just now getting the vigilance it deserves – even from WordPress devs.

By the end of this tutorial series, you should be exceedingly familiar with what WordPress MS is, how to install it, how to conceive new sites, and how to use it most competently for your next task.

What precisely is WordPress MS?
In a nutshell, Multisite enables a lone WordPress install to proceed like a network of sites centralised round a single domain (http://yoursite.com). It permits for either new sub-domains (http://subdomain.yoursite.com) or sub-directories (http://yoursite.com/subdomain), and it does all this effectively, which means you do not need to create new folders. Instead, by just supplementing some code to wp-config.php and .htaccess, you have thousands of sites right at your fingertips.

Multisite furthermore allows for easy mesh administration through a single admin dashboard which a client with befitting permissions can get access to by any network site’s admin bar. Multisite is by no means “new”. It has been round for nearly as long as WordPress itself, although before it was evolved individually. Since WP 3.0 it has been encompassed simultaneously with WordPress, and, as I mentioned above, it seems like it will only get more user-friendly as the WordPress devs seem to be giving some particular vigilance to it in 2012.

Next, let’s look at installing Multisite on a usual WordPress establish.

establishing WordPress Multisite
For many persons, installing Multisite can be a nightmare. I hope to alleviate that by taking you step-by-step through both a sub-directory and sub-domain establish. Let me state first, that it is by far easier to establish Multisite on a new establish, even though it is still likely to do it on an older establish with pre-existing content. although, there could possibly be permalink matters.

With that said, the following steps assume that you have accomplished a benchmark establish of WordPress. However, the steps can request to a new or previous establish.

triggering the Network Setup Menu piece
In alignment to even start the method of installing Multisite, you need to open your wp-config.php document, and right overhead 

/* That's all, stop editing! Happy blogging. */

add the following:

/** Allow Multisite **/

define('WP_ALLOW_MULTISITE', true);

The first line simply is a comment that will help us keep our code tidy. Next, we tell our WordPress install to allow Multisite functionality. Once you have edited and saved the file, you should now see the following in your “Tools” submenu:
From this screen, you have the following items to configure:
  • Site Addresses – From here you will select whether to use sub-domains or sub-directories. If you choose to work with sub-domains, you should verify with your host if it is possible.
  • Network Title – The title for your network.
  • Admin E-Mail Address – The admin contact for your new network.
  • The server address should already be filled in to display how your new permalinks will appear.
Finishing the Multisite Install
Now, let’s look step-by-step at the instructions given on the “Enabling the Network” page. Before you dig into this, I would strongly suggest that you backup your wp-config.php and .htaccess files. This will save a lot of headache in the future.

Create a new directory named blogs.dir, and place that in your root folder’s wp-content folder. This folder must be writable by the web server, as it will be used to store all of our network’s uploaded media.

Add the following code for a subdomain install:

    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'yoursite.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );



and this for a sub-directory install


    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'yoursite.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );



Make sure to change yoursite.com to the URL of your site – make sure it is without WWW. Broken down, this code identifies this as a sub-domain or sub-directory install, and sets your main site’s ID as Every site has an ID, and it is important to note these as you start to work with plugins and build custom queries.

Add the authentication keys provided to wp-config.php. This will help secure your install.

Finally, you want to add the following code to your .htaccess file:


        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
       
        # uploaded files
        RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
       
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^ - [L]
        RewriteRule . index.php [L]



This code will replace any other WordPress code that you find in .htaccess.

For another reference on setting up a WordPress Multisite network, be sure to visit the “Create a Network of WordPress Sites” page in the Codex.








Things to Note with Multisite Installs

    Multisite is easiest to install on a fresh WordPress install with the sites as sub-directories. That isn’t to say don’t install it any other way, just to point out the easiest path.
    If you use Multisite, then you can not give WordPress it’s own folder. It must be installed in the root folder of your site.
    Editor’s Note: This is not 100% correct, for further information and clarification, see Andrea_R’s comment below.
    Your web host may not allow for the creation of sub-domains. Be sure to check this out before attempting a sub-domain install.
    You must activate the network feature from the WordPress dashboard. Simply adding the code to wp-config.php and .htaccess is not enough.

Navigating the Network Admin

In order to access the Multisite admin dashboard in WordPress 3.0 and later, simply hover over My Sites in the admin bar at the top of the browser window, and click on Network Admin.

Once in the dashboard, the menu looks like this:

The Network Admin menu has the following submenus:

    Sites – From here you can create new network sites, visit admin dashboards, delete sites, and edit site settings.
    Users – This submenu allows you to manage users by creating, editing, and deleting them. You can also see which users have registered on specific sites.
    Themes – With Multisite, themes are managed from the network. Themes must be installed, activated, and edited from within the network admin dashboard. They can still be switched in the site dashboard.
    Plugins – Just like themes, plugins are installed and activated on the network from this dashboard. Plugins can still be activated and set up in the site dashboard.
    Settings – This submenu lets you set the network name, admin email, registration settings, welcome emails, initial site settings, and upload settings. This is a great submenu to configure if you are using Multisite as a blog engine or social network.
    Updates – From this submenu, you can do network-wide updates on WordPress core, plugins, and themes.

Next, I want to walk you through creating your first network site. If you are familiar with using WordPress, everything else should seem pretty normal, with the exception of having to go through a network dashboard to activate plugins and themes instead of a normal site dashboard.
Creating a New Site

    From the network dashboard, navigate to Sites –> Add New.
    Next, you will need to specify the site address, site title, and an admin email. The screen will look like this:
    Once added, you will see a message at the top verifying the site’s creation. You can now visit the site’s dashboard, or edit the site’s settings from the network dashboard. Two emails will also be sent. Once will go to the network’s overall admin notifying them of the new site, and one will go to the site’s new admin, notifying them of their login credentials.

And that’s how easy creating sites can be in WordPress MS! Now, let’s look at some plugins.
Indispensable Plugins for WordPress MS

Here is a list of some plugins that I suggest using on MS installs, and, as always, if you have others to add throw them in!

    WordPress MU Sitewide Tags Pages

    This plugin allows you to create a specific blog on the network where ALL recent posts on the network can be found. From within the plugin, you can also specify this to be on the main site that you set up in the initial Multisite install. The max number of posts to display can be set as well.
  
Multipost MU / ThreeWP Broadcast

    This plugin allows users that create content on different blogs to "broadcast" their posts to other blogs on the network. In addition to post content, categories, tags, and custom fields can also be broadcasted. To ease publishing to multiple blogs, blog groups can be created.
    More Privacy Options

    This plugin allows you to set the privacy level of each blog from within the network dashboard site’s settings panel. The options are:
    Domain Mapping

    This plugin allows users to use their own domain names on your Multisite network. This plugin does require a knowledge of adding and editing plugin files and a basic understanding of how servers work and your specific server settings. A great tutorial for setting up this plugin can be found on Otto’s blog, “WordPress 3.0 Multisite Domain Mapping Tutorial“.
    Multisite User Management

    This plugin allows admins to set the default role of each, individual network blog. Once activated, a list of blogs appears on the network settings page. This plugin is different than the New Blog Defaults plugin, as it targets the individual sites as opposed to every new blog. For instance, if you want one site to allow all default users editor capabilities and another to have subscriber capabilities, then this is the plugin you are looking for.
    New Blog Defaults

    This plugin creates defaults for any new blog created on the network. Once activated, a new menu appears under the network Settings submenu. From here, you can edit any of the normal WordPress settings: general blog settings, reading settings, writing settings, permalink settings, discussion settings, privacy settings, and media settings. You can also choose a site’s default theme, and set other options like categories, links, and initial user settings.
    Extended Super Admins

    This plugin allows for the creation of specific user classes with specific roles. The plugin, once activated, can be found under the main network Settings submenu. The capabilities list is extensive.
   

How to Integrate prettyPhoto with Post Images in your Wordpress Themes

Download prettyPhoto and set up book or directions structure
Head over to margins for-errors.com and download the plugin. one time you’ve got it we’re going to create a new book or directions structure for the plugin to make things simpler for us.

First let’s delete a few things we don’t need. In the images folder delete everything apart from the prettyPhoto folder and it’s contents. In the origin folder, delete the document xhr_response.html and index.html. Now move jquery.prettyPhoto.js from the js folder to the origin plugin folder and delete the js folder.

eventually, rename the folder to prettyPhoto and upload the folder to your theme’s book or directions, you probably currently have a js or scripts book or directions so upload to that, for this tutorial let’s presume it’s in your-theme/js.

Add the scripts to your theme
Before we burden up the plugin files in our topic we need to load jQuery. We’re going use the Google hosted type of jQuery using the method shared on cutting into into WordPress, so let’s add the snippet to our functions.php. 


if (!is_admin()) {
    add_action("wp_enqueue_scripts", "register_scripts", 11);
}
function register_scripts() {
    wp_deregister_script('jquery');
    wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
    wp_enqueue_script('jquery');
   
    wp_register_script('prettyPhoto_script', (get_bloginfo('stylesheet_directory')."/js/prettyPhoto/jquery.prettyPhoto.js"));
    wp_enqueue_script('prettyPhoto_script');
    wp_register_script('customprettyPhoto_script', (get_bloginfo('stylesheet_directory')."/js/prettyPhoto/customprettyPhoto.js"));
    wp_enqueue_script('customprettyPhoto_script');
}

You might desire to address the benefits and disbenefits of using a CDN to assist jQuery. WordPress does ship with a copy of jQuery but utilising Google’s hosted type may benefit your site’s presentation. If you’re a topic scribe I would stick with using the transported type. ascertain out the consideration on another tutorial to help you make up your own mind.

You’ll observe we’ve supplemented another document called customprettyPhoto.js. This is where we’ll be making the plugin play pleasant with our post images and initialising it. So let’s create that document and put it in your prettyPhoto directory. OK, let’s initialise prettyPhoto.  

<script>
  $(document).ready(function(){
    $("a[class^='prettyPhoto']").prettyPhoto();
  });
</script>


We need to add a line of jQuery to add the needed prettyPhoto class prettyPhoto to the anchor tags that enclose our mail images. Since we’re talking jQuery let’s use it to complete this. Add the following right after $(document).ready(function(){ where we make sure the sheet is loaded.

$('.entry-content a').has('img').addClass('prettyPhoto');  


Replace .entry-content with anything class name or ID you’ve wrapped your mail content with and you should have effectively added the class to all connections that cover your mail images. If you had a look at the documentation for prettyPhoto you will see it states to use a rel attribute but rather than we’ve utilised a class. Doing so stops validation mistakes in our HTML because rel attributes can only have certain allowed values according to the HTML5 spec.

Next we want to endow prettyPhoto’s description choice. We have to overcome one small obstacle which is that prettyPhoto wants us to add name attributes to our anchor tags that will be used for the descriptions but WordPress adds names to likeness tags. To explain this we’ll compose a twosome lines of jQuery that will take the image name tag and set the same title on the anchor tag that wraps the image. 

$('.entry-content a img').click(function () {
    var desc = $(this).attr('title');
    $('.entry-content a').has('img').attr('title', desc);
});

 
Here we blaze a function when the client clicks on a mail likeness. We grab the image’s name tag and attach it to the anchor. This step makes it a allotment simpler for your theme’s users to add descriptions. If you desire to disable the functionality entirely just make sure to set each anchors name to be empty, if it’s totally missing, as in there isn’t even an empty title, prettyPhoto will just display “undefined” instead.

Add the prettyPhoto CSS to your topic
We need to add the CSS for prettyPhoto to the theme. Back to your functions.php document and add the following line to the top: 

wp_enqueue_style('prettyPhoto', get_bloginfo('stylesheet_directory').'/js/prettyPhoto/css/prettyPhoto.css');

Since we kept the images and CSS in their original folders and relative to each other as they were originally we don’t need to worry about broken images.

Let’s gaze at how to add captions and names that our prettyPhoto will use. Looking at the likeness overhead we can see the connection between the mail likeness alt tag and link title tag we can set when supplementing an likeness to a mail or page.