chmod.php will reset folder's permissions to 755 and 644 for files, this for the folder where the script is stored and any subfolders.
Just copy the chmod.php script in a folder of your site where you wish reset any permissions. Use your FTP client to do this.
- Get a raw version of the script : click on the raw button or go to this URL : https://raw.githubusercontent.com/cavo789/joomla_free/master/src/chmod/chmod.php
- On your computer, start a text editor like Notepad or Notepad++ and copy/paste there the code,
- If needed, change here permissions depending on your host (755 for instance for the most hosting companies, 705 for OVH, ...),
- Save the file (if you're using Notepad++, check in the Encoding menu that you've selected UTF8 NoBom as encoding)
- Put the saved file in a folder of your server
Start a browser and run the file i.e go to f.i. http://site/chmod.php.
The script will start immediatly and reset folder's permissions to, by default, 755 and 644 for files. This recursively.
Don't forget to remove the script once you've finished with it.
Christophe Avonture | https://www.aesecure.com