#5505 - fixup_bad_php_env_vars may give wrong DOCUMENT_ROOT for some web hosts

  • By
  • Added
  • 10 views
Identifier #5505
Issue type Minor issue (breaks specific functionality)
Title fixup_bad_php_env_vars may give wrong DOCUMENT_ROOT for some web hosts
Status Open
Handling member Chris Graham
Addon core
Description fixup_bad_php_env_vars may prematurely stop piecing together the correct DOCUMENT_ROOT on some web hosts, such as those running Plesk.

Specifically, in the indicated / highlighted code of global2.php, this can prematurely stop building DOCUMENT_ROOT. Therefore, a website hosted in Plesk for example might have a path of /var/www/vhosts/domain/subdomain . But DOCUMENT_ROOT ends up getting "fixed" in error to /var/www.

Is this code block necessary? Simply disabling it caused things to work correctly on the Plesk site. I'm not sure if it would break other sites.
Steps to reproduce

Additional information This issue also exists in v11.
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated