Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    59
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Question 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:

    ServerName test.zipdandy.com
    DocumentRoot /var/www/html/test.zipdandy.com
    <Directory /var/www/html/zipdandy.com>
    Options FollowSymLinks MultiViews
    AllowOverride All
    </Directory>

  2. #2
    Regular Coder Vege's Avatar
    Join Date
    Jan 2008
    Posts
    839
    Thanks
    21
    Thanked 114 Times in 113 Posts
    Do you want to know how to fix your current problem or how it's generally recommended to do?


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •