Hi,
Is it possible to use the yii framework in a php safe mode restricted environment? I tried deploying a bare bones project on the server but i got this error:
copy() [<a href='function.copy'>function.copy</a>]: SAFE MODE Restriction in effect. The script whose uid is 10169 is not allowed to access httpdocs/b4u/assets/87675fa2 owned by uid 48.
#0 httpdocs/b4u/framework/utils/CFileHelper.php(108): copy()
#1 httpdocs/b4u/framework/utils/CFileHelper.php(110): copyDirectoryRecursive()
#2 httpdocs/b4u/framework/utils/CFileHelper.php(46): copyDirectoryRecursive()
#3 httpdocs/b4u/framework/web/CAssetManager.php(157): copyDirectory()
#4 httpdocs/b4u/framework/web/CClientScript.php(192): publish()
#5 httpdocs/b4u/framework/web/CClientScript.php(225): getCoreScriptUrl()
#6 httpdocs/b4u/framework/web/CClientScript.php(108): renderCoreScript()
#7 httpdocs/b4u/framework/web/CClientScript.php(84): renderHead()
#8 httpdocs/b4u/framework/web/CController.php(236): render()
#9 httpdocs/b4u/framework/web/CController.php(429): processOutput()
#10 httpdocs/b4u/protected/controllers/SiteController.php(45): render()
#11 httpdocs/b4u/framework/web/actions/CInlineAction.php(32): actionLogin()
#12 httpdocs/b4u/framework/web/CController.php(218): run()
#13 httpdocs/b4u/framework/web/CController.php(203): runAction()
#14 httpdocs/b4u/framework/web/CController.php(178): runActionWithFilters()
#15 httpdocs/b4u/framework/web/CWebApplication.php(149): run()
#16 httpdocs/b4u/framework/web/CWebApplication.php(121): runController()
#17 httpdocs/b4u/framework/base/CApplication.php(146): processRequest()
#18 httpdocs/b4u/index.php(11): run()
Does anyone have anymore information about this situation?
Thanks,
Tim
Page 1 of 1
php safe mode
#3
Posted 06 January 2009 - 11:02 AM
I can only advise you to ask your provider to switch the SAFE_MODE off.
It will not be included in future PHP versions anyway.
D.
It will not be included in future PHP versions anyway.
D.
#5
Posted 06 January 2009 - 02:11 PM
Those script are owned by different User (uid)
Can you change the ownership of these files?
Christian
Can you change the ownership of these files?
Christian
#6
Posted 06 January 2009 - 02:21 PM
In this case it might be piece a cake. But I can't. I only have FTP access to httpdocs directory. No ssh at all. chmod 0777 to assets/* doesn't help.
For example blog demo application should create jquery.js there. But it does n't.
For example blog demo application should create jquery.js there. But it does n't.
#7
Posted 06 January 2009 - 02:44 PM
In this environment, how would you use a script to create a subdirectory and upload files into it?
#8
Posted 06 January 2009 - 02:47 PM
Would it be a solution for you, to start the Yii-Application locally and create the assets/* Files on a local system.
You can put these files to the FTP-Server. Then you would be the owner.
Christian
PS:
I Don't know, when and how Yii creates the JS-files in assets/*
You can put these files to the FTP-Server. Then you would be the owner.
Christian
PS:
I Don't know, when and how Yii creates the JS-files in assets/*
Share this topic:
Page 1 of 1

Help











