apache directive per folder

Discussion in 'Installation/Configuration' started by bplgonzo, Aug 17, 2007.

  1. bplgonzo

    bplgonzo New Member

    I have problem setting include_path directive per folder via .htacces file

    I have Apache2/PHP5/ISPConfig installed. I see mod_php5 loaded so I guess that PHP is working as Apache module.

    Problem is following:

    I need to set include_path per folder. My directive is:

    php_value include_path ".:/usr/lib/php:/usr/share/pear:/var/www/web1/web/test"
    - If I put it in .htaccess file under /var/www/web1/web/test it returns Error 500
    - If I put it in ISPConfig Apache directive box it works OK, but I guess that then it is directive for whole site, and I need it per separate folders.

    Is there something I'm missing in code or in some other settings?
  2. falko

    falko Super Moderator ISPConfig Developer

    You can specify the folder in the Apache Directives field, too, e.g. like this:
    <Directory /path/to/folder>
      php_value include_path ".:/usr/lib/php:/usr/share/pear:/var/www/web1/web/test"
  3. bplgonzo

    bplgonzo New Member

    Thanks Falko. :)

Share This Page