티스토리 뷰
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