Alan - Vox
07-31-2002, 06:36 PM
Hello,
I enabled suexec on my servers last week. Ever since some of the enviromental variables used by php scripts and cgi scripts have stopped working. Have a look at http://66.54.138.67/mail.php
Does any one know how to resolve this?
Ahmad
07-31-2002, 06:44 PM
What ENV's are you missing?
Alan - Vox
07-31-2002, 07:03 PM
Have a look at SCRIPT_URI, and HTTP_REFERER on the phpinfo page. They are not correcy.
_SERVER["HTTP_REFERER"] is correct. I think you should not worry about _ENV variables.
Alan - Vox
07-31-2002, 08:00 PM
The problem is scripts use that, so i need to worry about it :(
cperciva
07-31-2002, 08:31 PM
If you need other environment variables, you can add them into suexec & recompile.
Alan - Vox
07-31-2002, 08:32 PM
Ok, so the problem is they arent in suexec when i rebuilt apache?
cperciva
07-31-2002, 08:44 PM
Somewhere around line 128 in suexec.c you'll find char *safe_env_lst[] defined; any environment variables not in that list will not be passed through to the cgi script.
Add the necessary entries, recompile, reinstall.
priyadi
08-01-2002, 05:45 AM
Originally posted by cperciva
If you need other environment variables, you can add them into suexec & recompile.
Correct me if I'm wrong, but PHP with Apache module doesn't have anything to do with suexec. So the problem must be related to something else. Besides SCRIPT_URI and HTTP_REFERER are already passed by suexec by default.
DuncanMcLord
08-01-2002, 01:15 PM
I would say the same as priyadi:
the php scripts shouldn't be affected.
What is the problem/error you get, with the env.-vars?
Is it limited to php and/or cgi?