uploads and chmod

More
11 years 8 months ago #34509 by rottenberg
Replied by rottenberg on topic uploads and chmod
It's strange, not all my directories chmod have been modified Just about 10 in all my articles.

I don't know the origin of that : Akeebabackup ?

Having been hacked since some weeks I got a bad plugin : dvmessage (system plugin).

I'm afraid that the change of chmod is a consequence of the plugin.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34511 by ggppdk
Replied by ggppdk on topic uploads and chmod
Good permissions for media folders are 755 and 644 for files

image field in v2.0.0 is setting folder permissions to 0755

but for files it leaves phpThumb default , which should be right, but i have seen 2 people reporting that their thumbnails are unreadable and not viewable ... they must have a but server setup, PHP should be runned as SU-EXEC , we will investigate this ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34517 by kenmcd
Replied by kenmcd on topic uploads and chmod

GamerLive wrote: I'll try with 755 because with all the tests I've done I do not recall more, all I know is that my last backup attempts Akkeba notified me that he could not read the contents of directory "upload "

This sounds like an ownership issue not permissions.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34518 by ggppdk
Replied by ggppdk on topic uploads and chmod
Are you using Joomla FTP layer ?
- Avoid it and instead make sure that your server is running in PHPSUEXEC mode


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34615 by ggppdk
Replied by ggppdk on topic uploads and chmod
To overcome problem please restore "old" chmod code in image.php plugin file (plugins/flexicontent_fields/image/image.php)
(i will need to chekc why neew code fails)

Find this at about line 1598
Code:
if ( !isset($destpaths_arr[$destpath]) && JPath::canChmod($destpath)) { chmod($destpath, '0755'); //JPath::setPermissions($destpath, '0644', '0755'); }
and change to
Code:
if ( !isset($destpaths_arr[$destpath]) && JPath::canChmod($destpath)) { JPath::setPermissions($destpath, '0644', '0755'); }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #34833 by ggppdk
Replied by ggppdk on topic uploads and chmod
This line gives unexpected results:
chmod($destpath, '0755')

because it should have been

chmod($destpath, 0755)

(second parameter must OCTAL integer)

Just the Joomla API function takes string that create confusing when we updated code for performance reasons


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.432 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline