-
AuthorPosts
-
January 20, 2020 at 10:30 am #1176231
Hi,
is there an easy way, like a switch or something, to make sure the dynamic Avia folder in uploads doesn’t change back permissions (chmod) to 777 automatically on any minor change of the Website (Theme, wp, Footer etc.)?
I would like to have lower permissions for this folder, permanently.Thanks and best regards
January 20, 2020 at 8:34 pm #1176416Hey malanzo,
Please have a look at the following thread:
https://kriesi.at/support/topic/permissions-on-dynamic_avia-directory/If you need further assistance please let us know.
Best regards,
VictoriaJanuary 26, 2020 at 6:01 pm #1178516Hi Victoria,
I know this thread. But I still don’t know why it is 777 nor do I know an easy way to change it to a lower permission, that won’t change back automatically.
Why not an easy switch or detailed information on what to put where to disable this?BR
January 28, 2020 at 4:00 pm #1179053Hi,
Thank you for the update.
In the thread above, we provided a different version of the function that creates the backend folder. Please check this reply:
// https://kriesi.at/support/topic/permissions-on-dynamic_avia-directory/#post-819144
This will set the folder permission to 755 instead of 777.
$created = wp_mkdir_p( trailingslashit( $folder ) ); @chmod( $folder, 0755 );Best regards,
IsmaelJanuary 30, 2020 at 11:00 pm #1180099Hi Ismael,
so, just for clearification:
The snippet$created = wp_mkdir_p( trailingslashit( $folder ) ); @chmod( $folder, 0755 );needs to be inserted into the functions.php of the child theme?
Or does the whole code you provided with https://kriesi.at/support/topic/permissions-on-dynamic_avia-directory/#post-819144
need to be inserted in the child theme functions.php?Best regards
February 3, 2020 at 3:34 am #1180773 -
AuthorPosts
- You must be logged in to reply to this topic.
