server {
    listen               80;
    server_name          xxx;

    client_max_body_size 4M;
    client_body_buffer_size 128k;

    root /opt/www/dokuwiki;
    index doku.php;

    location ~ \.php$ {
        try_files $uri $uri/ /doku.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param REDIRECT_STATUS 200;
       # fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_pass 127.0.0.1:9000;
    }
}
yum install php-fpm nginx mysql mysql-server
  • 修改上传文件大小
/etc/php.ini

post_max_size = 2000M
upload_max_filesize = 2000M

/etc/nginx/conf.d/xx.conf的location里面
client_max_body_size 2000M;
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""