Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 19, 20241 yr Hi, what CHMOD settings should be set for IPS folders and files to ensure everything works properly? As I understand, is it uploads folder set to 777? Also, cron task.php, and the rest?
February 19, 20241 yr Community Expert You can find the recommended CHMOD settings inside the init.php file: // File permissions // For example: when making folders for files to be uploaded to, what permissions // that should be created with 'IPS_FOLDER_PERMISSION' => 0777, // Writeable folders 'FOLDER_PERMISSION_NO_WRITE' => 0755, // Non-writeable folders 'IPS_FILE_PERMISSION' => 0666, // Writeable files 'FILE_PERMISSION_NO_WRITE' => 0644, // Non-writeable files Those are the default values IPS suggests (and uses), but depending on your server's configuration, you might need to adjust them. That part is best discussed with your hosting, though. As for writable folders, the default ones usually are applications, datastore, plugins, and uploads. Anyway, you'll get an error during upgrades if something that needs to be writable isn't. Unless you're having issues with your site (for example, files not uploading, etc), I wouldn't change anything.
February 20, 20241 yr Community Expert If you do adjust them, do not do so directly from that file. You need to do this in a constants.php file
February 20, 20241 yr Community Expert If you take a look at the following, this explains how it works 🙂 https://invisioncommunity.com/4guides/advanced-options/configuration-options/using-constantsphp-r25/