Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Debian 5 = problem with permissions
#1
hi!

After Debian Update on one of my servers I cannot GS anymore:

user and group are the same with complete rights

GS 3.0 checks in install.php the folder permissions
then it changes these to 0777

Debian 5 does not run with any folder permission 0777 anymore because of security reasons
so the installation stops with error: "/data and /backup are not writable"

what to do?

Is there a workaround for this?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#2
i use debian 6 (squeeze) and used debian 5 (lenny) with nginx and no problem at all.

try to chown you gs root :
Code:
chown www-data:www-data /var/www/yoursite.com -R

to install/update gs using the most recent csv you need
Code:
apt-get install subversion
apt-get install php5-gd
apt-get install php5-curl

svn export http://get-simple-cms.googlecode.com/svn/trunk/ gs

cp gs/admin/* /var/www/yoursite.com/admin/ -R
cp gs/index.php /var/www/yoursite.com/index.php
cp gs/temp.gsconfig.php /var/www/yoursite.com/gsconfig.php

chown www-data:www-data /var/www/yoursite.com -R

if i can add a small suggestion here, since you're installing a new server. use Debian 6 (Squeeze) and not 5, and try switching from apache to nginx. It's really fast and uses less resources. You can run many gs sites even on a very small box with less than 128 mb ram.
Reply
#3
marrco,

thank you for your help, but I am not working on a unix console ;=)

It is a debian server which acts as managed server, but this does not mean that I will install subversion there and install getsimple like you described

I want to upload by FTP and run installation in the browser, this is the most common way and it should work ;=)

I will tell the sysadmin this, but I think it is a general problem of install.php to modify permissions in the background

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
I edited the install.php, opressed the warnings and changed the chmod-directive

So I could install

but I think this problem should be handled in the next version

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
So what did you change to get it to work Connie?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#6
ccagle8 Wrote:So what did you change to get it to work Connie?

I was quite desperate because I had to finish that installation for a friend / client ;=(

1)
I created the directories manually

2)

I edited install.php:
I changed all 0777 to 0755 or deactivated the error messages


Code:
foreach ($dirsArray as $dir) {
    $tmpfile = GSADMININCPATH.'tmp/tmp-404.xml';
    
    if (file_exists($dir))
    {
    #    chmod($dir, 0755);
        $result_755 = copy($tmpfile, $dir .'tmp.tmp');
        
        if (!$result_755)
        {
    #        chmod($dir, 0755);
            $result_777 = copy($tmpfile, $dir .'tmp.tmp');
            
            if (!$result_777)
            {
            #    $kill = i18n_r('CHMOD_ERROR');
            }
        }
    }
    else
    {
        mkdir($dir, 0755);
        $result_755 = copy($tmpfile, $dir .'tmp.tmp');
        if (!$result_755)
        {
            chmod($dir, 0755);
            $result_777 = copy($tmpfile, $dir .'tmp.tmp');
            
            if (!$result_777)
            {
            #    $kill = i18n_r('CHMOD_ERROR');
            }
        }
    }
    
    if (file_exists($dir .'tmp.tmp'))
    {
        unlink($dir .'tmp.tmp');
    }
}

so I could install
I could have uploaded a working installation and compare what has to be changed etc., but the way I did it was in my eyes "better"

this check / chmod / $kill is not good, I think 0755 is really sufficient for GS needs

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 1 Guest(s)