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.

eZ debug

Timing: Jan 18 2025 11:14:55
Script start
Timing: Jan 18 2025 11:14:55
Module start 'content'
Timing: Jan 18 2025 11:14:56
Module end 'content'
Timing: Jan 18 2025 11:14:56
Script end

Main resources:

Total runtime0.7010 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.9688180.8203
Module start 'content' 0.00650.5549 769.7891562.2969
Module end 'content' 0.56140.1395 1,332.0859337.3594
Script end 0.7009  1,669.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5958210.0002
Check MTime0.00150.2071210.0001
Mysql Total
Database connection0.00080.116410.0008
Mysqli_queries0.625489.20851990.0031
Looping result0.00200.27961970.0000
Template Total0.675196.320.3375
Template load0.00180.262920.0009
Template processing0.673296.033320.3366
Template load and register function0.00020.030710.0002
states
state_id_array0.00150.216110.0015
state_identifier_array0.00070.100720.0004
Override
Cache load0.00160.2237330.0000
Sytem overhead
Fetch class attribute can translate value0.00150.219440.0004
Fetch class attribute name0.00150.208450.0003
XML
Image XML parsing0.00110.163940.0003
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00580.8206270.0002
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs