open_basedir(php parameter)

Status
Not open for further replies.

perelkosher

New Member
Messages
6
Reaction score
0
Points
0
Hi,

I've installed a Shop Script, and everything is great, besides the two lines of code-error on top of the page:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/home/:/tmp) in /home/kosher/public_html/smarty/core/core.get_include_path.php on line 34

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/home/:/tmp) in /home/kosher/public_html/smarty/core/core.get_include_path.php on line 34

I went to the script craetor's site, and there it says:

This message means that the path to the WebAsyst installation directory is not included into the list of allowed server directories that may be accessed by PHP scripts. The list of allowed directories is specified in the open_basedir parameter in the PHP configuration.
  1. One of the ways to resolve this issue is to add the WebAsyst installation directory to the value of the open_basedir parameter. On a UNIX/Linux/FreeBSD server paths should be separated by a colon, e.g.:
    open_basedir =/home/vhosts:/usr/share/php/pear/:/tmpOn a Windows server the semicolon should be used:
    open_basedir = C:\Inetpub\;C:\Windows\TEMP\
  2. Another option to avoid the problem is to completely cancel the restrictions set by the open_basedir parameter by changing its value to none:eek:pen_basedir = none
Would it be possible to do that?YOu can check the error/site at:http://perelkosher.x10hosting.com/index.php Thanks,Alon Perel.
 

adamparkzer

On Extended Leave
Messages
3,745
Reaction score
81
Points
0
All restrictions placed on our servers are done so to increase security for all of our members and prevent abuse. We do not enable particular functions or features on an individual basis.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Go to the site where you got the software.
Go to their support forum.
Show them the error message.
Ask them how to change the configuration of their software to look in the permitted directories.
Any decent software should be configurable to look/install into specific directories.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Normally, a php script software should not have to look in any other directory... Anyways, if you are good in php, there is always an option to modify yourself the code while waiting to see if the creators can do so.

As for the error message, I don't see it when I browse to your website.
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
It looks like the script is causing the problem. There is no reason that it needs to look in the PHP install directory for anything. It's looking for a template file that isn't there even if it could look there

/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html
 

perelkosher

New Member
Messages
6
Reaction score
0
Points
0
It's ok guys - thanks,

I dumped the script - for other reasons... It didn't allow the thing which is sold to be sold per kilogramn... And Mother-dear sells lots of meat which is per kilo... So my solution would be to give a price per 1 gram, and write in tehre that when you buy meat you specify quantity in GRAMS... blah, a mess... and some clients don't even do that - they order per "pack" and a pack is always random number of grams...

So the whole idea got killed... And I put there an image gallery with all the merchandise - hence no more error msg.

Thanks for all the replies guys,

Alon.
 
Status
Not open for further replies.
Top