What are PHP include_path values?

This FAQ was last modified on: Tuesday, January 16, 2018 09:31pm

There are many circumstances where a domain administrator needs to tell PHP alternative locations for include files. The typical method for doing this is to include PHP directives in .htaccess files. We have preserved this method on webHosting using FastCGI and the htscanner Pear package. The location of important PHP add-ons such as PEAR packages are also stored in a different location. The following represents a good example of a useful configuration:

php_value include_path .:/usr/share/pear:/var/www/vhosts/<your domain>/httpdocs:httpdocs/

The /usr/share/pear part tells PHP where to look for PEAR and PECL packages. The last two are for packages that you install within your httpdocs directory.