Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: F22-Raptor on March 15, 2009, 09:29:18 PM
-
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.
-
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
-
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.
-
Copy (or create) the appropriate template fragment from:
/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***
/etc/e-smith/templates-custom/etc/php5/php.ini/
Then modify the fragment as needed.
After you are done there, run:
expand-template /etc/php5/php.ini
as the root user.
Craig
-
You want to copy this fragment:
80ModuleSettings16Session
Craig
-
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.