Red Hat Bugzilla – Bug 1249279
There should be an option to change the DocumentRoot in PHP catridge
Last modified: 2017-05-31 14:22:11 EDT
Description of problem: Changing the DocumentRoot is really messy with the current system, and needs to be done each time the server restarts, or even php restarts. I could get the same by doing something like
This should be made more simple, and the change made persistent. How about having an option for that in the management console, or a permanent environment variable which never gets reset.
Version-Release number of selected component (if applicable):
How reproducible:Try changing the documentroot of php from app-root/repo/ to app-root/repo/newfolder/
Steps to Reproduce:
1.Create a PHP catridge
2.Create a new folder in app-root/repo/ and try to make it the DocumentRoot
3.Restart PHP/ server.
There should be an option to permanently change the Document Root
This is the existing environment variable that you can modify to change the php document root --> OPENSHIFT_PHP_DOCUMENT_ROOT
I tried setting it using export OPENSHIFT_PHP_DOCUMENT_ROOT=/newlocation/ but it never seems to work. I use php 5.3 catridge, and is trying to install phabricator. Phab needs the document root to be app-root/repo/phabricator/webroot/
QE still got same iusse as Tony.
This env OPENSHIFT_PHP_DOCUMENT_ROOT doesn't work after restart cartridge.
[php53-xiuwang.dev.rhcloud.com repo]\> export OPENSHIFT_PHP_DOCUMENT_ROOT=/var/lib/openshift/55d41ac7ebe45533ec00039b/app-root/repo/test
[php53-xiuwang.dev.rhcloud.com repo]\> env | grep OPENSHIFT_PHP_DOCUMENT_ROOT
[php53-xiuwang.dev.rhcloud.com repo]\> gear restart
Cart to restart?
Restarting PHP 5.3 cartridge (Apache+mod_php)
Application directory "/" selected as DocumentRoot
Restart app.Check this env again.
[php53-xiuwang.dev.rhcloud.com 55d41ac7ebe45533ec00039b]\> env | grep OPENSHIFT_PHP_DOCUMENT_ROOT
php-5.4 cartridge is same as php-5.3
We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause.