Guest Posted December 12, 2003 Posted December 12, 2003 I get this warning when I try to make a backup of my database files: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/gzip) is not within the allowed path(s): (/www/htdocs/cameraza) in /www/htdocs/cameraza/admin/backup.php on line 424 Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/bin/zip) is not within the allowed path(s): (/www/htdocs/cameraza) in /www/htdocs/cameraza/admin/backup.php on line 425 I called my host and asked to allow osCommerce to the root-file. But when this was realized I still get this Warning. Does anybody know what this could mean?? thank you !
tripy Posted December 12, 2003 Posted December 12, 2003 No, there is nothing to be done by you, unless you have access to the root (administrative) acount on this server. The open_basedir restriction is a mechanism that allow you to use or access files or programs or directory that are precisely defined in the apache web server configuration files. Thus, disalowing you to access usr/bin/gzip program (this one is to compress the datas). If you need to access it, you could ask your hosting companie to add it in your allowed path, but it would be needed to modify the file calling it too to reflect the new position (maybe /www/htdocs/cameraza/allowed_programms/gzip ) of the gzip utility. Or you could upload it in your web server tree, and modify the backup script tou reflect the position of it. Be assured to find the right os version of it. Linux on ppc, or intel processor, or Sun servers, or open/free Bsd don't are all compatible with binaries version of an application, you could need to recompile a version for the good os. You can determine your web server os with the admin tools of oscommerc, under tools, go to "server informations". Below the text PHP Version 4.xxx, the 1st line will give you the os type. For exemple: System FreeBSD rigel.aubonne.virtua.ch 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Tue Nov i386 on my dev server signify I run a freebsd 4.9 server on an Intel compatible processor This restriction can be a real pain, and as a web coder, I know it, but on the server security side, I'm 100% for it.
Guest Posted December 12, 2003 Posted December 12, 2003 Thanks a lot Tripy !! I will call my hosting company first thing in the morning !!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.