Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-26-2016, 10:30 PM #1
- Join Date
- Mar 2011
- Thanked 0 Times in 0 Posts
Two Sites on one Apache Server Different Include_Path
I am running both a production and a test site on the same Apache server. The scripts in the site include files, in particular class definitions, from a directory which is not under the document_root. However if I am testing out new implementations of these classes I cannot dump them into the same directory that the production site is using. So I am trying to override the include_path in the test site, unsuccessfully.
The master php.ini defines the include_path as ".:/usr/share/pear:/usr/share/php:/var/www/html/classes"
The .htaccess file in the document_root of the test site specifies:
php_value include_path ".:/usr/share/pear:/usr/share/php:/var/www/html/testclasses"
But when I run phpinfo.php in the test site it does not show the include_path as overridden.
I also tried overriding the include_path using the php.ini file in the document_root of the test site, but that also was ineffective and has the known deficiency that the override applies only to the directory containing the php.ini, where the .htaccess definition applies to all of the children.
The Apache host definition includes:
Options FollowSymLinks MultiViews
10-27-2016, 11:09 AM #2
Do you want to know how to fix your current problem or how it's generally recommended to do?