-SOLVED- open_basedir error with php5 websites after php-Update Jan 2011

Discussion in 'General' started by holzbalken, Jan 13, 2011.

  1. holzbalken

    holzbalken New Member

    Solution about website Error with all customers on ispconfig-Server who are using php.

    the website gives following error message:

    Warning: Unknown: open_basedir restriction in effect. File(/var/www/web1/web/index.htm) is not within the allowed path(s): (/var/www/web1/) in Unknown on line 0

    Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

    Fatal error: Unknown: Failed opening required '/var/www/web1/web/index.htm' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0


    edit file: /etc/apache2/vhosts/Vhosts_ispconfig.conf

    the trailing "/" in the lines

    php_admin_value open_basedir /var/www/web1/ should be changed to:

    php_admin_value open_basedir /var/www/web1

    without trailing "/" in the lines

    don´t miss to change the rest of the php_admin_value open_basedir´s


    => The ispconfig2 Programm has to be changed accordingly

    ANY menü entry will result in the same problem again

    used version: ISPConfig-2.2.35

    regards holzbalken

Share This Page