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.
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.
- 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\ - Another option to avoid the problem is to completely cancel the restrictions set by the open_basedir parameter by changing its value to nonepen_basedir = none