Unable to upload file. holy permissions problem

Phoca Gallery - image gallery extension
dariusii
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 01 May 2016, 02:26

Unable to upload file. holy permissions problem

Post by dariusii »

Hi all.
Traditionally I use sec permissions as:

Code: Select all

#!/bin/sh
site=white
find /var/www/$site -type d -exec chmod 755 {} \;
find /var/www/$site -type f -exec chmod 644 {} \;
chmod 444 /var/www/$site/configuration.php
at all resources the people get advice that I must use 755 one for folders, and 644 one for files. What do I not right?

Code: Select all

ls -la /var/www/white/images/ | grep phocagallery
drwxr-xr-x  4 white web-developers 4096 мая    1 03:23 phocagallery

Code: Select all

ls -la /var/www/white/images/phocagallery/
total 20
drwxr-xr-x 4 white web-developers 4096 мая    1 03:23 .
drwxr-xr-x 9 white web-developers 4096 мая    1 02:42 ..
drwxr-xr-x 2 white web-developers 4096 мая    1 02:42 avatars
-rw-r--r-- 1 white web-developers   47 мая    1 02:42 index.html
drwxr-xr-x 2 white web-developers 4096 мая    1 02:50 thumbs
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unable to upload file. holy permissions problem

Post by Jan »

Hi, in fact, it depends on your configuration on server and Joomla!

Phoca Gallery does not access the server directly, it uses Joomla! methods (JFile, JFolder) for writing files and folders on the server because there can be different ways how Joomla! writes files on your server - it can do it per script (php script) or per FTP - depends on how this is set in Global configuration of Joomla!

:idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply