From 21e7433e7851f3feec423fbc7dce9b43542ee92d Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sat, 5 Oct 2013 10:22:29 +0200 Subject: [PATCH 1/3] Added (commented-out) PHP config directives for changing maximum upload size --- .htaccess | 10 +++++++++- .user.ini | 7 +++++++ readme.md | 2 ++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .user.ini diff --git a/.htaccess b/.htaccess index 782ecb4..1b05963 100644 --- a/.htaccess +++ b/.htaccess @@ -1 +1,9 @@ -IndexIgnore * \ No newline at end of file +IndexIgnore * + +# Uncomment these lines to change PHP parameters if you are using the PHP Apache module +# +# php_value max_execution_time 300 +# php_value post_max_size 100M +# php_value upload_max_size 100M +# php_value max_file_uploads 100 +# diff --git a/.user.ini b/.user.ini new file mode 100644 index 0000000..73a3ccb --- /dev/null +++ b/.user.ini @@ -0,0 +1,7 @@ +; Uncomment these lines to change PHP parameters if you are using PHP with CGI or FastCGI. Only works with PHP starting from 5.3.0. +; Note that with FastCGI, you might also want to set FcgidBusyTimeout and FcgidIOTimeout in your Apache config + +;max_execution_time = 60 +;post_max_size = 100M +;upload_max_size = 100M +;max_file_uploads = 100 diff --git a/readme.md b/readme.md index 9ed1ea3..cc3bc51 100644 --- a/readme.md +++ b/readme.md @@ -15,6 +15,8 @@ To run Lychee, everything you need is a web-server with PHP 5.3 or later and a M Settings are located inside the `php/config.php`. All settings are optional and doesn't need to be changed. [Settings »](https://github.com/electerious/Lychee/wiki/Settings) +If you experience problems uploading large amounts of photos, you might want to change the PHP parameters in `.htaccess` (if you are using the PHP Apache module) or in `.user.ini` (if you are using PHP >= 5.3 with CGI or FastCGI). + ## How to use After the configuration, navigate your browser to the place where Lychee is located. Everything should work now. From c861a4da8f687742125a2013e6c539974157a1ad Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sat, 5 Oct 2013 10:30:31 +0200 Subject: [PATCH 2/3] Added FcgidMaxRequestLen in comment --- .user.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.user.ini b/.user.ini index 73a3ccb..b7b352f 100644 --- a/.user.ini +++ b/.user.ini @@ -1,5 +1,5 @@ ; Uncomment these lines to change PHP parameters if you are using PHP with CGI or FastCGI. Only works with PHP starting from 5.3.0. -; Note that with FastCGI, you might also want to set FcgidBusyTimeout and FcgidIOTimeout in your Apache config +; Note that with FastCGI, you might also want to set FcgidBusyTimeout, FcgidIOTimeout and FcgidMaxRequestLen in your Apache config ;max_execution_time = 60 ;post_max_size = 100M From 475f0d82185e1d625e5658a8e99a85f739fd8486 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sat, 5 Oct 2013 10:39:40 +0200 Subject: [PATCH 3/3] Added max_upload_filesize ini parameter --- .htaccess | 1 + .user.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/.htaccess b/.htaccess index 1b05963..b2cfacd 100644 --- a/.htaccess +++ b/.htaccess @@ -5,5 +5,6 @@ IndexIgnore * # php_value max_execution_time 300 # php_value post_max_size 100M # php_value upload_max_size 100M +# php_value upload_max_filesize 5M # php_value max_file_uploads 100 # diff --git a/.user.ini b/.user.ini index b7b352f..f6bf2b8 100644 --- a/.user.ini +++ b/.user.ini @@ -4,4 +4,5 @@ ;max_execution_time = 60 ;post_max_size = 100M ;upload_max_size = 100M +;upload_max_filesize = 5M ;max_file_uploads = 100