Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1176416

    Hey 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,
    Victoria

    #1178516

    Hi 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

    #1179053

    Hi,

    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,
    Ismael

    #1180099

    Hi 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

    #1180773

    Hi,

    Sorry for the delay. You have to insert the whole function in the functions.php file. It will set the folder permission to 0755 instead of the default 0777.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.