Jump to content

MAMP/Apache environment vars question


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 post
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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...