LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2009, 11:11 PM   #1
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Rep: Reputation: 16
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
 
Old 06-17-2009, 02:40 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,498

Rep: Reputation: 90
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
memory_limit in php.ini not working yang_wayne Linux - Newbie 1 01-30-2009 05:21 AM
PHP won't recognize my Configuration File (php.ini) path kriezo Programming 4 02-14-2008 02:31 AM
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
Upgraded PHP from 4.3.4 to 4.3.10 and now it won't read php.ini gregmcavoy Linux - Software 11 01-22-2005 12:16 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration