Page 1 of 1

Unable to upload file. holy permissions problem

Posted: 01 May 2016, 02:37
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

Re: Unable to upload file. holy permissions problem

Posted: 01 May 2016, 23:14
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