Forums / Install & configuration / safe_mode php6 compatibility

safe_mode php6 compatibility

Author Message

Manuele Arenghi

Monday 15 March 2010 4:26:53 am

Hello,

my ezpublish site(ez 4.0.3) is on shared hosting .The server handler says he must set safe_mode=ON in the php.ini file.(php5.2) for security issues.

When safe_mode=ON my site does not allow access to anyuser .

To run around this problem I set owner nobody for the ez folder and this worked.Althought th web server does not allow this on shared hosting for accessibility reason.They says that as soon as possible they will switch to php 6 which does not support safe_mode no more .So I must conform.

So, my questions are:

-is there any valid work around to get ezpublish 4.0.3 running with safe_mode=on?Can you please send a detailed how to?

-does ezpublish 4.2 guarantee compatibility with setting safe_mode=on?

Are you planning to have a new version with full compatibility with php6(or safe_mode=on)?When will it be released?

Thank you!!!!!!!

http://manuele.ath.cx

Manuele Arenghi

Monday 22 March 2010 4:19:41 am

Noone can anwer?Noone thinks at this problem?....what will we do when ours web hostings will switch to php6?

Safe_mode won't be avaliable and if it won't be possible to change owner of the EZ installation folder (because of the shared web hosting)we'll have to switch to a dedicated server which is more and more expensive .Someone told me to change cms but I can't think ezPublish should be abandon for such a small metter .

Hope someone wants to take care of this urgent issue .

Thanks

http://manuele.ath.cx

Bertrand Dunogier

Monday 22 March 2010 5:35:33 am

Regarding PHP6, since the language isn't finalized, we won't work on supporting it, as things may still change.

About safe_mode, it is widely accepted that it is was a bad approach to securing a platform, and will go away with PHP6 (if i remember correctly). We don't support it, and most likely won't in the near future, sorry. You should show your hosting company the homepage for safe_mode on php.net: http://php.net/manual/en/features.safe-mode.php. It very clearly says that safe_mode is deprecated in PHP 5.3, and will be removed with PHP6.

So there is in the end no problem: when your company switches to PHP6, there will be no safe mode, and you'll be fine :-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Manuele Arenghi

Monday 22 March 2010 7:01:07 am

Hello Bertrand,

thanks for replying,I need a further confirmation:

"safe_mode is deprecated in PHP 5.3, and will be removed with PHP6" means that :

-in php 5.3 they invite to set safe_mode=off

-in php 6 it is not allowed to set safe_mode=on so it will be as setting safe_mode=off.

This would mean I won't have any problem with my EZ web site

Thank you for clearness

http://manuele.ath.cx

eZ debug

Timing: Jan 18 2025 00:04:07
Script start
Timing: Jan 18 2025 00:04:07
Module start 'content'
Timing: Jan 18 2025 00:04:07
Module end 'content'
Timing: Jan 18 2025 00:04:07
Script end

Main resources:

Total runtime0.7235 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.9453180.8281
Module start 'content' 0.00670.5710 769.7734553.3750
Module end 'content' 0.57770.1456 1,323.1484336.7578
Script end 0.7234  1,659.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5722210.0002
Check MTime0.00150.2021210.0001
Mysql Total
Database connection0.00080.112410.0008
Mysqli_queries0.641588.67001970.0033
Looping result0.00220.30031950.0000
Template Total0.693595.920.3468
Template load0.00200.275120.0010
Template processing0.691595.586320.3458
Template load and register function0.00010.019910.0001
states
state_id_array0.00140.187710.0014
state_identifier_array0.00170.239020.0009
Override
Cache load0.00160.2243300.0001
Sytem overhead
Fetch class attribute can translate value0.00140.191730.0005
Fetch class attribute name0.00220.309950.0004
XML
Image XML parsing0.00110.155330.0004
class_abstraction
Instantiating content class attribute0.00000.001850.0000
General
dbfile0.00620.8592270.0002
String conversion0.00000.001130.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
4content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs