Jump to content

MAMP/Apache environment vars question


Don E

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...