update problem : chmod 777

Having trouble installing serendipity?
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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
Sorry for my poor english ;)
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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... :?
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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 ;)
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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
Sorry for my poor english ;)
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
.g@sp.
Regular
Posts: 50
Joined: Thu Apr 20, 2006 2:01 pm
Location: Brussels, Belgium

Post 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:
Last edited by .g@sp. on Mon Aug 28, 2006 10:40 pm, edited 1 time in total.
Sorry for my poor english ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You're welcome! have fun! :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply