Page 2 of 2

Posted: Sun Aug 27, 2006 12:53 pm
by .g@sp.
garvinhicking wrote:Hi!
Hm, did you replace all is_writable checks?
Yep
there is 3 "is_writable" on lines 273, 284 and 296
and when i modified it to "is_dir", nothing has changed.
garvinhicking wrote:I don't know about such protection. Please ask your provider how to proceed? Serendipity can't do something about it, you must have write privs.
yep, i've asked it on my provider (ovh) forum AND to an OVH tech. i'm still waiting for his answer

Posted: Sun Aug 27, 2006 1:00 pm
by .g@sp.
Is it dangerous to simply delete this part of the upgrader script ?? (from line 265 to line 306)
I tried it, and by the way, i can continue the installation... but i'm not sure it's very clean to do that... :?

Posted: Sun Aug 27, 2006 1:00 pm
by garvinhicking
Hi!

Sadly because my development server is down, I can't very well check this. If you can give me FTP access to your blog, I could patch the code so that it would work for you?

Best regards,
Garvin

Posted: Sun Aug 27, 2006 1:02 pm
by .g@sp.
hm we asnwered on the same time...

first, can i try to install without this verification ? (by deleting the lines i told on my previous post)

If not, i'll give you my ftp access...

thank you very much ;)

Posted: Sun Aug 27, 2006 1:03 pm
by garvinhicking
Hi!

Yes, I think it should work if you simple remove the checks. :)

Best regards,
Garvin

Posted: Sun Aug 27, 2006 1:15 pm
by .g@sp.
hm it's almost ok, but it's not

Now it tells me "i don't have the rights to write in templates_c, give it to me manually"

So, i'm gonna set back the originally upgrader_inc.php and give you my ftp access by private message...

I hope it will work...

anyway, thank you for the help

Posted: Mon Aug 28, 2006 12:33 pm
by .g@sp.
garvinhicking wrote:Hi!

Please try this updated script:

Code: Select all

<?php
echo substr(sprintf('%o', fileperms('/home/defactoa/www/blog/')), -4);
echo "<br />\n";
echo substr(sprintf('%o', fileperms('/home/defactoa/www/blog/templates_c/')), -4); 
echo "<br />\n";
if (is_writable('/home/defactoa/www/blog/')) {
  echo 'WRITABLE';
} else {
  echo 'NOT WRITABLE';
}
echo "<br />\n";

if (is_writable('/home/defactoa/www/blog/templates_c/')) {
  echo 'WRITABLE';
} else {
  echo 'NOT WRITABLE';
}
echo "<br />\n";
If your server is running PHP's SafeMode, you need to ensure that the user/group IDs of the owner of the directory are set so that PHP can access those directories.

Regards,
Garvin
I don't understand anything :?
Now this script tells me :
0755
0755
WRITABLE
WRITABLE
but the installation script tells me "NOT WRITABLE"
:x

Posted: Mon Aug 28, 2006 12:59 pm
by garvinhicking
Hi!

Your test.php script looks different than the one you pasted! It uses '../blog/' instead of the full paths! No wonder that it works there. ;)

If your full path is wrong, you need to change the right serendipity path; you can use phpMyAdmin to edit the serendipity_config DB table and insert the right paths there!

It seems your provider changed paths without telling you? Or that he uses symlinks that do not work properly.

Best regards,
Garvin

Posted: Mon Aug 28, 2006 2:15 pm
by .g@sp.
garvinhicking wrote:
If your full path is wrong, you need to change the right serendipity path; you can use phpMyAdmin to edit the serendipity_config DB table and insert the right paths there!

It seems your provider changed paths without telling you?
Once more, you're right...
That was "only" a full path problem...
They give me the right full path, and now, everything works properly !!!

Sorry for all the inconvenience, and thank you very much
:oops:

Posted: Mon Aug 28, 2006 7:58 pm
by garvinhicking
Hi!

You're welcome! have fun! :)

Regards,
Garvin