CMiksche / dbd-modules

Automatically exported from code.google.com/p/dbd-modules
0 stars 0 forks source link

PHP server variable 'document_root' are not set #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install php 5.4.4
2. Set up virtual host to pull documentroot from mysql 5.5.31
3. Create php file and echo phpinfo()
4. Load the created php file in browser.

What is the expected output? What do you see instead?
$_SERVER['DOCUMENT_ROOT'] showing as "/var/www/"
Should be the document root pulled from the database

What version of the product are you using? On what operating system?
Running on debian wheezy with apache 2.2.22 (32 bit prefork)
DBD Modules version 1.0.6

Please provide any additional information below.
Apache2 pulls the document root and serves the correct files from the correct 
location but PHP server variables are not set.

Original issue reported on code.google.com by chris.a....@gmail.com on 30 Sep 2013 at 2:03

GoogleCodeExporter commented 9 years ago
Please see the mod_vhost_dbd Wiki documentation ( http://goo.gl/4A2lDG ) , 
especially the part at the bottom of the page, starting with:
   "The httpd server variable document_root is not changed by mod_vhost_dbd".

It is *not* expected that SERVER['DOCUMENT_ROOT'] will be the value from the 
database in PHP.  It is expected to be the original value of the directory path 
set in the httpd configuration file.

Original comment by Thomas.D...@gmail.com on 1 Oct 2013 at 12:43