Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th November 2007, 05:12
Cloud Cloud is offline
Junior Member
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP session created with 000 mod

Hi all,

For several days, I get all these with my server that run Debian Etch, MySQL 5.0.32, PHP 5.2.0, Apache 2.2.3
- All my application using session module give an error "Could not verify session" when try to login through the login page (it was ok before)
- I checked the session files created when user login and their mod is 000
- Most of the session file size is 0 (nothing inside)
- I tried to restart Apache but it doesn't work, system restart can solve the problem but it happens again after a few weeks.

Have you ever got these kinds of errors before?

All your ideas/assistant will be much appreciated.

Thanks in advanced.
Reply With Quote
Sponsored Links
  #2  
Old 10th November 2007, 06:12
Cloud Cloud is offline
Junior Member
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One more thing, the unused session files is not deleted automatically
I've got a very long list of session files even thought they're not used anymore
That cause some application can't login (for example phpmyadmin )
Reply With Quote
  #3  
Old 11th November 2007, 13:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Where are the session files stored? Is it /tmp? What's the output of
Code:
ls -la /tmp
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 12th November 2007, 02:56
Cloud Cloud is offline
Junior Member
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I put all the session file in /var/php_session/ (manually created)
Before it was in /var/lib/php5/session/ (by default) but after got this pb, I tried to change the location

Here is some result of the following command
Code:
myserver:~# ls -la /var/php_session |more
total 760
drwxrwxrwx  2 root     root     405504 2007-11-12 04:37 .
drwxrwxrwx 19 root     root       4096 2007-11-03 13:29 ..
-rw-------  1 www-data www-data      0 2007-11-11 13:43 sess_002ea94d046e2e5f043c5b5498a36c20
-rw-------  1 www-data www-data      0 2007-11-11 09:29 sess_003606475e7e47b18a61774e95db69ec
-rw-------  1 www-data www-data      0 2007-11-10 16:55 sess_00360a506f026c14cf6bd3b7e9f58077
-rw-------  1 www-data www-data      0 2007-11-11 17:01 sess_0048c203f90871f501bf4191f80a7534
As you can see in the result, almost the session created is zero size

And this is the error I got with phpmyadmin when trying to access it
Code:
Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time.
Even restarting the server, it doesn't solve this pb with phpmyadmin

Do you have any idea?

Last edited by Cloud; 12th November 2007 at 03:07.
Reply With Quote
  #5  
Old 16th November 2007, 09:50
Cloud Cloud is offline
Junior Member
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi all,

The problem was solved, in fact it was wrong of umask in /root/.bashrc

Regards
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Occasional high load on the server. kanour General 5 21st November 2006 11:27
Please help me with this issue!! jarrell General 41 7th September 2006 10:18
apache2-default nok Installation/Configuration 17 25th February 2006 12:22
No-ip configuration alex916 Installation/Configuration 15 9th December 2005 23:17


All times are GMT +2. The time now is 21:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.