Page 1 of 1
Since 1.0 Serendipty wouldn´t work with Safe Mode On
Posted: Mon Jun 19, 2006 1:16 pm
by foobar
Hello,
I upgraded that weekend my Serendipity Installation to 1.0 (from 0.9.1)
Now I does not work with safe_mode = on. Because of the is_writable queries in the code.
Even when I do a chmod 1777 to the required folderes I won´t work. Unless I deactivate Safe mode.
Thats not what I wan´t. I want Serendipity with Safe mode.
When I really need that functions (e.g. Sparatacus) I will enabling it for the required time.
So in what files have you implemented the writable check and where a the depencies?
Re: Since 1.0 Serendipty wouldn´t work with Safe Mode On
Posted: Mon Jun 19, 2006 1:40 pm
by garvinhicking
Hi!
Can you tell me the exact error message, from where do you get it? Then I can tell you where such a check might be implemented. I guess that it's within the serendipity_smarty_init()...
is_writable() should also properly return true or false in SafeMode environments if the permissions are correct. You might need to do a 0777 instead of 1777?
Regards,
Garvin
Posted: Mon Jun 19, 2006 3:15 pm
by foobar
Hy garvinhicking,
I chmod archives, plugins, templates_c, uploads to 777 now. But got the same problem. (The installation page appears).
Posted: Mon Jun 19, 2006 3:18 pm
by garvinhicking
Hi!
Again, what error message do you get?
If the installation page appears, this means either no serendipity_config_local.inc.php file exists or it cannot be read.
Regards,
Garvin
Posted: Mon Jun 19, 2006 3:34 pm
by foobar
Sorry garv,
If I would get an PHP error atm, I would post it. But I didn´t get one. Only that installation page.
I gave, for test, the serendipity_config_local.inc.php all rights. Nothing changes

Posted: Mon Jun 19, 2006 7:05 pm
by garvinhicking
Hi!
Oh, okay. You didn't properly describe your problem in first place.
What is your URL? And check your serendipity_config_local.inc.php file, does it contain all the right settings?
You wrote "because of the is_writable queries". Why do you suspsect these, and which exactly do you suspect?
Anyways - if only the installer pops up, it's definitely because either the file is not readable OR because your path settings in your serendipity_config DB table do not point to the right path and thus the file can't be found. I might be able to tell you the exact reason if you could give me temporary FTP access to your blog.
Best regards,
Garvin
Posted: Mon Jun 19, 2006 8:27 pm
by foobar
Hy garv,
thanks for your offer, but I found the bug now. I seems to depend on the useres which are provided in the .tar.gz.
I chown`ed the whole dir with the real user and I seems to work now.
Thanks for all!
Und danke, hast du echt super gemacht, Serendipity ist ein feines Stück Software!
Posted: Tue Jun 20, 2006 10:51 am
by garvinhicking
Hi!
Ah, cool. I had thought you uploaded the file via FTP, which would result in an automatic owner change. It'S the first SafeMode Host I now know which provides SSH access.
Beste regards and have fun,
Garvin