Page 1 of 1
Media Library returns HTTP 500 Error Code
Posted: Mon Jul 28, 2008 11:13 pm
by Funkmaster Flow
Hi,
I installed S9Y on my webspace successfully.
It runs quite well and I encountered no problems until now.
Everytime I want to upload an image via the MediaLibrary, my Server (Hosted by 1&1) returns a 500 Error.
In my FTP-Client I see the file I've uploaded, but it doesn't show up in the Library.
Permission of the upload directory is now set to 766 (was: 777). Both types of configuration didn't work for me.
I use GDlib and not ImageMagick because of my ISP.
If there's anyone out there who encountered the same problem, please response.
If you need further information, let me know...
Regards Flow
Re: Media Library returns HTTP 500 Error Code
Posted: Tue Jul 29, 2008 10:35 am
by garvinhicking
Hi!
1&1 has quite low ressource limits. It might very well be that the file you upload takes up too much RAM. How large is the file you upload?
Maybe you can reduce the memory footprint if you remove some event plugins that you do not absolutely need.
Regards,
Garvin
Posted: Tue Jul 29, 2008 8:39 pm
by Funkmaster Flow
Hi Garvin
The file I want to upload is just a .jpg with a filesize of about 400kb.
Some details from my server:
upload_max_filesize: 20M
post_max_size: 8M
I will try to get rid of some event plugins although I don't use much of them.
Thanks for your help anyways.
Regards,
Flow
Posted: Wed Jul 30, 2008 10:21 am
by garvinhicking
Hi!
You only quoted the filesize limit's - what is your memory limit?
A 400kb jpeg can take up 6MB in memory. Since serendipity itself already requires about 4MB, your memory_limit for a 400kb jpeg would need to be at least 10MB, better 12MB.
Regards,
Garvin
Posted: Wed Jul 30, 2008 10:42 am
by Funkmaster Flow
Hi,
Quote from my phpinfo();
memory_limit: 40M
Disabling event plugins didn't help for me.
Regards,
Flow
Posted: Wed Jul 30, 2008 11:12 am
by garvinhicking
Hi!
Okay, 40M would be sufficient. The only case for a 500 error that is left would be the script running time. Since s9y parses your image and tries to get EXIF metadata, this might take a few seconds. Can you ask your provider how long a script is allowed to run, and ask them if your HTTP 500 error can be related to such ressource limits?
Regards,
Garvin
Posted: Wed Jul 30, 2008 9:34 pm
by Funkmaster Flow
It works!
Want to know, how?
Via researching for "max_execution_time" I reached another Forum with a similar problem.
The solution ist to add these 2 lines to a .htaccess file, which should be located in the root directory:
Code: Select all
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
I came over this solution about 2 days ago, but accidentely put the .htaccess into a subfolder...
I'm happy with my installation of S9Y now.
Thanks a lot Garvin
Regards,
Flow
P.S.: Schöne Grüße nach Köln
