Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In my phpinfo(), in the section Apache Environment, I want to change the value of the variable PATH. This is possible? I tried SetEnv PATH /mypath, but it does not work. How do I change the PATH variable environment?

share|improve this question

1 Answer 1

I'm not personally familiar, but after having a look at this answer to a question over at Stackoverflow, it would seem that the variable you are trying to change isn't actually "set" there.

The author of the answer points out

The variable is accessible in PHP using $_SERVER['PATH_INFO'].

Take a look there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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