Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th January 2012, 14:10
gavimobile gavimobile is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default sessions not being saved

hey folks,
im new around here. i started to use sessions on my ispconfig 3 server. i was only able to get the sessions to save and transfer the session data by changing the permission to 777 on the /var/lib/php/session directory.
I'm sure this is not the best solution.
Could someone tell me the proper permission to set the directory to and possibly tell me the proper way to fix this issue. Also, if its something which the ispconfig3 install should have done, it might be worth our wile for the developers to fix this issue for others in the next version/update.
thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 12th January 2012, 22:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

Which distribution do you use? What's the output of
Code:
ls -la /var/lib/php/session/
?
__________________
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
  #3  
Old 15th January 2012, 09:37
gavimobile gavimobile is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your reply. heres the output

[root@server22 ~]# ls -la /var/lib/php/session/
total 556
drwxrwxrwx 2 root apache 4096 Jan 15 05:10 .
drwxr-xr-x 3 root root 4096 Nov 12 15:25 ..
-rwxrwxrwx 1 apache apache 0 Dec 12 18:27 sess_04qked8392cohfaprm9pa45do1
-rw------- 1 apache apache 13453 Jan 12 16:06 sess_0b91eb7ilm359crkkjh6vu3b4mu5 h0vb
-rwxrwxrwx 1 apache apache 14047 Dec 4 11:55 sess_0lr7jacm5ghn7nllq75nuup9h7f9 6sgo
-rwxrwxrwx 1 apache apache 8181 Dec 26 12:04 sess_0tpd0721q9chn511ja7fujvkn6
-rw------- 1 apache apache 13453 Jan 12 15:57 sess_2npqqi9v2aulep8es67g6bsgf3cc dobr
-rwxrwxrwx 1 apache apache 13750 Jan 6 18:16 sess_2ufb31rm7n0fs2j76j18eie6c9rb fh08
-rw------- 1 apache apache 13745 Jan 12 16:14 sess_31qs0m1eobfs1tg0c34ns5epdq9u chro
-rwxrwxrwx 1 apache apache 13540 Jan 2 05:58 sess_3ir9s84t6ki1mji0fg2impqkucmu bko4
-rwxrwxrwx 1 apache apache 13858 Dec 26 12:25 sess_656vgfcidd6qtac0vkvugnprhno2 cjnn
-rw------- 1 apache apache 0 Jan 15 05:10 sess_8a80hl1jo3h56t0i7j8ek7qrt4
-rwxrwxrwx 1 apache apache 19517 Jan 14 17:12 sess_8df0hbfv2vrpc854kl9utn5lah7d aupv
-rwxrwxrwx 1 apache apache 0 Nov 14 14:01 sess_92850k85sj6baue8pi3vu0k203
-rwxrwxrwx 1 apache apache 0 Nov 14 10:35 sess_99cr5igkctr5j2vcie7grrqki7
-rwxrwxrwx 1 apache apache 13750 Jan 6 18:16 sess_a9or8j3u04d8o2m274saqqpnjtfu j18r
-rw------- 1 web8 client1 0 Jan 12 04:41 sess_aik3t08htl87g3pllp8hi7blk4
-rwxrwxrwx 1 apache apache 13540 Dec 19 17:56 sess_b1goe7e33jjcom11cllt7bo1kkig elid
-rwxrwxrwx 1 apache apache 13540 Dec 19 17:56 sess_ck75ec23prugphls3qjshdhtsqnv hrjr
-rwxrwxrwx 1 apache apache 13453 Dec 19 17:33 sess_cq4c7dumd9o0vdhq6t04qtjsul9l 7ghd
-rwxrwxrwx 1 apache apache 0 Nov 14 13:47 sess_d6aueslpvitk2b9elis6u8juu7
-rw------- 1 web8 client1 0 Jan 11 22:08 sess_efgv8s49p2crs7aev2cgec8480
-rwxrwxrwx 1 apache apache 13745 Dec 27 22:40 sess_fi8kqmki1uv42ddn8f1pvtnmvda2 1g11
-rwxrwxrwx 1 apache apache 13745 Dec 27 22:40 sess_fmg85it9ihpu0sbm5imu6f9a8620 b88p
-rwxrwxrwx 1 apache apache 13453 Dec 27 22:32 sess_h11h24ndt5e9c8am5ab113ulev1o ds6j
-rwxrwxrwx 1 apache apache 0 Nov 13 13:22 sess_ht97b7a9au44f0dhqlqnrsf4a2
-rwxrwxrwx 1 apache apache 12402 Nov 14 13:53 sess_i2cigqr3i5jgif28vgejutheo7
-rwxrwxrwx 1 apache apache 13540 Jan 2 05:58 sess_ibq4hd3o3g398hvqh4qqovvcehm6 i4c9
-rwxrwxrwx 1 apache apache 0 Dec 26 12:03 sess_ii8pg6kmvs6usgjjpoh3l5oml5
-rwxrwxrwx 1 apache apache 0 Nov 14 13:48 sess_jd3s97u08l6s9bg2p4d0i51me4
-rwxrwxrwx 1 apache apache 13540 Dec 19 17:56 sess_jin9jf5i628fhffa0p0k13rnvi2d nb1i
-rwxrwxrwx 1 apache apache 0 Nov 17 18:47 sess_jqilba2acegt34bv0ij7579gh4
-rwxrwxrwx 1 apache apache 13453 Dec 27 22:32 sess_jreoi7jj9ann1kg0t5e1r2oar6el 7sl0
-rwxrwxrwx 1 apache apache 13745 Dec 19 20:30 sess_jv2lv8fvjf4cbf5dbhn2on8m2i0s sesq
-rwxrwxrwx 1 apache apache 13938 Dec 26 09:52 sess_k7k00i03rj6la5f2t8aqook60810 2jeq
-rwxrwxrwx 1 apache apache 13540 Jan 2 05:58 sess_kr1pjvpq1ps9in5b6893oek93kqv kiii
-rw------- 1 apache apache 13745 Jan 12 16:14 sess_ld8tu97n18ruoa12j9vru7or6v7h htbg
-rwxrwxrwx 1 apache apache 0 Dec 26 10:21 sess_mdt03gfs4b5o5sb7hn6hq1m8j2
-rwxrwxrwx 1 apache apache 13540 Dec 19 17:56 sess_n4bmh9gcdbqop9pft0jos1eb3hh1 4h4b
-rw------- 1 web8 client1 38 Jan 11 09:07 sess_n7hmo9tka92s362laf074ko9m1
-rw------- 1 web8 client1 0 Jan 11 16:19 sess_n7ptsdulvcm9fhf7g4cjjqeii3
-rwxrwxrwx 1 apache apache 65124 Nov 14 09:36 sess_op7dq83at4blj3hb8k4j3fjbf523 3von
-rwxrwxrwx 1 apache apache 0 Dec 26 12:08 sess_p99mqmi9lqfo3pkuj2dslig563
-rwxrwxrwx 1 apache apache 13795 Dec 27 03:32 sess_po3u9tl4csbloc2smes2onakdv9e 7i98
-rwxrwxrwx 1 apache apache 13540 Jan 2 05:58 sess_qgch39k1kcqad77ielei1lc65ji7 4lnh
-rwxrwxrwx 1 apache apache 13540 Jan 2 05:58 sess_r3u7lmr2bpp4smh4dr93mn2a13re d11q
-rwxrwxrwx 1 apache apache 0 Dec 18 10:21 sess_rv1sj6vq87im4kukthkl0ogf30
-rw------- 1 web8 client1 0 Jan 11 16:31 sess_tndgc6l5dqs8ecrkb5teh7v8j4
-rwxrwxrwx 1 apache apache 13540 Dec 19 17:56 sess_uisds4vs7m8fesv0ai48vjfd6duo v5hp
-rw------- 1 web8 client1 31 Jan 11 10:27 sess_vjopajaup00uimr6v3v9n5vmr2
Reply With Quote
  #4  
Old 15th January 2012, 12:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,173 Times in 4,055 Posts
Default

Thats ok. The folder /var/lib/php/session must have permissions so that it can be accessed by the apache user and all web users. So permission 777 is ok,otherwise the web users would not be able to write their session data.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 15th January 2012, 13:51
gavimobile gavimobile is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

any chance that ispconfig can do this automatically during the install process so newbies like me dont have to do this as an additional step?

thanks in advance!
Reply With Quote
  #6  
Old 15th January 2012, 13:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,173 Times in 4,055 Posts
Default

Which Linux distribution do you use and is this a server that yoi sinatlled yourself from DVD or is this a server image of a hosting company? The permissions of that folder should already be set correctly by the Linux distribution and I dont have to change them on any of my servers.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 15th January 2012, 15:05
gavimobile gavimobile is offline
Junior Member
 
Join Date: Jan 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

yup,
i did the install on my own following the perfect server guide using centos 5.7.
i dont know if your related to the guide in any ways, but maybe someone should add it to the guide? thanks for your help anyways! its much appreciated!
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
Need to export/backup/copy saved squirrelmail Dr.Lightning HOWTO-Related Questions 1 4th February 2011 14:49
Incremental PHP Sessions waystar Installation/Configuration 0 25th November 2010 21:45
Postfix + VDA patch (doesn't build RPM on server) VelhaChica Server Operation 5 18th October 2007 16:50
Apache cluster and php sessions stormrider HOWTO-Related Questions 4 23rd September 2006 15:47
PHP Sessions not working on one site! badben General 5 24th August 2006 17:47


All times are GMT +2. The time now is 16:15.


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