Installing WordPressWordPress in Linux is a blog platform developed using the PHP language. you can set up your own blog on servers that support PHP and MySQL databases. WordPress can also be used as a content management system (CMS. WordPress is a free open-source project that is licensed to be released under the GNU General Public License. Install WordPress in WordPr Linux
WordPress is a blog platform developed using the PHP language. you can set up your own blog on servers that support PHP and MySQL databases. WordPress can also be used as a content management system (CMS. WordPress is a free open-source project that is licensed to be released under the GNU General Public License. WordPress is considered to be the official successor of the online log Platform b2/cafelog developed by Michelle valdrighi. Wordpress is a BLOG program that can be used to set up its own BLOG.
I.
By choosing the latest version (wordpress-3.3.1) http://wordpress.org/download/
II. Installation steps
1. confirm that php, SQL/target = _ blankclass = infotextkey> has been installed and configured on your linux server. Mysql, Apache service, if not installed, you can refer to the following command to install: yum? Y installhttpd php-gd php- MysqlMysql-server mysql-client
2. modify the apache configuration file by referring to the command vi/etc/httpd/conf/httpd. conf.
-- Find the following content:
AddType application/x-compress. Z
AddType application/x-gzip. gz. tgz
-- Add the following content to the end:
AddType application/x-httpd-php. php. php3
AddType application/x-httpd-php-source. phps
Save and exit, and restart apache reference command: service httpd restart
3. create a file index. php under/var/www/and write the file: Test php
4. modify the mysql password
# Mysqladmin password 123456
Log on to mysql: # mysql-u root-p
5. create databases and wordpress users
Mysql> create database wordpress;
Mysql> grant all on wordpress. * to wordpress @ localhostidentified by 'portalhuan. 100 ';
6. refresh privileges.
Mysql> flush privileges;
7. download the latest version of wordpress (3.3.1) and copy the files in the decompressed wordpress directory to the/var/www/directory. Enter the wordpress Directory
Rename wp-config-sample.php to wp-config.php.
Open the wp-config.php with vim and enter 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 tochange this value
Copy the files in the decompressed wordpress directory to the/var/www/Directory (excluding the wordpress directory)
3. Test Installation
Open http: // 127.0.0.1/wordpress/wp-admin/install. php in a browser
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