Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
Hi guys.....No need to edit files or anything, simply need to change remove the Read-Only status from the directory.Though not using the Explorer way!!Here we go:The method that worked for me was to go to start/run cmd and go to the /sites folder. (or if you have cmdhere installed, in explorer right click folder cmdhere). Once in this folder apply the following command to solve the problem:attrib -r default /s /dProblem solved,Let me know if it worked
Hi guys.....No need to edit files or anything, simply need to change remove the Read-Only status from the directory.Though not using the Explorer way!!Here we go:The method that worked for me was to go to start/run cmd and go to the /sites folder. (or if you have cmdhere installed, in explorer right click folder cmdhere). Once in this folder apply the following command to solve the problem:attrib -r default /s /d
function requireWriteable($filename, $testDetails, $absolute = false) { $this->testing($testDetails); if ( ! $absolute ) { $filename = $this->getBaseDir() . $filename; } // Check if Windows OS. Under Windows, 'is_writeable' only returns the read-only attribute status, not the actual permissions (ACL), So forcing chmod 777 if Windows if (strtolower((substr(PHP_OS, 0, 3))) == 'win') { chmod($filename, 0777); } if(!is_writeable($filename)) { $name = null; if ( function_exists( 'posix_getpwuid' ) ) { $user = posix_getpwuid(posix_geteuid()); $name = '- ' . $user['name'] . ' -'; } if ( ! isset( $testDetails[2] ) ) { $testDetails[2] = null; } $testDetails[2] .= "The user account used by your web-server $name needs to be granted write access to the following directory in order to configure the CiviCRM settings file:\n$filename"; $this->error($testDetails); } }
If you suspect its a code issue try commenting the line 266 to 270 (shown below) in the file - civicrm/install/index.php, which is actually responsible for verifying the permission and check.Code: [Select] foreach ( $writableDirectories as $dir ) { $this->requireWriteable( $cmsPath . DIRECTORY_SEPARATOR . $dir, array("File permissions", "Is the $dir folder writeable?", null ), true ); }
foreach ( $writableDirectories as $dir ) { $this->requireWriteable( $cmsPath . DIRECTORY_SEPARATOR . $dir, array("File permissions", "Is the $dir folder writeable?", null ), true ); }