Show Environment (PHP Runtime)

Test Cases

1. How executing on server?
As CGI[1]   As Module
  Yes
check[2]    
* Not: if not runing script but downloading file [1] or check [2] indicates all good, DO check Apache configuration!
May need to uncomment (in httpd.conf):
LoadModule cgi_module libexec/apache2/mod_cgi.so
2. How called from browser?
a) URL, GET show_env.php?variant=get-in-url#xx
b) Form, GET
c) Form, POST

This particular execution: ...

Variable Content  
$_SERVER 74 items in array more  
  ['REQUEST_METHOD'] GET  
  ['HTTP_REFERER']  
$_GET 0 items in array  
$_POST 0 items in array  
$myArgsArr 0 items in array  
$_FILES 0 items in array  
$_REQUEST 0 items in array  
$_SESSION 0 items in array  
$_ENV 69 items in array more  

:

Array
(
    [path] => 
)

Environment - Details

$_SERVER

$_SERVER: Array
(
    [REDIRECT_UNIQUE_ID] => WefPRErQECcAAE31Y1AAAAAO
    [REDIRECT_SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [REDIRECT_SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [REDIRECT_DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID] => 7
    [REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET] => /run/ui-fstatd.suexec.socket
    [REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET] => /homepages/sclientMF/http.sock.bin
    [REDIRECT_DBENTRY_HOST] => comgt.com
    [REDIRECT_DBENTRY_VALUE] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [REDIRECT_DBENTRY_DOCROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REDIRECT_DBENTRY_HASH] => d0000
    [REDIRECT_DBENTRY__CPU] => 6
    [REDIRECT_DBENTRY__MEM] => 10240
    [REDIRECT_DBENTRY__CGI] => 346
    [REDIRECT_DBENTRY__NPROC] => 12
    [REDIRECT_DBENTRY__TAID] => 36575976
    [REDIRECT_DBENTRY__LANG] => 3
    [REDIRECT_DBENTRY__PARKING] => 1
    [REDIRECT_DBENTRY__STAT] => 1
    [REDIRECT_DBENTRY__CHROOT] => 7
    [REDIRECT_DBENTRY] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [REDIRECT_HANDLER] => x-mapp-php5.4
    [REDIRECT_STATUS] => 200
    [UNIQUE_ID] => WefPRErQECcAAE31Y1AAAAAO
    [SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [UI_SUEXEC_DEFAULT_CHROOT_ID] => 7
    [DBENTRY_HOST] => comgt.com
    [DBENTRY_VALUE] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [DBENTRY_DOCROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [DBENTRY_HASH] => d0000
    [DBENTRY__CPU] => 6
    [DBENTRY__MEM] => 10240
    [DBENTRY__CGI] => 346
    [DBENTRY__NPROC] => 12
    [DBENTRY__TAID] => 36575976
    [DBENTRY__LANG] => 3
    [DBENTRY__PARKING] => 1
    [DBENTRY__STAT] => 1
    [DBENTRY__CHROOT] => 7
    [DBENTRY] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [HTTP_HOST] => comgt.com
    [HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
    [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [PATH] => /bin:/usr/bin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => comgt.com
    [SERVER_ADDR] => 74.208.33.38
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 54.158.238.108
    [DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => /system-bin/
    [CONTEXT_DOCUMENT_ROOT] => /kunden/usr/lib/cgi-bin/
    [SERVER_ADMIN] => webmaster@comgt.com
    [SCRIPT_FILENAME] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
    [REMOTE_PORT] => 35864
    [REDIRECT_URL] => /lib/cgi/php-as-module/show_env.php
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.0
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_NAME] => /lib/cgi/php-as-module/show_env.php
    [STATUS] => 200
    [ORIG_PATH_INFO] => /lib/cgi/php-as-module/show_env.php
    [ORIG_PATH_TRANSLATED] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
    [PHP_SELF] => /lib/cgi/php-as-module/show_env.php
    [REQUEST_TIME_FLOAT] => 1508364100.7298
    [REQUEST_TIME] => 1508364100
    [argv] => Array
        (
        )

    [argc] => 0
)

$_GET

$_GET: Array
(
)

$_POST

$_POST: Array
(
)

$myArgsArr

$myArgsArr: Array
(
)

$_FILES

$_FILES: Array
(
)

$_REQUEST

$_REQUEST: Array
(
)

$_SESSION

$_SESSION: 

$_ENV

$_ENV: Array
(
    [REDIRECT_UNIQUE_ID] => WefPRErQECcAAE31Y1AAAAAO
    [REDIRECT_SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [REDIRECT_SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [REDIRECT_DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID] => 7
    [REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET] => /run/ui-fstatd.suexec.socket
    [REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET] => /homepages/sclientMF/http.sock.bin
    [REDIRECT_DBENTRY_HOST] => comgt.com
    [REDIRECT_DBENTRY_VALUE] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [REDIRECT_DBENTRY_DOCROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REDIRECT_DBENTRY_HASH] => d0000
    [REDIRECT_DBENTRY__CPU] => 6
    [REDIRECT_DBENTRY__MEM] => 10240
    [REDIRECT_DBENTRY__CGI] => 346
    [REDIRECT_DBENTRY__NPROC] => 12
    [REDIRECT_DBENTRY__TAID] => 36575976
    [REDIRECT_DBENTRY__LANG] => 3
    [REDIRECT_DBENTRY__PARKING] => 1
    [REDIRECT_DBENTRY__STAT] => 1
    [REDIRECT_DBENTRY__CHROOT] => 7
    [REDIRECT_DBENTRY] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [REDIRECT_HANDLER] => x-mapp-php5.4
    [REDIRECT_STATUS] => 200
    [UNIQUE_ID] => WefPRErQECcAAE31Y1AAAAAO
    [SCRIPT_URL] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_URI] => http://comgt.com/lib/cgi/php-as-module/show_env.php
    [UI_SUEXEC_DEFAULT_CHROOT_ID] => 7
    [DBENTRY_HOST] => comgt.com
    [DBENTRY_VALUE] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [DBENTRY_DOCROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [DBENTRY_HASH] => d0000
    [DBENTRY__CPU] => 6
    [DBENTRY__MEM] => 10240
    [DBENTRY__CGI] => 346
    [DBENTRY__NPROC] => 12
    [DBENTRY__TAID] => 36575976
    [DBENTRY__LANG] => 3
    [DBENTRY__PARKING] => 1
    [DBENTRY__STAT] => 1
    [DBENTRY__CHROOT] => 7
    [DBENTRY] => /kunden/homepages/41/d105562370/htdocs/comgt-com:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 36575976 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 7
    [HTTP_HOST] => comgt.com
    [HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
    [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [PATH] => /bin:/usr/bin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => comgt.com
    [SERVER_ADDR] => 74.208.33.38
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 54.158.238.108
    [DOCUMENT_ROOT] => /kunden/homepages/41/d105562370/htdocs/comgt-com
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => /system-bin/
    [CONTEXT_DOCUMENT_ROOT] => /kunden/usr/lib/cgi-bin/
    [SERVER_ADMIN] => webmaster@comgt.com
    [SCRIPT_FILENAME] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
    [REMOTE_PORT] => 35864
    [REDIRECT_URL] => /lib/cgi/php-as-module/show_env.php
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.0
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /lib/cgi/php-as-module/show_env.php
    [SCRIPT_NAME] => /lib/cgi/php-as-module/show_env.php
    [STATUS] => 200
    [ORIG_PATH_INFO] => /lib/cgi/php-as-module/show_env.php
    [ORIG_PATH_TRANSLATED] => /kunden/homepages/41/d105562370/htdocs/comgt-com/lib/cgi/php-as-module/show_env.php
)

phpinfo()

Page generated in 0.0039 seconds (3900 microseconds)