Common problems with WordPress

Source: Internet
Author: User

Nginx such as webserver,wordpress upload theme error 413 Request Entity Too Large

Solve:

vim/usr/local/nginx/conf/nginx.conf  ' Edit nginx config file client_max_body_size 20m; ' Add this sentence in the HTTP paragraph and save the exit/usr/local/nginx/sbin/nginx-s reload ' overloaded configuration file. Problem solving

Theme uploaded to theme after refresh does not appear

Solve:

May be a permissions issue for the theme file. The permission is changed to Drwxr-xr-x, i.e.:

Chmod-r 755  /Theme Directory

Theme successfully displayed after refresh

Computer restarts after login to WordPress appears an error occurred

Solve:

Service Nginx start ' Start nginx/etc/init.d/php-fpm start ' Start fpm/usr/bin/spawn-fcgi.standalone-a 127.0.0.1-p 9000-c 8-u Www-data-g www-data-f/usr/bin/php5-cgi-p/var/run/fastcgi-php.pid ' start CGI

WordPress change File upload limit size, reference http://www.wpyou.com/wordpress-modify-post-max-size.html

Method One:

Add code such as the following in functions.php. So the upload limit is 64M.

@ini_set (' upload_max_size ', ' 64M '); @ini_set (' Post_max_size ', ' 64M '); @ini_set (' Max_execution_time ', ' 300 ');

Method Two:

Create a new php.ini file. Create a new php.ini file in the root folder of your host space. Inside use such as the following code.

upload_max_filesize = 64mpost_max_size = 64mmax_execution_time = 300

Method Three:

Include the following code in the. htaccess file for the site root folder.

Php_value upload_max_filesize 64mphp_value post_max_size 64mphp_value max_execution_time 300php_value max_input_time 300

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Common problems with WordPress

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.