Koozali.org: home of the SME Server

How do I disable session.use_trans_sid when using PHP5 contib

Offline F22-Raptor

  • **
  • 31
  • +0/-0
I'm using the PHP5 contib and I need to disable session.use_trans_sid
How do I do it? Do I just edit /etc/php.ini?
There is another php.ini under:
/etc/php5/php.ini

There is a directory under
/etc/e-smith/templates/etc/php5/php.ini
with a bunch of modules (e.g. 8ModuleSettings17MSSQL).

When I open /etc/php.ini or /etc/php5/php.ini the header says:
;------------------------------------------------------------
; DO NOT MODIFY THIS FILE! It is updated automatically by the
; SME Server software. Instead, modify the source template in
; an /etc/e-smith/templates-custom directory. For more
; information, see http://www.e-smith.org/custom/
;
; copyright (C) 2002 Mitel Networks Corporation
;------------------------------------------------------------

but I have no files under /etc/e-smith/templates-custom.

Thanks for your help.

D.




Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How do I disable session.use_trans_sid when using PHP5 contib
« Reply #1 on: March 15, 2009, 09:37:55 PM »
F22-raptor

I think you should read the dev manual to understand how SME works..
btw, searching the forums for "template" or "fragment" will give you thousands examples to understand (in a practical manner) how to modify your SME in the SME way..

HTH
Ciao
Stefano

Offline F22-Raptor

  • **
  • 31
  • +0/-0
Re: How do I disable session.use_trans_sid when using PHP5 contib
« Reply #2 on: March 15, 2009, 10:19:30 PM »
Hey Stefano, easier said than done, there is so much to digest.
I've looked up the forums and documentation but I still don't feel comfortable that I understand what needs to be done.

Here's what I think I should be doing and maybe someone can correct me if I'm wrong:

1. under /etc/e-smith/templates-custom create a subdirectories /etc/php.ini
2. under the new subdirectory create a file named someting like 10sid
3. add the following line of text to the file: session.use_trans_sid = 0
4. at the shell type expand-template /etc/php.ini


Is this what I'm supposed to do? How do I determine the filename (10sid) is that something I pull out of a hat?
Will this update my PHP5 ini file which appears to be under /etc/php5/php.ini?

D.

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: How do I disable session.use_trans_sid when using PHP5 contib
« Reply #3 on: March 15, 2009, 11:58:22 PM »
Copy (or create) the appropriate template fragment from:

Code: [Select]
/etc/e-smith/templates/etc/php5/php.ini/

to (making directories as needed)                 
***BTW: use mkdir -p to make the required directories in one command***

Code: [Select]
/etc/e-smith/templates-custom/etc/php5/php.ini/

Then modify the fragment as needed.

After you are done there, run:
Code: [Select]
expand-template /etc/php5/php.ini
as the root user.

Craig
« Last Edit: March 16, 2009, 12:00:41 AM by Craig Cabrey »

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: How do I disable session.use_trans_sid when using PHP5 contib
« Reply #4 on: March 16, 2009, 12:02:41 AM »
You want to copy this fragment:
Code: [Select]
80ModuleSettings16Session

Craig

Offline F22-Raptor

  • **
  • 31
  • +0/-0
Re: How do I disable session.use_trans_sid when using PHP5 contib
« Reply #5 on: March 16, 2009, 11:38:45 PM »
Craig, that did it TAHNK YOU.
Boy, was I off the mark, I would've never figured out that I was supposed to use /etc/e-smith/templates/etc/php5/php.ini/ not to mention picking the right file 80ModuleSettings16Session


Thanks again.