WordPress Blog Building under Linux

Source: Internet
Author: User
Tags file permissions wordpress blog

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

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.