LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > control php value in .htaccess

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2009, 01:43 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
Default control php value in .htaccess

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.
Reply With Quote
  #2  
Old 10-13-2009, 03:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It should work unless you turn off .htaccess. That's one main advantage that litespeed PHP solution over others like suphp or fastcgi PHP.
Reply With Quote
  #3  
Old 10-13-2009, 03:46 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
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.
Reply With Quote
  #4  
Old 10-13-2009, 03:49 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
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.
Reply With Quote
  #5  
Old 10-13-2009, 03:52 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
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?
Reply With Quote
  #6  
Old 10-13-2009, 04:04 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
It's in Server Config > General

HT Access
Allow Override

Access File Name
.htaccess
Reply With Quote
  #7  
Old 10-13-2009, 04:08 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
it's already like that in my server config.
.htaccess is working, it's just can't change the php values using .htaccess
Reply With Quote
  #8  
Old 10-13-2009, 04:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Which control panel are you using?
Have you checked a phpinfo() page?
Reply With Quote
  #9  
Old 10-13-2009, 04:18 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
directadmin
yah i checked phpinfo() and the php value didn't change.
Reply With Quote
  #10  
Old 10-13-2009, 04:22 PM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:27 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.