timbo42 Posted February 26, 2006 Share Posted February 26, 2006 Hi Everybody, I am really stuck - got pretty much all running but am getting some path problems - which I cannot get rid of. Probably in part that I am not used to linux yet .... Appreciate any pointers to get me out of this one... Here is what it is : Downloaded and installed osCommerice 2.2 milestone 2 update 051113 on a shared server. Went easy until hit the Step 7 of the install - where nothing worked - as (reading in this forum) I had to edit the configure.php in the catalog/admin/include and catalog/include. Did this will a few false starts + the shop starts to work seemly OK except...... In File Manager I get the following error : Warning: dir(): open_basedir restriction in effect. File(/ext/s/sc/xxxxx.com/html/catalog) is not within the allowed path(s): (.) in /mnt/storage2/s/sc/xxxxx.com/html/catalog/admin/file_manager.php on line 178 Warning: dir(/ext/s/sc/xxxxx.com/html/catalog): failed to open dir: Operation not permitted in /mnt/storage2/s/sc/xxxxx.com/html/catalog/admin/file_manager.php on line 178 Fatal error: Call to a member function on a non-object in /mnt/storage2/s/sc/xxxxx.com/html/catalog/admin/file_manager.php on line 179 Where can I fix the file reference??? Any help would be very appreciated!! Thanks Tim Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 26, 2006 Share Posted February 26, 2006 You will need to contact your host since that is most likely a setting on their part that is casuing the error (open base restriction). Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
timbo42 Posted February 27, 2006 Author Share Posted February 27, 2006 You will need to contact your host since that is most likely a setting on their part that is casuing the error (open base restriction). Jack Thanks Jack - spoke to the isp - they refered me to the support page .... PHP running in Safe Mode - so looks like reference to absolute path not allowed ... so how to do this in the configure.php files?? In the admin/includes/configure.php I have : I can pick up the web root in the script by: $WEB_ROOT = str_replace($_SERVER[sCRIPT_NAME],'' ,$_SERVER[PATH_TRANSLATED]); Following to define the path : define('DIR_FS_DOCUMENT_ROOT', $WEB_ROOT); I have tried all sorts of combinations for the document root path but to no avail. Any ideas on this??? Many Many thanks Tim Link to comment Share on other sites More sharing options...
timbo42 Posted February 27, 2006 Author Share Posted February 27, 2006 Thanks Jack - spoke to the isp - they refered me to the support page .... PHP running in Safe Mode - so looks like reference to absolute path not allowed ... so how to do this in the configure.php files?? In the admin/includes/configure.php I have : I can pick up the web root in the script by: $WEB_ROOT = str_replace($_SERVER[sCRIPT_NAME],'' ,$_SERVER[PATH_TRANSLATED]); Following to define the path : define('DIR_FS_DOCUMENT_ROOT', $WEB_ROOT); I have tried all sorts of combinations for the document root path but to no avail. Any ideas on this??? Many Many thanks Tim duuuh ...... finally understood the english ....... open base restrictions means simply I cannot reference a file higher up the tree even if in my allowed path ...... which means knowing the document root does not help here ... When this is a normal issue with php safe mode ..... I hope that someone can help here! Thanks Tim Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 27, 2006 Share Posted February 27, 2006 I could be mistaken but I don't think oscommece will function correctly while in safe mode. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.