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