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.