Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have problem on my new, first VPS with CentOs and ISPconfig.

I can install eshop OpenCart ( opencart.com ) My domain: jonnie.cz ( If you doesnt see any error, refresh the page )

In settings of domain - PHP open_basedir i have: /var/www/clients/client2/web7/web:/var/www/clients/client2/web7/tmp:/var/www/jonnie.cz/web:/srv/www/jonnie.cz/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin

A error is as follows: Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client2/web7/web:/var/www/clients/client2/web7/tmp:/var/www/jonnie.cz/web:/srv/www/jonnie.cz/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client2/web7/web/system/engine/controller.php on line 63

Where is problem?

Already two days working on the error, no result

share|improve this question

1 Answer 1

Looks like DIR_TEMPLATE is not in open_basedir

You can:

  1. figure out what it is (die('DIR_TEMPLATE=' . DIR_TEMPLATE);) and add it to open_basedir
  2. Change it to something that is in the list of allowed paths, and move stuff there
  3. disable open_basedir (set it to "none")
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.