Opened 14 years ago

Closed 14 years ago

#1285 closed defect (fixed)

Using php as CGI causes apache to prepend "REDIRECT_" to environment variables, disabling mythweb

Reported by: saintdev@… Owned by: xris
Priority: minor Milestone: unknown
Component: mythweb Version:
Severity: medium Keywords:
Cc: Ticket locked: no

Description

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:

_SERVERdb_server? is automatically converted into _SERVERREDIRECT_db_server? by Apache.

_SERVERdb_name? ---> _SERVERREDIRECT_db_name? _SERVERdb_login? ---> _SERVERREDIRECT_db_login? _SERVERdb_password? ---> _SERVERREDIRECT_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.

Change History (1)

comment:1 Changed 14 years ago by xris

Resolution: fixed
Status: newclosed

(In [9127]) Workaround that should fix #1285

Note: See TracTickets for help on using tickets.