[mythtv-commits] Ticket #1285: Using php as CGI causes apache to prepend "REDIRECT_" to environment variables, disabling mythweb
MythTV
mythtv at cvs.mythtv.org
Wed Feb 15 01:01:36 UTC 2006
#1285: Using php as CGI causes apache to prepend "REDIRECT_" to environment
variables, disabling mythweb
--------------------------------+-------------------------------------------
Reporter: saintdev at gmail.com | Owner: xris
Type: defect | Status: new
Priority: minor | Milestone:
Component: mythweb | Version:
Severity: medium |
--------------------------------+-------------------------------------------
If you're using PHP as a CGI with Apache, you will end up with "REDIRECT_"
prepended to you environment variables. This causes the environment
variables that mythweb uses for mysql login to become invalid:
_SERVER["db_server"] is automatically converted into
_SERVER["REDIRECT_db_server"] by Apache.
_SERVER["db_name"] ---> _SERVER["REDIRECT_db_name"]
_SERVER["db_login"] ---> _SERVER["REDIRECT_db_login"]
_SERVER["db_password"] ---> _SERVER["REDIRECT_db_password"]
This is because of the way Apache handles redirects, and it sees the php-
cgi as a redirect, so it renames the environment variables.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1285>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list