Install WordPress under Linux

Source: Internet
Author: User
Tags php language php and mysql install wordpress wordpress database

Installation Environment Description: Centos+vmware

WordPress is a blog platform developed using the PHP language that allows users to build their own websites on servers that support PHP and MySQL databases. WordPress can also be used as a content management system (CMS) to use. WordPress is a personal blog system, and gradually evolved into a content management system software, which is developed using the PHP language and MySQL database. Users can use their own blogs on servers that support PHP and MySQL databases.

First, install lamp environment

1. Install httpd, mysql-server, PHP, etc.

#yum install-y httpd

#yum install-y Mysql-server

#yum install-y PHP

#yum install-y Php-mysql

2. Start httpd and MySQL to see if httpd Port 80, MySQL port 3306 is listening properly

#service httpd Restart

#service mysqld Restart

#ss-TNL

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/47/wKioL1VEgm-Bfx30AAI8SNM8wwc743.jpg "title=" Qq20150502154553.png "width=" "height=" 174 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:750PX;HEIGHT:174PX; "alt = "Wkiol1vegm-bfx30aai8snm8wwc743.jpg"/> Second, ready WordPress

I'm using this version of Wordpress-3.3.1-zh_cn.zip in this article.

Place the Wordpress-3.3.1-zh_cn.zip in the/var/www/html directory and unzip the file.

#unzip Wordpress-3.3.1-zh_cn.zip

Third, modify the WordPress configuration file

#vim/var/www/html/index.php

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/4C/wKiom1VEn46SMSHrAACS52ryUqw360.jpg "title=" 1.png " alt= "Wkiom1ven46smshraacs52ryuqw360.jpg"/>

#cd/wordpress

#cp wp-config-sample.php wp-config.php

#vim wp-config.php, modify the database name, user name, user password, etc.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/4B/wKiom1VEhEbB3uczAAEF_o0ELqQ309.jpg "title=" Qq20150502160040.png "alt=" Wkiom1vehebb3uczaaef_o0elqq309.jpg "/>

IV. Create a WordPress database, user name and password

#mysql

Mysql>create DATABASE wpdb; --Create a database

Mysql>create user ' wpuser ' @ ' localhost ' identified by ' wppass ';--Create users and passwords

Mysql>create USER ' wpuser ' @ ' 127.0.0.1 ' identified by ' wppass ';

Mysql> Grant all on wpdb.* to ' wpuser ' @ ' 127.0.0.1 ' identified by ' wppass ';--Authorize the user

Mysql> GRANT all on wpdb.* to ' wpuser ' @ ' localhost ' identified by ' wppass ';

Five, restart the service, browse the blog

#service httpd Restart

#service mysqld Restart

Browse WordPress on the browser to see if the installation was successful.

Http://IP/wordpress (Note: My IP address is 192.168.84.111 ), enter the user name and password, select login. You can also browse the Web directly.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/47/wKioL1VEkFzDQAmYAAF2VlsipNM499.jpg "title=" Qq20150502164627.png "alt=" Wkiol1vekfzdqamyaaf2vlsipnm499.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/4C/wKiom1VEkDWDj1H4AAWgzKZeowg482.jpg "title=" Qq20150502165054.png "alt=" wkiom1vekdwdj1h4aawgzkzeowg482.jpg "/> To this point, the local WordPress installation was successful.


The standard mainly explains the construction of a simple WordPress process in the lamp environment.





This article from the "Linux Learning" blog, declined reprint!

Install WordPress under Linux

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.