PHP WordPress

How to change file permission using wp-config.php

you can change file permissions using wp-config.php

Add this to wp-config-php

<?php
define('FS_CHMOD_DIR', (0777 & ~ umask()));
define('FS_CHMOD_FILE', (0777 & ~ umask()));
?>

this will set the 777 permissions on all your files and folders and usually not recommended. Preferable set the permissionas to 0755.

Leave a comment