control php value in .htaccess

Discussion in 'Apache Migration/Compatibility' started by jackc, Oct 13, 2009.

  1. jackc

    jackc New Member

    when we have apache, mod_php, we used to be able to control php values like register_globals use .htaccess, makes it very handy for hosting users, now after switching to litespeed, this no longer works, is there a way to make it work? some users need to change the values before their application require to do so.
  2. mistwang

    mistwang LiteSpeed Staff

    It should work unless you turn off .htaccess. That's one main advantage that litespeed PHP solution over others like suphp or fastcgi PHP.
  3. jackc

    jackc New Member

    not sure why doesn't seem to work, tried
    php_value register_globals on
    in .htaccess doesn't work, but other stuff like redirect works.
  4. anewday

    anewday Moderator

    There is a setting in php.ini that allows others to override settings with htaccess. I don't remember it off the top of my head.
  5. jackc

    jackc New Member

    i'm using the same php.ini from my apache configuration, was able to control php values when using apache, but after switching to litespeed, can't do that anymore, is there a setting in litespeed I missed?
  6. anewday

    anewday Moderator

    It's in Server Config > General

    HT Access
    Allow Override

    Access File Name
    .htaccess
  7. jackc

    jackc New Member

    it's already like that in my server config.
    .htaccess is working, it's just can't change the php values using .htaccess
  8. mistwang

    mistwang LiteSpeed Staff

    Which control panel are you using?
    Have you checked a phpinfo() page?
  9. jackc

    jackc New Member

    directadmin
    yah i checked phpinfo() and the php value didn't change.
  10. jackc

    jackc New Member

    actually, i got it working now.
    it seems eaccelerator was caching the phpinfo page makes the values don't change. :(
    my bad
    thanks for the help.

Share This Page