0

How can i configure environmental variables that are passed to apache (xampp on windows 7) and the scripts? Is there a way to set them up in the httpd.conf?

2 Usecases:

  • extending the PATH variable to be able to run the cgi-programm (dlls dependencies)
  • setting some environmental variables that the programm does need during runtime

I do not want to globally set these variables

(moved to: https://stackoverflow.com/questions/42064289/apache-path-environment-variable)

  • XAMPP is not topical here. Windows 7 is not a server OS and thus falls outside our scope too. – user35787 Feb 6 '17 at 8:45
  • @istheEnglishway but there are tags for both of them and it is server related - so i do not understand your points. Sure it is not for "production" use and not meant to be online reachable - but a simple internal server based tool. – vlad_tepesch Feb 6 '17 at 8:54
  • meta.serverfault.com/search?q=xampp – user35787 Feb 6 '17 at 8:59
  • serverfault.com/tour – user35787 Feb 6 '17 at 9:00
  • 1
    okay - thank you then i will post the question on SO – vlad_tepesch Feb 6 '17 at 9:24
2

The mod_env Apache module gives you the PassEnv and SetEnv directives that enables you to set up the environment per your needs.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.