PDA

View Full Version : apache directive per folder


bplgonzo
17th August 2007, 11:40
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?

falko
18th August 2007, 12:51
- 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.

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"
</Directory>

bplgonzo
19th August 2007, 14:35
Thanks Falko. :)