Don E Posted February 19, 2013 Share Posted February 19, 2013 Hello everyone, I was wondering if anyone would know why in MAMP when I view the phpinfo(), the PATH info under Apache Environment is different than what I specify in the Apache 'envvars' file. Apache seems to be getting the PATH info from somewhere else and I can't quite figure out where. I am using just MAMP; not the pro version. Any help is greatly appreciated. Thank you! Link to comment Share on other sites More sharing options...
boen_robot Posted February 19, 2013 Share Posted February 19, 2013 I think it's actually getting it from the OS.I haven't even heard about an "envvars" file to be honest... you could instead use "SetEnv" in the httpd.conf or .htaccess files though, if you want to use a PATH specific for Apache. Link to comment Share on other sites More sharing options...
Don E Posted February 21, 2013 Author Share Posted February 21, 2013 I thought it was getting it from the OS too but the OS environment PATH is different than what phpinfo() displays in the Apache Environment section.I looked for "SetEnv" in httpd.conf, wasn't able to find anything to do with that.. Thanks. Link to comment Share on other sites More sharing options...
boen_robot Posted February 21, 2013 Share Posted February 21, 2013 See Apache's manual page on that. Link to comment Share on other sites More sharing options...
Don E Posted February 22, 2013 Author Share Posted February 22, 2013 boen, so basically I have to insert into the httpd.conf file somewhere(example)? SetEnv SPECIAL_PATH /foo/bin Link to comment Share on other sites More sharing options...
boen_robot Posted February 23, 2013 Share Posted February 23, 2013 Yes, except that if you specify the name of an existing variable, you'll overwrite it. As per your initial example, you'll probably want "SetEnv PATH /foo/bin". Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now