dmalloy Posted December 27, 2012 Share Posted December 27, 2012 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 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. Quote Link to comment Share on other sites More sharing options...
Christian F. Posted December 27, 2012 Share Posted December 27, 2012 What's the output of print_r ($_SERVER)? you should be able to find something equivalent in there. Quote Link to comment Share on other sites More sharing options...
dmalloy Posted December 27, 2012 Author Share Posted December 27, 2012 (edited) Christian, Thank you for the reply. The variables present in the output that you requested appear at the end of this post. Do you know why $_SERVER['DOCUMENT_ROOT'] is unavailable in my environment and how I might enable it? [LD_LIBRARY_PATH] [FCGI_ROLE] [HTTP_ACCEPT] [HTTP_ACCEPT_LANGUAGE] [HTTP_USER_AGENT] [HTTP_ACCEPT_ENCODING] [HTTP_HOST] [HTTP_CONNECTION] [PATH] [TZ] [sERVER_SOFTWARE] [sERVER_PORT] [sERVER_NAME] [sERVER_URL] [REMOTE_HOST] [REMOTE_ADDR] [HTTPS] [GATEWAY_INTERFACE] [sERVER_PROTOCOL] [REQUEST_METHOD] [REQUEST_URI] [sCRIPT_NAME] [sCRIPT_FILENAME] [PATH_TRANSLATED] [sERVER_HOSTNAME] [sERVER_ADDR] [php_SELF] [REQUEST_TIME] Edited December 27, 2012 by dmalloy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.