Closed Thread
Results 1 to 6 of 6

Thread: open_basedir(php parameter)

  1. #1
    perelkosher is offline x10Hosting Member perelkosher is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    6

    open_basedir(php parameter)

    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:open_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.

  2. #2
    adamparkzer is offline On Extended Leave adamparkzer is just really nice
    Join Date
    Jun 2008
    Location
    IL, USA
    Posts
    3,745

    Re: open_basedir(php parameter)

    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.

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: open_basedir(php parameter)

    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.

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,436

    Re: open_basedir(php parameter)

    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.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  5. #5
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: open_basedir(php parameter)

    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
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  6. #6
    perelkosher is offline x10Hosting Member perelkosher is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    6

    Re: open_basedir(php parameter)

    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.

Closed Thread

Similar Threads

  1. IBProARcade for VB
    By Icecoldcoke in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 11-30-2007, 03:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers