How to set a cmd-line Environment Variable using services
Posted: 22. March 2017 16:37
I'm using XAMPP 7.1.1 on Windows 8.1 Pro. I am using the Xampp Control Panel and starting Apache and MySql as services. I want to set an environment variable, like this:
...so that I can reference it in my .htaccess file, like this:
What file do I edit to add this environment variable, and how do I edit it?
Many thanks!
[EDIT by Altrea: moved to the english section of this board]
- Code: Select all
httpd.exe -D MyEnvironmentVar
...so that I can reference it in my .htaccess file, like this:
- Code: Select all
<IfDefine MyEnvironmentVar>
...
</IfDefine>
What file do I edit to add this environment variable, and how do I edit it?
Many thanks!
[EDIT by Altrea: moved to the english section of this board]