LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Php.ini Updations Not Working (https://www.linuxquestions.org/questions/linux-newbie-8/php-ini-updations-not-working-733500/)

ajayan 06-16-2009 11:11 PM

Php.ini Updations Not Working
 
Dear All,
I have some doubt with php.ini. I am Using Fedora Core 6 O.S.In My php.ini the default value of session.gc_maxlifetime and session.cookie_lifetime is set to 0.When am listing php.ini it shows tha value Zero.But now i changed these two values in to session.gc_maxlifetime = 86400 and session.cookie_lifetime = 86400.
I have restarted httpd to activate Changes.But Still when i am checking phpinfo.php it shows session.gc_maxlifetime and session.cookie_lifetime with zero value.How can Solve this Problem.
Advanced Thanks
Ajayan

rylan76 06-17-2009 02:40 AM

Are you sure the .ini you are editing is the correct one, in the correct location?

Try this file to see where your .php .ini is located:

Code:

<?php
phpinfo();
?>

save the file in your webroot and browse to it. Search for "ini".

I had this too once, turned out I as creating the PHP .ini file in the wrong location, and my settings were thusly never appearing inside my running PHP instance after the restart.


All times are GMT -5. The time now is 03:05 AM.