Jump to content

Php - Fastcgi - $_Server['document_Root']


dmalloy

Recommended Posts

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
Share on other sites

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 by dmalloy
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.