Menu ▾ ▴

#2 problem with install

open-accepted
nobody
None
5
2007-06-30
2007-05-19
Anonymous
No

On newer versions of php, register_globals defaults to off. This results in one being unable to log into the FreeWERM and you just loop back to the login window.

Fixes:

1) Rewrite the code with the recommended change of $_SERVER['PHP_SELF']. Sadly, there's more to it than just a variable change as I tried that.

2) Turn register_globals on in php.ini and restart apache

3) set up an .htaccess file with the following in the FreeWERM directory:

php_value register_globals 1

and then in your apache config file, add:

<Directory /path/to/freewerm>
AllowOverride All
</Directory>

and then restart apache and all should be well.

Discussion

  • Joe Johnson

    Joe Johnson - 2007-06-30

    Updated localized_vars.inc file for newer versions of PHP

     
  • Joe Johnson

    Joe Johnson - 2007-06-30
    • status: open --> pending-accepted
     
  • Joe Johnson

    Joe Johnson - 2007-06-30

    Logged In: YES
    user_id=1586543
    Originator: NO

    Actually, I think the problem can be resolved another way. Download the localized_vars.inc file attached to this comment - the changes I made within seemed to work for me, although the $_SERVER[PHP_SELF] issue should still be done.
    File Added: localized_vars.inc

     
  • Joe Johnson

    Joe Johnson - 2007-06-30
    • status: pending-accepted --> open-accepted
     

Log in to post a comment.