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. Link to comment https://forums.phpfreaks.com/topic/272412-php-fastcgi-_serverdocument_root/ 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. Link to comment https://forums.phpfreaks.com/topic/272412-php-fastcgi-_serverdocument_root/#findComment-1401567 Share on other sites More sharing options...
dmalloy Posted December 27, 2012 Author Share Posted December 27, 2012 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] Link to comment https://forums.phpfreaks.com/topic/272412-php-fastcgi-_serverdocument_root/#findComment-1401597 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.