Forums / Install & configuration / The same old questiuon baout "Safe mode"

The same old questiuon baout "Safe mode"

Author Message

Wolfgang Hofbauer

Sunday 15 June 2003 6:34:11 am

Hi folks,
I tested ezp for a while on a local server at home and think it is a very good system. Yesterday I tried to install ezp3.1 on a shared server and got the eeror message: "Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in effect. The script whose uid is 1534 is not allowed to access /var/www/web353/html/ezp/var/cache/ini owned by uid 33 in /var/www/web353/html/ezp/lib/ezutils/classes/ezini.php on line 329".
Is there really no way to get it up and running? Safe mode can't be switched due ti security reasons. What shall I do, the formu says, I then just can't use ezp. Is this really treu?

Best regards and thanx
Wolfgang

barry voeten

Sunday 15 June 2003 7:40:28 am

Hi
I haven't installed Ez yet but I have seen this before. The problem is this:
* you have put the files of ez as user 1534. This is normal and should't be changed.
* The var-cache/ini directory has been made by user nr 33 (probably apache or so).
* Problem is : These users aren't the same.

Now you should try to chown that cache directory or file, either by a "chown yourlogin thefile" or simply (first make a copy), remove it by ftp and put it back.

Just a guess, so If it don't work maybe read the docs or maybe someone else will help

Barry

Huib Kleinhout

Sunday 15 June 2003 10:38:04 am

Each time ezp creates a dir, for example cache. ezp can't access it because user 33 (apache/iis..) is the owner. Ezp will keep creating directories (for caching images, templatese etc) so chown/chmod the cache dir won't help.
The only thing you can do is chowning all files to user 33. If you don't have shell access you need to reinstall ezp by using a special php script which untars/unzips the ezpublish package as user 33.

cheers,
Huib

Wolfgang Hofbauer

Monday 16 June 2003 3:09:05 am

Thanks for the tip with the FTP_delete and new uplaode the VAR-Directory. So I could manage the installation. But now I can't login because of the following error: "Warning: ezsessionwrite() [function.ezsessionwrite]: open_basedir restriction in effect. File(./lib/ezdb/classes/ezdb.php) is not within the allowed path(s): (/var/www/web353/) in /var/www/web353/html/ezp/lib/ezutils/classes/ezsession.php on line 77

Warning: ezsessionwrite(lib/ezdb/classes/ezdb.php) [function.ezsessionwrite]: failed to create stream: Operation not permitted in /var/www/web353/html/ezp/lib/ezutils/classes/ezsession.php on line 77

Warning: ezsessionwrite() [function.ezsessionwrite]: Failed opening 'lib/ezdb/classes/ezdb.php' for inclusion (include_path='.:/usr/lib/php:/var/www/web353/html/ezp/') in /var/www/web353/html/ezp/lib/ezutils/classes/ezsession.php on line 77

Can you help me with this one, too?

Thank you
Wolfgang

@Huib: where can I get this script from? This would be a very handy tool, I guess.