Loading...
 
Features / Usability

Features / Usability


Image Galleries: Upload and Storage

posts: 20 Austria

2 silly little questions:

1. On one website the images get stored in the subdirectory with permissions 640 and in ftp I cannot change the permissions on the files: 'Permission Denied' to change permissions (I am trying to change the permissions to 644 like it is automatically on my other website). Now I cannot retrieve the files, I want to do a backup. What am I doing wrong? Or is it the hosting company?

2. On the second website I cannot upload images larger than 26KB, on 28KB it gives an 'Internal Server Error, contact the webmaster....'. The PHP limit is 2MB. I increased 2 values in php.ini, but I really don't know what I'm doing here:

memory_limit = 64M
max_execution_time = 240

Now I can upload images of about 50kb and not more, but it still has another problem in that it does not create the thumbnail (the 'rebuild thumbnail'-button in the image gallery also does nothing to the non-existing thumbnails). PHP is apparently running in save mode on this site. Is this something I have control over somehow and that I can influence? (Sometime when I try to upload an image I get 'Refresh Browser...', when I do the image gets uploaded twice, without thumbnails).

Any help very much appreciated!

Thank you

Peter

posts: 2881 United Kingdom


1. On one website the images get stored in the subdirectory with permissions 640 and in ftp I cannot change the permissions on the files: 'Permission Denied' to change permissions (I am trying to change the permissions to 644 like it is automatically on my other website). Now I cannot retrieve the files, I want to do a backup. What am I doing wrong? Or is it the hosting company?

Because they were created by Apache, apache can work with them. Some hosts put apache in the same group as users or visaversa and it allows access to those files. A little script to get apache to chmod them differently should do the trick tho.

2. On the second website I cannot upload images larger than 26KB, on 28KB it gives an 'Internal Server Error, contact the webmaster....'. The PHP limit is 2MB. I increased 2 values in php.ini, but I really don't know what I'm doing here:

What version of GD or ImageMagick is this second host using? Also whats the LimitRequestBody set to in apache?

Damian

posts: 20 Austria

Thank you Damian!

1. the first problem was solved by the webhosting company after I contacted them.

2. The second I have to investigate further...

Thanks!


posts: 20 Austria

Thank you Damian!

1. the first problem was solved by the webhosting company after I contacted them.

2. The second I have to investigate further...

Thanks!