Posts: 339
Threads: 27
Joined: Nov 2009
Unable to continue: Unable to write config file. CHMOD 777 on the folders /data/ and /backups/ and retry
Yep, this is my first time trying to install Get-Simple on my server instead of my localhost.
I searched the forum to find the answer of "oh well".
I'm not an idiot... is there another way around this? Why is it failing when my dir's are 777?
Posts: 339
Threads: 27
Joined: Nov 2009
Ok, I'm not one to complain, but here is the issue.
Quote:Unable to continue: Unable to write config file. CHMOD 777 on the folders /data/ and /backups/ and retry
This install.php code is looking for 777 permissions on ALL these directories. The wording above makes me believe that only the data and backups folders need to be 777 and NOT their sub-dirs. However, the install.php script requires them to be.
Let's fix the wording please.
Code:
// attempt to fix permissions issues
$dirsArray = array(
'../data/',
'../data/other/',
'../data/other/logs/',
'../data/pages/',
'../data/uploads/',
'../data/thumbs/',
'../backups/',
'../backups/other/',
'../backups/pages/',
'../backups/zip/'
);
foreach ($dirsArray as $dir) {
$tmpfile = 'inc/tmp/tmp-403.xml';
if (file_exists($dir)) {
chmod($dir, 0755);
$result_755 = copy($tmpfile, $dir .'tmp.tmp');
if (!$result_755) {
chmod($dir, 0777);
$result_777 = copy($tmpfile, $dir .'tmp.tmp');
if (!$result_777) {
$kill = $i18n['CHMOD_ERROR'];
Posts: 972
Threads: 27
Joined: Aug 2009
You are right, this should be changed to something like “Unable to continue: Unable to write config file. CHMOD 777 on the folders /data/, /backups/ and their sub-folders and retryâ€Â.
Filed it us a bug, so we won’t forget. If I have the time it will be fixed this afternoon (my time) in version 2!
Posts: 111
Threads: 14
Joined: Jan 2010
Yea, I also, learned this the hard way.