EvolutionCrazy
Basic Pleskian
i've an upload script that every moth create a new dir where it will put his files...
i create the dir in this way:
that dir in theory should be created with chmod 777...
but in realty it's created with chmod 755 and it's owned by apache:apache...
there'snt any problem uploading files into that dir if i've safe_mode = Off
but a soon as i set it to On i get "permession denied"... to get the script uploading it correctly again i've to chown that dir to usersacln and then chmod it 777...
all manually!!!
is this a normal thing?
what have you done to prevent this from happening?
How all your users upload files/create dirs???
did you have a cronjob that chown correctly all the files every 5 min???
i hope sw-soft will integrate support for tools like suphp ASAP ...
i create the dir in this way:
PHP:
if(!file_exists($absolute_path)){
mkdir ($absolute_path, 0777);
}
that dir in theory should be created with chmod 777...
but in realty it's created with chmod 755 and it's owned by apache:apache...
there'snt any problem uploading files into that dir if i've safe_mode = Off
but a soon as i set it to On i get "permession denied"... to get the script uploading it correctly again i've to chown that dir to usersacln and then chmod it 777...
all manually!!!
is this a normal thing?
what have you done to prevent this from happening?
How all your users upload files/create dirs???
did you have a cronjob that chown correctly all the files every 5 min???
i hope sw-soft will integrate support for tools like suphp ASAP ...