Loading...
 
Skip to main content

Architecture / Installation


Wiki_up permissions

posts: 4

I have the following problem:

when using the form to upload an image in a wiki page, everything goes smoothly, only the image won't show on the page...

I have checked and it seems that the images in wiki_up autommatically have their permisions reset to 0666...

I have tried adding a chmod() function to tiki-editpage.php but no give.

Am I looking in the right place?

The wiki_up dir itself has 777 permission.

posts: 154 United Kingdom
You need to give the permissions to the wiki_up folder

posts: 2881 United Kingdom

Hiya,

Does other Image uploads work say inthe Image Galleries?

Also try and check that PHP has uploads enabled in the php.ini. Some shared hosting turn this off!

Damian


posts: 2881 United Kingdom

also.

Its better than the wiki_up directory is writable by apache, by changing the group to the apache one, rather than world writable. But again, it depends on your environment,

Damian


posts: 4

Hi, thanks for the quick replies.... 😀

The image uploads for the galleries work fine.

Also the images ARE uploading, only can't be seen... so the uploads should be enabled in the php.ini, unless there's a way my host can configure it so that uploaded images have limited permissions?

I have tried manually changing the permissions for each file, and they work after that...

The wiki_up folder does have permissions, dsl...

what could it be?

posts: 2881 United Kingdom

Hi Again,

If the images are appearing in the img/wiki_up then maybe the file upload isnt allowing apache read access to them. Can you give me more details like what user and group the img/wiki_up is owned by and the same for any files inside that directory?

Thanks

Damian

posts: 4

How do I see which user/group? I don't have shell access to the server (shared) so I don't know what to do... the server is running apache.

posts: 2881 United Kingdom

Usually in your FTP application you can do a dir. I think in WSFTP its a button on the right of the remote server window.

Others might be a right click and properties approach.

Damian

posts: 154 United Kingdom
Is the file owner being changed for each image after upload? As long as apache can read the file there should be no problem, the permissions on my image files gets set to 600.
posts: 2881 United Kingdom

Isnt there options in php.ini that allows uploaded files to have permissions changed?

Damian