GetSimple Support Forum

Full Version: Warning: chmod(): Operation not permitted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know why we get this warning? I know it's related to file ownership, just wondered if anyone else noticed this.

Warning: chmod(): Operation not permitted in /var/www/html/projects/getSimple/intranet_v2/admin/inc/basic.php on line 322

code from the file is:


PHP Code:
    // debugLog('XMLsave: ' . $file . ' ' . get_execution_time());
    
if(getDef('GSDOCHMOD') === false) return $success;
    if (
defined('GSCHMOD')) {
        return 
$success && chmod($fileGSCHMOD);
    } else {
        return 
$success && chmod($file0755);
    } 


Thanks
You need to be the owner of the $file.