Click to See Complete Forum and Search --> : Where PHP looks for php.ini on Linux ?


Anon
10-24-2001, 11:08 AM
On a Linux Redhat/Apache/PHP/MySQL setup, where is php.ini looked for by PHP ?

I kept it in /usr/local/lib/php
It is also there in /usr/local/php-4.0.6/

I changed the
session.save_path = /home/...

instead of /tmp default entry.

I restarted Apache.

Still the sessions are stored in /tmp

Why ? Where is PHP lokking for php.ini file ?

Any ideas ?

Thanks,
Bijal.

Anon
10-24-2001, 04:37 PM
Have you tried /etc/php.ini? That's where I store mine.
-l0g1c

Anon
10-25-2001, 06:02 AM
I kept the php.ini in /etc/php.ini and removed from /usr/local/lib/php and from /usr/local/php-4.0.6/

Restarted the Apache.

But the still my session files are kept in /tmp instead of /home/... directory.

/home has full rights.
I even tried /tmp/Logs/folder.

php.ini setting ...

; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored.
session.save_path = /tmp/Logs

What else do I need to do to divert the sessions files to folders other than /tmp.

Thank you,
Brij.

catbaba
10-25-2001, 07:30 AM
php.ini is usually situated at /usr/local/lib/php.ini