Enviroment Vars not set when using Control Panel

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Enviroment Vars not set when using Control Panel

Postby w2pc » 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)
w2pc
 
Posts: 4
Joined: 11. November 2010 03:59

Re: Enviroment Vars not set when using Control Panel

Postby Altrea » 01. August 2013 05:56

In which XAMPP version and which control panel version did you get this issue?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6946
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64

Re: Enviroment Vars not set when using Control Panel

Postby w2pc » 02. August 2013 03:53

Latest version and from the looks the previous version before that.. (windows 7)
CP 3.2.1 is what i have now but think the same issue on the version before that that had php 5.4
w2pc
 
Posts: 4
Joined: 11. November 2010 03:59

Re: Enviroment Vars not set when using Control Panel

Postby Altrea » 02. August 2013 06:46

we currently have no single latest version.
So please take a look into your \xampp\readme_en.txt for the correct XAMPP version number.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6946
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 42 guests