0 Replies Latest reply on Dec 27, 2012 12:27 PM by 826074


      I am attempting to host a vendor developed PHP web application in a java System Web Server (Sun Java System Web Server 7.0U5) environment. The application is dependant upon the existance of the $_SERVER['DOCUMENT_ROOT']. It appears that this variable is not present in our environment.

      I've researched the issue extensively however I cannot identify how to enable the existance of this variable.

      My environment information follow:
      java System Web Server (Sun Java System Web Server 7.0U5)
      PHP 5.2.6 (Installed using Sun's Coolstack)
      FastCGI responder line from obj.conf file:
      Service fn="responder-fastcgi" type="magnus-internal/php" app-path="/path/to/coolstack/php5/bin/php-cgi" bind-path="$(lc($urlhost))" app-env="LD_LIBRARY_PATH=/usr/apps/coolstack/php5/lib/php" app-env="DOCUMENT_ROOT=/path/to/virtualhost/documentroot"

      Can someone direct me how to make the $_SERVER['DOCUMENT_ROOT'] variable available in my environment?

      Thank you in advance.