In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Introduction
WordPress is a blog platform developed in PHP language. Users can set up their own websites on servers that support PHP and MySQL databases. You can also use WordPress as a content management system (CMS).
WordPress is a personal blog system, and gradually evolved into a content management system software, which is developed using PHP language and MySQL database. Users can use their own blogs on servers that support PHP and MySQL databases.
WordPress has many free templates developed by third parties and is easy to install and use. However, to make your own template, you need to have some professional knowledge. For example, you should at least understand an application of HTML code, CSS, PHP and other related knowledge under the standard general markup language.
WordPress officially supports the Chinese version, as well as third-party Chinese language packs developed by enthusiasts, such as wopus Chinese language packs. WordPress has thousands of plug-ins and countless theme template styles. [1]
2. Download and install:
Download WordPress simplified Chinese version.
Download the compressed package locally, unzip and double-click the readme.html file in the unpacked folder to view the introduction, installation, and upgrade methods of WordPress. After you upload the program file to the appropriate directory on the server, the installation process takes only 5 minutes.
Users who are already using the English version of WordPress can easily switch your WordPress to Chinese without reinstalling it. If you have special needs, you can also use the po and mo files required by SVN checkout. The simplified Chinese WordPress package is automatically built based on the English SVN source.
Server environment requirements:
PHP 5.2.4 or later
MySQL 5.0 or later
Apache mod_rewrite module (optional to support "fixed link" and "site network" features)
Download WordPress 4.4.2. Zip-7.8 MB
Download .tar.gz-7.2 MB
[root@web tool] # wget https://cn.wordpress.org/wordpress-4.4.2-zh_CN.tar.gz[root@webtool]# tar xf wordpress-4.4.2-zh_CN.tar.gz
Copy all the files in the wordpress folder to the / usr/local/apache/htdocs/blog/ directory, and then change to the blog directory in that directory.
[root@web tools] # cp-a wordpress/* / usr/local/nginx/html/blogcp: target `/ usr/local/nginx/html/blog' isnot a directory [root@web tools] # mkdir/usr/local/nginx/html/blog [root@web tools] # cp-a wordpress/* / usr/local/nginx/html/blog [root@web tools] # cd/usr/local/nginx/html/blog/ [root@web blog] # lsindex.php wp-activate.php Wp-comments-post.php wp-cron.php wp-load.php wp-settings.php xmlrpc.phplicense.txt wp-admin wp-config-sample.php wp-includes wp-login.php wp-signup.phpreadme.html wp-blog-header.php wp-content wp-links-opml.php wp-mail.php wp-trackback.php [root@webblog] # 3 、 Configuration:
Change the name of the configuration file wp-config-sample.php to wp-config.php
[root@web wordpress] # cp wp-config-sample.phpwp-config.php
Modify the wp-config.php configuration file:
[root@web wordpress] # vim wp-config.php 22 / * WordPress database name * / 23 define ('DB_NAME',' wp_db'); 24 25 / * MySQL database user name * / 26 define ('DB_USER',' wpadmin'); 27 28 / * MySQL database password * / 29 define ('DB_PASSWORD',' wp123456') 30 31 / * * MySQL host * / 32 define ('DB_HOST',' 127.0.0.1'); 4. Create wordpress database and user name mysql > create database wp_db;mysql > grant allon wp_db.* towpadmin@ localhost identified by 'wp123456';mysql > grant allon wp_db.* towpadmin@127.0.0.1 identified by' wp123456';mysql > FLUSH PRIVILEGES;mysql > select user,host from mysql.user +-+ | user | host | +-+-+ | root | 127.0.0.1 | | wpadmin | 127.0.0.1 | | root | localhost | | wpadmin | localhost | +-+-+ 4 rows in set (0.00 sec) mysql > show grants forwpadmin@127.0.0.1 +-+ | Grants for wpadmin@127. 0.0.1 | + -- + | GRANT USAGE ON *. * TO'wpadmin'@'127.0.0.1' IDENTIFIED BY PASSWORD'*126BB20052A4CCAAE93527CE311D3FC8B6A7D08D' | | GRANT ALL PRIVILEGES ON `wp_ db`.* TO'wpadmin'@'127.0.0.1' | +-- -+ 2 rows in set (0.00 sec) mysql > quitBye5, Restart httpd Php-fpm service: [root@webwww] # service nginx reload [root@webwww] # service php-fpm reload6, Test:
Browsers access http://blog.25linux.com/
WordPress installed successfully!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.