Ubuntu Install WordPress

Source: Internet
Author: User
Tags install wordpress phpmyadmin

Transfer Note: If there is no Apache + PHP + MySQL environment, please refer to my blog

(1) First download WordPress,

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

(2) when the download is complete, unzip the

sudo TAR–XZVF latest.tar.gz

(3) Move the extracted folder to the/var/www directory

sudo mv wordpress/var/www/

sudo chown-r www-data:www-data/var/www

(4) Create a database

sudo mysql–u root–p

Root is the database user name, then enter the password as prompted to enter the MySQL command interface

Create a database

Create database wordpress default Charset=utf8;

CREATE USER [email protected] IDENTIFIED BY ‘wordpresspassword‘;

Next, you need to assign administrative permissions to the administrator:

GRANT ALL PRIVILEGES ON wordpress.* TO [email protected];
grant all privileges on wordpress.* to ‘root‘@‘localhost‘;

You need to refresh the permissions information to activate the user rights:

FLUSH PRIVILEGES;exit

After the database is created, quit MySQL. Here you can use the phpMyAdmin to set up the database. In the Browse

You can login to the database management interface by entering the address http://yourserverip/phpmyadmin in the

(5) Modify the wp-config-sample.php file in WordPress

Edit WordPress config.php file,

cp /var/www/html/wp-config-sample.php /var/www/html/wp-config.php

sudo nano/var/www/wordpress/wp-config.php


Modify the location of the red box callout, db_name is the name of the database, Db_user is the user name of the database,

Db_password is the password of the database, after the modification is completed, save, exit.

Modifying the Authentication key section
Auth_key ...
The key can be generated automatically via https://api.wordpress.org/secret-key/1.1/salt/.

(6) After the above steps, the WordPress installation has completed, the bottom of the access, in the browser to enter the address

Http://localhost/wordpress


Indicates that the WordPress installation was successful, which also verifies that the Apache,php,mysql installation was successful.

Ubuntu Install 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.