0 like 0 dislike
47 views
asked Mar 24, 2014 in Education & Reference by Yogi (180 points) | 47 views
    

1 Answer

0 like 0 dislike

The following are php directives that you may need to edit in the /etc/php.ini files , keep values that best suit your environment, generally default values will work fine, u may need to change the values only if uploading large files greater then 2MB 

file_uploads = keep this on to enable file uploads 
upload_tmp_dir = point to a temporary directory to store uploaded files 

upload_max_filesize = maximum file size in bytes that the PHP engine will accept.
Note: increase according to file size to upload


post_max_size = maximum peremitted http post size in bytes,
Note: this should be larger than upload_max_filesize


memory_limit = maximum amount of memory in bytes that is allowed for use by a PHP script
Note: this should be larger than post_max_size
Warning: choose a large memory_limit only if you have sufficient memory


max_input_time = maximum amount of time in secs allowed for each PHP script to receive httpd clients request,
Note: if u have slow connection increase this value

max_execution_time = maximum amount of time in secs allowed for each PHP script to execute.
Note: if uploading large files increase max_execution_time to prevent timeouts.



If you upload files less then 4 MB use the following 

 

 file_uploads = On

 upload_tmp_dir = "/tmp"

 upload_max_filesize = 5120

 post_max_size = 10M

 memory_limit = 20M

 max_input_time = 90

 max_execution_time = 60



if your upload file size from 5 MB to 10 MB use the following 

 

 file_uploads = On

 upload_tmp_dir = "/tmp"

 upload_max_filesize = 10240

 post_max_size = 16M

 memory_limit = 32M

 max_input_time = 180

 max_execution_time = 120

 

answered Mar 24, 2014 by VN (230 points)

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Sep 7, 2017 in Education & Reference by Krish (890 points) | 19 views
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

Mathe Forum Schule und Studenten
1,164 questions
1,304 answers
275 comments
1,589 users