The installation process of WordPress

Source: Internet
Author: User
Tags website server ftp client hosting home screen install wordpress plesk subdomain subdomain name

WordPress is known for easy installation, in most environments WordPress installation process is very simple, not 5 minutes to complete. The following Setup wizard will help you, whether you are looking for the famous 5-minute installation step or more Installation Details Wizard.

    • Things to Know before WordPress installation starts

    • Famous 5-minute installation steps

    • Installation instructions in detail

    • General installation Issues

    • WordPress Speak Your language

    • Install WordPress in your language

    • How to install multi-person Bo

    • WordPress Local Installation

Things to know before you start

Before you start the installation, there are some things you must know and must do.

Installation Prerequisites

You need to have permission and software to manage your site and its directory to complete the installation of WordPress, including the following:

    • Manage the channel of the server (either through shell or FTP)

    • A text editor

    • An FTP account (if you want to install WordPress on a remote server)

    • Select a browser

Installation Preparation

Before you start the installation:

    1. Check and make sure your space has the minimum requirements to run WordPress.

    2. Download the latest release version of WordPress.

    3. Unzip the download file to a folder on your hard drive.

    4. Print out this page to handle the difficulties you encounter during the installation process.

Famous 5-minute installation steps

This is a quick installation guide for people who are accustomed to installing it. More details are provided below.

    1. If you do not have a WordPress software package, you need to download and unzip it.

    2. Establishes a database for WordPress on your console and a MySQL user with access and modify permissions.

    3. Renamed wp-config-sample.php to wp-config.php.

    4. Open wp-config.php with your favorite text editor (Notepad) and fill in your database information.

    5. Upload the wordpress file to the appropriate place on your Web server:

      • If you want to access the blog directly using a top-level domain name (for example, http://example.com/), unzip All content in the post-WordPress directory (not including the outermost WordPress folder) is uploaded to your space top-level directory.

      • If you want to use a subdomain name (for example, http://example.com/blog/), rename the directory WordPress to the subdomain you want, such as a blog, and upload it to your top-level directory of space.

    6. Access wp-admin/install.php run the WordPress script in the browser.

      • If you install WordPress in a top-level directory, you need to access http://example.com/wp-admin/install.php

      • If you add word Press is installed in subdirectories, such as blogs, you should visit http://example.com/blog/wp-admin/install.php

Come on! WordPress should already be installed.

See

    • WordPress Installation Example

    • Install the WordPress video tutorial

    • Introduction to installing WordPress Audio Video

Installation instructions in detailFirst step: Download and decompress

Download and unzip the installation package downloaded at http://wordpress.org/download/.

    • If you want to upload WordPress to a remote host, you will download the wordpress package to your computer using your browser, then unzip it.

    • If you can use the shell to access the host, and can be used console-based tools, if you do not want to use FTP, you can use wget (or Lynx or other console-based browser) to download WordPress directly to your website server.

      • wget http://wordpress.org/latest.tar.gz

      • Then unzip the package:
        TAR-XZVF latest.tar.gz

The WordPress software package will be extracted to a folder called WordPress, which is in the same directory as the latest.tar.gz you downloaded.

Step two: Create a database and user

If you are using a hosting provider, you may already have a WordPress database, or have an automated installation solution. Check your hosting provider's support page or your dashboard to see if you need to create a database manually.

If you do need to manually create a database, follow the instructions below to access different versions of phpMyAdmin or follow the steps for using cpanel or using phpMyAdmin .

If you are installing WordPress on your own Web server, follow the instructions for using phpMyAdmin or using the MySQL client to create your WordPress database and user name.


Using CPanel

Main article: Using the CPanel

If your hosting provider uses cpanel, you can follow the steps below to create your WordPress database and user name.

  1. Log in to your cpanel

  2. Click MySQL Databases

  3. If there are no WordPress-related users in the users area, you will need to create one:

      1. Select a user name for WordPress (' WordPress ' is good) and type it into the users area.

      2. Select a hard-to-guess password (preferably with large, lowercase letters, numbers, and symbols) and type it into the Password area.

      3. Write your chosen username and password on paper.

      4. Click the Add User

  4. If there are no WordPress-related databases in the Databases area, you need to create one:

      1. Choose a name for your WordPress database (' wordpress ' or ' blog ' is good), type it into the DB area, and click Add db.

      2. Under Databases , select the wordpress user name from the user drop-down menu and select WordPress Database from the Db drop-down menu. Make sure to tick all before privilleges , and then click Add User to Db.

  5. When you return to the home screen MySQL account Maintenance , cpanel lists the information for the database you just created. You should be able to see the user name you just created (with the all privileges flag), and a few examples of Connection Strings , to teach you to connect to the database using Perl or PHP scripts. The PHP code has the following format:

$DBH = mysql_connect ("hostname", "username", "<password here>") or Die ("message"); mysql_select_db ("DatabaseName ");
    • Write down hostname(hostname),username(username),databasename(database name), and password. (Note:hostname are usually localhost).

Using PhpMyAdmin

If your server has phpMyAdmin installed, you can create a wordpress user name and database as follows.

Note: These steps are written for phpMyAdmin 2.6.0, and different versions of the phpMyAdmin interface will be slightly different.

  1. If WordPress does not appear in the Database drop-down menu on the left, you need to create one:

      1. Choose a name for your WordPress database (' wordpress ' or ' blog ' is good), type it into the create new database area, and click Create.

  2. Click the Home icon in the upper-left corner to return to the main page, and then click privileges(permissions). If there is no WordPress in the list of user names, you need to create one:

      1. Click Add anew user (to add one)

      2. Select a user name for WordPress (' WordPress ' is good), type it into the user name box. (Verify that the Use text fieldis selected in the drop-down menu:)

      3. Select a hard-to-guess password (preferably containing large, lowercase letters, numbers, and symbols) and type it into the Password box. (Select Use text field:in the Confirmation drop-down menu) and enter the password again in the re-type box.

      4. Write your chosen username and password on paper.

      5. All options under Global privileges are placed at the default value.

      6. Click Go

  3. Go back to the privileges page and click the Check privileges icon on the WordPress user you just created. In the database-specific privileges area, in the Add privileges to the following database drop-down menu, select the WordPress databases you just created. The page refreshes and the database permissions appear. Click Check All to select all permissions, and then click Go.

  4. On the results page, note the host name at the top of the page, Server: behind. (usually localhost)

Using the MySQL Client

If you can access the shell of your server and you prefer to use the command line, and your MySQL user has permissions to create MySQL users and databases, you can create the WordPress user name and database as the following example.

 $ mysql -u  ' Adminusername '  -pEnter 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> exitbye$ 

On top:

    • Adminusername is usually root, unless you have set up an account with advanced permissions.

    • databasename value is better with WordPress or blog.

    • The value of Wordpressusername is better with WordPress.

    • hostname is usually localhost. If you don't know what this value is, please contact your system administrator. If you are a system administrator, please indicate what this value should be.

    • password should be a password that is not easy to guess, preferably with uppercase, lowercase letters, numbers, and symbols.

Write down databasename, wordpressusername, hostname, and password .

Using Plesk

See:

    • Plesk 7 at Tamba2.org

Step Three: Set wp-config.php

In order to continue with the following links, please find the following code and make changes:

// ** mysql settings ** //define (' db_name ',  ' WordPress ');      // the name of the databasedefine (' db_user ',  ' username ');      // your mysql usernamedefine (' Db_password ',  ' PASSWORD ');  //  ...and passworddefine (' db_host ',  ' localhost ');     // 99%  Chance you won ' T need to change this value 
    1. Return to the place where you unzipped the WordPress package at the first step and rename the wp-config-sample.php file to wp-config.php.

    2. Open the renamed wp-config.php with your favorite editor and fill in the following information, for example:

      • db_name

      • The name of the database you created for WordPress in the second step .

      • Db_user

      • The user name that you created when you set up the WordPress database in the second step .

      • Db_password

      • The password that you created for your database user in the second step .

      • Db_host

      • The hostname you decided on in the second step (usually localhost, but not absolutely, please fill in according to the actual situation).

    3. Save the file.

For more details and configuration guidance on creating profiles, see Editing wp-config.php.

Fourth step: Place the file

Now you have to decide where to place your blog in your website to display:

    • The root directory of the Web site. (e.g. http://example.com/)

    • Subdirectories in the Web site. (e.g. http://example.com/blog/)

Note: the location of your site's root directory in the server's file system can vary greatly depending on the space provider or operating system. If you don't know where the root directory is, contact your space provider or system administrator.

Put in root directory (root directories)
    • If you need to upload files to the server, upload all contents of the WordPress directory (not including the WordPress directory itself) to the root of the website with your favorite FTP client.

    • If the file is already on the server, you can use shell access to install WordPress, mobile all the contents of the WordPress directory (not including the WordPress directory itself) to the root directory of the site.

Put in subdirectories (subdirectory)
    • If you need to upload files to the server, rename the WordPress directory to the name you want, and then upload it to the desired location with your favorite FTP client (which is, of course, within the site root directory).

    • If the file is already on the server, you can use shell access to install WordPress, move all the contents of the WordPress directory to the place you like (of course, within the root directory of the site), and then rename that directory to the name you want.

Fifth step: Run the Setup program

Use your favorite browser to access the wp-admin/install.php you just installed in the WordPress directory on your website.

    • If you installed the blog subdirectory, you should visit:

http://example.com/blog/wp-admin/install.php.

    • If you installed the root directory of the site, you should visit:

http://example.com/wp-admin/install.php.

The following screenshots show the installation process of the installation script, which guides you through the remaining installation process.


Files: install-step1.png

Getting Started Screen

Files: install-step2.png

Entering Details

Files: install-step3.png

All done!

Troubleshooting Installation Programs
    • If you get errors about the database when you run the installation script, please:

      • Please go back to step two or step three to confirm that you have correctly entered information about the database in wp-config.php.

      • Verify that your wordpress user (database user) has been allowed to connect to the database you created in step three .

      • Verify that your database is running.

General installation Issues

Here are some of the most frequently encountered installation issues. See the Installation FAQs and Troubleshooting FAQs For more information.

    • I see a lot of headers already sent error, how to fix?

    • You may have made grammatical mistakes while editing wp-config.php.

      1. Download wp-config.php (If you can't access it by Shell)

      2. Open it with a text editor

      3. Confirm that the first line is only <?php, and cannot have any characters in front of it, including spaces.

      4. Confirm that the last line is only., after it cannot have any characters, including spaces.

      5. Save the file, re-upload it, and then refresh the page.

    • I have a lot of messy characters on my page. When I looked at the source code, I found a lot of "<?php?>" tags.

    • If the "<?php?>" tag is sent to the browser, this means that your PHP is not working properly. All of the PHP code is executed before the server sends the final HTML to your browser. (This is why it is called pre- processing). Check that your server meets the requirements for running WordPress, that PHP is installed and configured correctly, or that you can contact your space provider or system administrator for assistance.

    • I always get the error connecting to database information, but I'm sure my configuration is correct.

    • Try manually re-setting your MySQL password. If you can access MySQL through the shell, try the following command:

SET PASSWORD for ' wordpressusername ' @ ' hostname ' = old_password (' PASSWORD ');
    • If your MySQL version is less than 4.1, use PASSWORD instead of Old_password. If you do not have shell access, you should be able to simply enter the above command into a SQL queue in phpMyAdmin. If this fails, you may need to use the console's control panel to reset your database user's password.

If you encounter any problems contact: Wang_cyi QQ Group discussion: 234303445

The installation process of WordPress

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.