 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
August 18th, 2005, 11:49 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
| File size limit in 5.13
We have just moved to a new server and I have upgraded to v5.13. For some reason the upload file size in now limited.
I was made aware of the problem by a user who got a blank screen when he uploaded. So I tried his login. I started with a 37Kb file - OK; then a 96Kb file - OK; then a 195Kb file - blank screen. I tried the 195Kb file with my admin login - blank screen.
This has never happened before. I have checked the settings in Usergroups - no problems there; my settings are all 0 anyway.
The directories /uploads and /data and all sub directories are 777.
Ideas where to go now please.
Thanks
Bob
|
| |
August 18th, 2005, 12:06 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
You would either need to get the host to increase the LimitBodyRequest variable to set in usergroup permissions the max filesize variable to a limit so you dont get the php error screen(white screen of death)
|
| |
August 18th, 2005, 12:08 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
This is a leased server, where do I make those changes please.
Bob
|
| |
August 18th, 2005, 12:13 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
In usually your apache configuration file httpd.conf or php.conf
|
| |
August 18th, 2005, 12:20 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
Neither of those files have any such setting. I have also used grep to find it, nothing. We have Apache 2.0.52 and PHP 4.3.9. The php.ini file is set a max file upload size of 2M.
Bob
|
| |
August 18th, 2005, 01:03 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Do you see anything in the php.conf or httpd.conf file with a file restriction size? It is being limited somewhere here
You can ask your host where your LimitBodyRequest is being set cause it is
|
| |
August 18th, 2005, 02:10 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
I tried putting LimitRequestBody 307200 in the php.conf - didn't work, so I tried the http.conf - didn't work. I can upload a file 107Kb but not 109Kb. I cannot find anything that restricts this unless there is a default setting, but I cannot find any reference to a default setting.
Bob
|
| |
August 18th, 2005, 03:58 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Can't add anything more than suggest you contact your host as I previously stated
The one setting I know that causes this usually is LimitBodyRequest and there are tons of threads on the internet about this
This thread explains all about LimitBodyRequest http://httpd.apache.org/docs/2.1/ko/...mitrequestbody
Take note after making the proper changes you will need to restart the server and retest.
|
| |
August 19th, 2005, 05:47 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 292
|
You might try putting this in your .htaccess file in the root of your PP directory
php_value upload_max_filesize 4M
Would change the allowed upload to 4Meg (if your host allows this type modification via .htaccess). Might work... might not... what do I know? |
| |
August 19th, 2005, 05:52 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
always worth a try although in my experience only a small percentage of hosts allow php.ini changes through htaccess files in a shared environment.
You will know whether it works right away though  as your entire site will be a white page of death if you do this and its not allowed. Then simply get rid of the line if you have a problem and things will be back to normal
|
| |
August 21st, 2005, 06:39 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
.htaccess did not work, just got a server error message. This is covered in the Apache 2 docs. The server is not a shared server it is all ours (well, leased)...all of it.
I have in php.ini:
memory_limit = 8M
upload_max_filesixe = 2M
In php.conf I have:
LimitRequestBody 307200 (300K)
I just can't understand why uploading a 195K file is exceeding the memory_limit no matter what I set it at.
Bob
|
| |
August 21st, 2005, 07:52 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Well try placing the limitbody in your apache configuration file http://httpd.apache.org/docs/2.1/ko/...mitrequestbody
Then edit your php.ini make the memory_limit 24mb and you can raise your max upload filesize while your in there if you want
restart your server and test
|
| |
August 21st, 2005, 01:00 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
Putting 'LimitRequestBody 307200' in httpd.conf does not work either, as httpd.conf calls php.conf.
I tried your suggestion and changed
memory_limit = 8M
to
memory_limit = 24M
and it worked for the 195Kb file.
Does this not increase the load on the server ? Why should this memory level be needed?
Thanks for sticking with me on this.
Bob
|
| |
August 21st, 2005, 05:48 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Well I have never seen a file size restriction without it being limited with the variable I have already meantioned.
Now that you raised your memory limit what size file can you upload before it does crazy?
Have you tried with Imagemagick as I think your issue is coming from using GD2
|
| |
August 22nd, 2005, 07:41 AM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
240K is the limit at the moment; 324K got a 'page cannot be opened' error. I will need to recompile ImageMagick as it was installed by the ISP when they set up our server so I don't know if it is compiled as per your instructions. It is version 6.2.3
Bob
|
| |
August 22nd, 2005, 09:52 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
well if you use imagemagick does it work?
|
| |
August 22nd, 2005, 01:28 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
No, all I got was the header, background and an empty frame where the photo should be. Is this an IM installation issue? I ran 'make check' before make install and there were a lot of 'FAIL' and 'command not found'.
I have reset it to GD2 and upped the memory_limit = 32M and I was able to upload a 297K file. I have now set a 280K limit on users.
Bob
|
| |
August 22nd, 2005, 02:13 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Okay then yes follow our install and you should be able to do an imagemagick install if you dont have root access try doing a non root install
|
| |
August 22nd, 2005, 03:26 PM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 255
|
Not sure if the IM install worked correctly, see post #17. I followed your install instructions.
Bob
|
| |
August 22nd, 2005, 03:45 PM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
well I cant comment unless you have a specific error message from the install but note in post 18 I stated you can try a non-root install
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:14 PM. | |