Wordpress
# Download installation files
Cd/usr/local/nginx/html/blogwget Https://cn.wordpress.org/wordpress-4.8.1-zh_CN.tar.gztar XF Wordpress-4.8.1-zh_ CN.TAR.GZCD WordPress- -can move files to the consideration about file permissions php file is root user, because is development management/usr/local/nginx/html/blog, avoid page display multipath cd/usr/ Local/nginx/htmlchown-r root.root/blogfind./blog/-type f|xargs chmod 644find./blog/-type d |xargs chmod 755
Change permissions for Avatar attachments
Mkdir-p/usr/local/nginx/html/blog/wordpress/wp-content/uploadschown nginx.nginx/usr/local/nginx/html/blog/ Wordpress/wp-content/uploads
Add Database Information
Mysql-uroot-prootcreate database Wordpress;show databases;grant all on wordpress.* to [email protected] ' localhost ' ident ified by ' root ';
Change the homepage to dynamic:
vim/usr/local/nginx/conf/extra/blog.conf server { listen ; server_name www.blog.com; Root html/blog; Location/{ index index.php index.html index.htm; } Location ~.*\. (PHP|PHP5) $ { fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php; Include fastcgi.conf; } Access_log logs/access_blog.log main; }
Setting page display
http://www.blog.com:88/wordpress/index.php
Adding wp-config.php configuration information
View data in MySQL:
Use Wordpress;select * from Ftl_posts\g;
Login interface:
http://www.blog.com:88/wordpress/wp-login.php
WordPress Blog Building under Linux