A freshman WordPress note

Source: Internet
Author: User
Tags install wordpress

Wordpress

解决问题

Operating system Ubuntu 12.04
1.1 Installing Apache and PHP modules

sudo apt-get install apache2
sudo apt-get install libapache2-mod-php5 php5

1.2 Installing MySQL

$ sudo apt-get install mysql-server-5.0 Mysql-common mysql-admin

1.3 Installing the MySQL module for PHP

$ sudo apt-get install Php5-mysql

1.4 Configuring MySQL

$ mysql-u Root Mysql-p

Initial login without root password, directly enter the line
The following 2 sentences create the database and database user that WordPress needs

mysql> CREATE DATABASE db_wordpress;
Mysql> Grant all privileges the db_wordpress.* to [e-mail protected] identified by "WordPress" with GRANT OPTION;

2. Start Apache and MySQL

SUDO/ETC/in it d/apac< Span id= "mathjax-span-29" class= "Mi" >he 2s ta rt Sudo/etc/init.d/mysql start

3. Install WordPress

WGET−CHTTP://WORDPRESs. Org/lat< Span id= "mathjax-span-75" class= "Mi" >es t. Tar gz Tar-xvzf latest.tar.gz
SUDOCHOWN−RWWW−Dat a: Www −d at aw or dp re ss sudo cp-rf wordpress/var/www/

4. Configure WordPress

CD/VAR/ Www/wor< Span id= "mathjax-span-146" class= "Mi" >dp re ss/ sudo cp wp-config-sample.php wp-config.php
$ sudo gedit wp-config.php

Find the following similar 3 sentences and modify the connection fields for your database

Define (' db_name ', ' db_wordpress ');
Define (' Db_user ', ' user_wordpress ');
Define (' Db_password ', ' WordPress ');

5. Finish installing WordPress

Open Firefox input http://localhost/wordpress/If everything goes well, you can do the initialization configuration of WordPress in the Web interface!w

A freshman WordPress note

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.