WordPress Blog Server Migration Process Summary

Source: Internet
Author: User
Tags wordpress blog

(0) Install PHP environment

# yum Install nginx php-fpm php-mysql mysql-server php-mbstring php-gd php-pear php-mcrypt php-mhash php-eaccelerator ph P-suhosin Php-tidy Php-curl

(1) Connect () to Unix:/var/run/php5-fpm.sock failed (2:no such file or directory)

At that time the weak weak discovery path does not have this file to install PHP itself is a problem, and later learned that this is the dynamic generation of the clatter.

$vim/etc/php-fpm.d/www.conf

find that line listen = 127.0.0.1:9000

Add a line below listen =/var/run/php5-fpm.sock

Change the default backlog value to 4096

; Set Listen (2) backlog. A value of '-1 ' means unlimited.
; Default value:4096
; listen.backlog = 4096

Next, change the user group to Nginx, because the default is Apache

; Rpm:apache choosed to being able to access some dir as httpd
user = Nginx
; Rpm:keep a group allowed to write in log dir.
Group = Nginx

(2) Restart PHP-FPM

Service PHP-FPM Start

Service PHP-FPM Stop
(3) Nginx error Primary script Unknow

Vim/etc/nginx/nginx_conf

Fastcgi_param script_filename $document _root$fastcgi_script_name;

WordPress Blog Server Migration Process Summary

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.