Enviroment Vars not set when using Control Panel
Posted: 31. July 2013 19:16
When you start apache from the control panel the environment variables are not being set properly.
When you start the CMD from the control panel the environment variable ARE set properly.
This is happening when XAMPP is ran as portable. Expected results: When I start apache environment variables should be set so they are populated to php properly
How to test..
From CMD in control panel
user@LAPTOP x:\Code\
# php -r "echo sys_get_temp_dir();"
x:\xampp\tmp
user@LAPTOP x:\Code\
#
From phpinfo() ran inside webapp or from the /xampp directory in browser.
under core heading :: sys_temp_dir no value
This is the same with trying to use other environment variables when compaired to phpinfo() ran from control panel cli to phpinfo() ran in web browser (apache started in control panel)
When you start the CMD from the control panel the environment variable ARE set properly.
This is happening when XAMPP is ran as portable. Expected results: When I start apache environment variables should be set so they are populated to php properly
How to test..
From CMD in control panel
user@LAPTOP x:\Code\
# php -r "echo sys_get_temp_dir();"
x:\xampp\tmp
user@LAPTOP x:\Code\
#
From phpinfo() ran inside webapp or from the /xampp directory in browser.
under core heading :: sys_temp_dir no value
This is the same with trying to use other environment variables when compaired to phpinfo() ran from control panel cli to phpinfo() ran in web browser (apache started in control panel)