PHP and open_basedir fault

Discussion in 'Installation/Configuration' started by neilsaab, Oct 20, 2008.

  1. neilsaab

    neilsaab New Member

    Hi Guys hope someone can help.

    I have a Fedora8 server running with ISPConfig on and all was working well. I installed MyPhpAdmin through the update page and now I get this fault on a website that has shop_script installed in the site:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/share/pear/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/var/www/web4/) in /var/www/web4/web/shop/smarty/core/core.get_include_path.php on line 34

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/share/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/var/www/web4/) in /var/www/web4/web/shop/smarty/core/core.get_include_path.php on line 34


    I've had a trawl through the forums and couldn't find anything that cured this error for me. Can someone enlighten me as to how I can change the open_basedir path, as nothing I've tried works.

    I'm still learning Linux & PHP so bear with me please.

    Neil
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your error has nothing to do with the phpmyadmin that you installed. Your shop scroipt simply does not support open safemode. The solution is to disable safemode in the settings of the website.
     
  3. neilsaab

    neilsaab New Member

    Thank you for your reply. That was something I tried yesterday and it didn't work. I tried again this morning and it has cleared the fault, so I guess the browser had it cached or something.

    Thanks again.

    Neil
     

Share This Page