Linux operating system to install WordPress service

  

Linux Installation WordPress

WordPress is a blogging platform developed using the PHP language. Users can set up their own blogs on servers that support PHP and MySQL databases. You can also use WordPress as a content management system (CMS). WordPress is a free, open source project licensed under the GNU General Public License. WordPress is considered the official successor of the blogging platform b2/cafelog developed by Michel Valdrighi. Wordpress is a BLOG program that allows you to set up your own BLOG.

One. Download address

Select the latest version (wordpress-3.3.1) http://wordpress.org/download/

by downloading address. Installation Steps

1. Make sure that your linux server has php, mysql, and apache services installed. If it is not installed, please refer to the following command: yum – y install httpd php php-gd php-mysql mysql -server mysql-client

2. Modify the apache configuration file, refer to the command vi /etc/httpd/conf/httpd.conf

-- find the following:

AddType Application/x-compress .Z

AddType application/x-gzip .gz .tgz

-- Then add the following:

AddType application/x-httpd -php .php .php3

AddType application/x-httpd-php-source .phps

Save and exit, and restart the apache reference command: service httpd restart

3. Create a file index.php under /var/www/: php

4. Modify mysql password

#mysqladmin password 123456

Login mysql:# Mysql -u root -p

5.Create database and build wordpress user

mysql> create database wordpres s;

mysql> grant all on wordpress.* to wordpress@localhost identified by 'portalhuan.123';

6. Refresh privileges.

mysql>flush privileges;

7. Download the latest version of wordpress (3.3.1) and copy the files from the extracted wordpress directory to the /var/www/directory. Enter the wordpress directory

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

Open wp-config.php with vim and enter the database information.

define('DB_NAME', 'wordpress'); //The name of the database

define('DB_USER', 'username'); //Your MySQL username

define('DB_PASSWORD', 'password'); //…and password

define('DB_HOST', 'localhost'); //99% chance you won't need to change this value

Copy the files in the extracted wordpress directory to the /var/www/directory (not including the wordpress directory)

Test installation

Copyright © Windows knowledge All Rights Reserved