Learn how to install WordPress website programs

Source: Internet
Author: User
Tags ftp client cpanel install wordpress wordpress database wordpress version
WordPress is famous for its simple installation. In most cases, installing WordPress is a simple process that can be completed in less than five minutes. The following installation guide can help you complete the installation in five minutes, or learn more about the installation information. Before you start the installation, make some preparations. Required

WordPress is famous for its simple installation. In most cases, installing WordPress is a simple process that can be completed in less than five minutes. The following installation guide can help you complete the installation in five minutes, or learn more about the installation information.

Before you start the installation, make some preparations.

What is required for installation

You need access to your website and its directory, and some necessary software during installation. They are:

What needs to be done during installation

Before installation, please:

Download the latest WordPress version.

Decompress the downloaded file to a folder on your hard disk.

Print this page for reference at any time during installation.

The following is a quick installation description, suitable for those who often install such programs. More detailed installation instructions are described in the next section.

If you have not downloaded the WordPress package, first download and decompress the WordPress package.

Create a database on your server and a MySQL user with the permission to access and modify the new database.

Rename the wp-config-sample.php file to the wp-config.php.

Place the WordPress file in a suitable directory on the Web server:

If you want to integrate WordPress to the root location of your domain name (such as http://example.com/), extract the wordpress folder (but not the directory itself) all content in the file is moved or uploaded to the root directory of the Web server.

If you want to install WordPress in a subdirectory (such as a http://example.com/blog/) under your website, rename the decompressed wordpress folder to the subdirectory name that idea wants, then move or upload the file to the root directory of your Web server. For example, if you want to install WordPress in a subdirectory named "blog, you should rename the decompressed folder "wordpress" to "blog" and upload it to the root directory of the Web server.

Access wp-admin/install. php in your favorite Web browser to run the WordPress installer.

That's all! WordPress should have been installed successfully now.

See:

Step 1: Download and decompress Step 2: create a database and a user Use cPanel

Main article: using cPanel

If your host provider uses cPanel, follow the instructions below to create your WordPress database and users.

ClickMySQL Databases.

IfUsersThere are no WordPress-related users in the topic, so create a new user:

Set a username for the WordPress database ("wordpress" is good) and enter itUserNameText box.

Select a password that is not easy to guess (it is the best combination of uppercase and lowercase letters, numbers, and symbols) and enter itPasswordPassword box.

Write down the user name and password you just selected.

ClickAdd User.

IfDatabasesIf no WordPress-related database exists in the column, create a new database:

InDatabasesBelow the topicUserSelect your WordPress database username from the drop-down list andDbSelect your WordPress database from the drop-down list. Confirm selectedPrivilegesUnderAllCheck box, and then clickAdd User to Db.

When you returnMySQL Account MaintenanceOn the home page, cPanel lists the information about the database you just created. You should see the username you just added to the database (including ALL permissions for all privileges), and severalConnection StringsExample, used in your Perl or PHP script to connect to the database. PHP code should have the following format:


$ Dbh = Mysql_ Connect ("hostname", "username "," ") Or die (" message ");
Mysql_select_db ("databasename ");

Write down the aboveHostname,UsernameAndDatabasenameAnd the password you just selected. (Note: generallyHostnameIsLocalhost.)

Use phpMyAdmin

If phpMyAdmin is installed on your Web server, follow the instructions below to create your WordPress database and users.

Note:: The version used in this tutorial is phpMyAdmin 2.6.0. The phpMyAdmin user interface varies with the version.

IfDatabaseIf no WordPress-related database exists in the drop-down list, create one:

ClickMain DirectoryReturn to the home page, and clickPermission. If no WordPress-related user exists in the list, create a new user:

ClickAdd new user.

Set a username for the WordPress database ("wordpress" is good) and enter itUser nameText box. (Please confirm in the previous drop-down boxUse text fieldsSelected .)

Select a password that is not easy to guess (it is the best combination of uppercase and lowercase letters, numbers, and symbols) and enter itPasswordPassword box. Enter the same password againRe-inputPassword box.

Write down the user name and password you just selected.

Global permissionsAll options use the default value.

ClickRun.

BackPermissionPage, and click next to the user you just created for WordPressEdit permissionIcon. InSpecify permissions by databaseIn this sectionAdd permissions to the following databasesSelect the database you just created for WordPress from the drop-down list. Then phpMyAdmin will take youSpecify permissions by database. ClickSelect allTo select all permissions, and then clickRun.

On the result page, note the top of the pageServer:The host name after the tag. (UsuallyLocalhost.)

Use the MySQL client

If you have the Shell permission on the Web server, you are used to using the command line tool, and your MySQL users have the permission to create MySQL Users and databases, you can refer to the following example to create your WordPress database and user.


$ 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 preceding command and output:

AdminusernameUsually root, unless you have another account with higher permissions.

DatabasenameIt is better to use wordpress or blog.

WordpressusernameIt is better to use wordpress.

HostnameIt is usually localhost. If you do not know what it should be, contact the system administrator. If you are a system administrator, please tell the user what this value should be.

PasswordIt should be a difficult-to-guess password (it is the best combination of uppercase and lowercase letters, numbers and symbols ).

Write downDatabasename,Wordpressusername,HostnameAndPassword.

Use Plesk Step 3: Set wp-config.php

What you need to modify in wp-config.php is:


// ** MySQL settings **//
Define ('Db _ name', 'wordpress '); // database NAME
Define ('Db _ user', 'Username'); // MySQL USER name
Define ('Db _ password', 'password'); //... and PASSWORD
Define ('Db _ host', 'localhost'); // You do not need to modify this value in case of 99%

Back to yourStep 1Decompress the WordPress package in, rename the file wp-config-sample.php to the wp-config.php.

Open the renamed wp-config.php file in your favorite text editor and modify the part of the code mentioned above:
DB_NAME
You haveStep 2Name of the database created for WordPress.
DB_USER
You haveStep 2Name of the database user created for WordPress.
DB_PASSWORD
You haveStep 2Password selected for the WordPress database.
DB_HOST
You haveStep 2Database host name (usually localhost, but not necessarily ).

Save the file.

For more details and an introduction to the hands-on for creating a configuration file, see edit wp-config.php.

Step 4: place files

Now you need to decide where your Blog is stored on your website:

Note:: Your Web root directory is in the Web server file system. different host providers and operating systems are different. If you do not know what it is, ask your host provider or system administrator.

In the root directory

If you need to upload files to the Web server, use your favorite FTP client to upload all the files in the wordpress Directory (but not including the directory itself) to the root directory of the website.

If the file is already on the Web server and you have Shell access permission to install WordPress, move all the files in the wordpress Directory (but not including the directory itself) to the root directory of the website.

In the subdirectory

If you need to upload a file to the Web server, first rename the wordpress directory to the name you need, and then use your favorite FTP client to all the files in the Directory (including the directory itself) upload to the subdirectory you need in the root directory of the website.

If the file is already on the Web server and you have Shell access permission to install WordPress, move the wordpress directory to the subdirectory you need in the root directory of the website, rename it as the name you need

Step 5: run the installer

Access wp-admin/install. php in your favorite Web browser to run the WordPress installer.

The following shows the installation process. The installer guides you through the remaining operations.
Start Installation page

Enter details

Done!

Installer problems solved

If you encounter a database error when running the installer:

ReturnStep 2AndStep 3, Confirm that you have the correct database information, and set the wp-config.php correctly.

Confirm that you areStep 3Grant sufficient permissions to the WordPress database users.

Confirm that the database server is running.

The following are the most common installation problems. For more solutions to WordPress installation problems, refer to the installation FAQ.

Question: I have seen many Headers already sent errors. How can I fix it?
Answer:: You may have a syntax error while editing the wp-config.php.

Download the wp-config.php (if you do not have Shell permissions ).

Check that the first line of the file should only contain NoAny character (space is not allowed ).

Check that the last row of the file only contains?>, And after itNoAny character (space is not allowed ).

Save the file. if necessary, upload it again and refresh the page in the browser.

Question: My pages are messy. When I view the source code of the web page, I see a lot of "Tag.
Answer:: If The tag is sent to the browser, indicating that your PHP is not working properly. All PHP code should be executed before the server sends HTML code to the browser. (This is what it is calledPre-The reason for processing the program .) Make sure that your Web server meets the requirements for running WordPress. PHP is correctly installed and configured. contact your host provider or system administrator for help.

Question: I got a lotDatabase connection errorIncorrect information, but I'm not sure if my configuration is correct.
Answer:: Try to reset your MySQL password. If you have the Shell permission to access MySQL, try to execute the SQL statement:


Set password for 'wordpressusername' @ 'hostname' = OLD_PASSWORD ('password ');

If your MySQL version is earlier than 4.1, replace OLD_PASSWORD with PASSWORD. If you do not have the Shell access permission, you can simply execute the preceding SQL statement in phpMyAdmin. If an error persists, you may need to use the control panel of the host to reset the password for your database users.

If you have a strong enough computer in your home and a fast enough internet connection, you may want to use your computer as a server to save money for purchasing host space. The following tutorial describes how to configure a server environment and install WordPress on your computer.

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.