set php include_path variable directly from apache

This tip is useful when you have several projects on the same server.

To set a php ‘include_path’ customized to each project, in your <VirtualHost *:80> (or equivalent) definition, simply add:

php_value include_path ".:/path/to/site:/another/path"

save your changes, check your config (sudo apache2ctl configtest) and restart apache (sudo /etc/init.d/apache2 restart).
That’s it.


Post a Comment

Your email is never published nor shared. You're allow to say what you want...