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.

    Have you tried /etc/php.ini? That's where I store mine.
    -l0g1c

      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.

        php.ini is usually situated at /usr/local/lib/php.ini

          Write a Reply...