티스토리 뷰

Ubuntu/Owncloud

owncloud 최대 업로드 용량 늘리기

멋진 신세계 2017. 4. 18. 15:28

Configuring PHP

If you don’t want to use the ownCloud .htaccess file, you may configure PHP instead. Make sure to comment out any lines .htaccess pertaining to upload size, if you entered any.

To view your current PHP configuration and to see the location of your php.ini file, create a plain text file named phpinfo.php with just this single line of code in it: <?php phpinfo(); ?>. Place this file in your Web root, for example /var/www/html, and open it in your Web browser, for example http://localhost/phpinfo.php. This will display your complete current PHP configuration. Look for the Loaded Configuration File section to see which php.ini file your server is using. This is the one you want to edit.

If you are running ownCloud on a 32-bit system, any open_basedir directive in your php.ini file needs to be commented out

Set the following two parameters inside php.ini, using your own desired file size values:

upload_max_filesize = 16G
post_max_size = 16G

Tell PHP which temp file you want it to use:

upload_tmp_dir = /var/big_temp_file/

Output Buffering must be turned off in .htaccess or php.ini, or PHP will return memory-related errors:

  • output_buffering = 0


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함