Questions about the size of the upload file on Zen Road

Source: Internet
Author: User

Today in the use of Zen Road to upload files found a problem, I can upload dozens of k files, but not upload a large number of files, when the file is too large, has been stuck in where, can not upload (using the open source version of 9.8.1).

You can see in the official documentation that you need to adjust the post_max_size and upload_max_filesize values in php.ini, and then restart Apache to take effect:

#cd/opt/zbox/etc/Php#vim php.ini...........register_argc_argv=Offauto_globals_jit=onpost_max_size = 50Mmagic_quotes_gpc=Offmagic_quotes_runtime=Offmagic_quotes_sybase=off............file_uploads=Onupload_tmp_dir="/opt/zbox/tmp/"upload_max_filesize = 50Mallow_url_fopen=Onallow_url_include=Offdefault_socket_timeout= -............

After going in to see me is 50M, it is not a space problem, and then from Baidu to see the need to modify the my.php in the $config->debug parameter, false to true:

#cd/opt/zbox/app/zentao/Config#vim my.php<?Php$config->installed =true; $config ->debug = True; $config->requesttype ='Path_info'; $config->db->host ='127.0.0.1'; $config->db->port ='3307'; $config->db->name ='Zentao'; $config->db->user ='Root'; $config->db->password ='123456'; $config->db->prefix ='Zt_'; $config->webroot =getwebroot (); $config-default->lang ='ZH-CN';

Restart after re-submit, found or not upload large files, helpless, view the diary of Zen Road, found that there are the following error:

 -: Geneva: -ERROR:SQLSTATE[HY000] [1045] Access denied forUser'Root'@'localhost'(usingPassword:yes)inch/opt/zbox/app/zentaobiz/framework/Base/router.class. PHP on line2145, Last called by/opt/zbox/app/zentaobiz/framework/Base/router.class. PHP on line2103through function connectbypdo.inch/opt/zbox/app/zentaobiz/framework/Base/router.class. PHP on line2196When visiting

Look at the log seems to be the issue of permissions, this time I was thinking if the permissions are not correct, why small files can be uploaded, and large files do not, obviously not, and then in the troubleshooting, suddenly think is not the problem of nginx agent, and hands-on view nginx configuration file, Add a line client_max_body_size 1024M to the place where you configure the Zen Road agent;

#vim nginx.conf
Worker_processes1; Events {Worker_connections1024x768; } http {include mime.types; Default_type Application/octet-stream; Sendfile on; Keepalive_timeout $; server {Listen the; server_name Zbox.gong-hui.com; Location/{ client_max_body_size 1024M; Proxy_redirect off; Proxy_set_header Host $http _host; Proxy_set_header X-real-IP $remote _addr; Proxy_set_header X-forwarded-For $proxy _add_x_forwarded_for; Proxy_pass http://192.168.3.175:81; } }

Then restart Nginx, and then enter the Zen road upload large files, wow, successfully uploaded!

Questions about the size of the upload file on Zen Road

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.