sessions not being saved

Discussion in 'General' started by gavimobile, Jan 11, 2012.

  1. gavimobile

    gavimobile New Member

    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.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Which distribution do you use? What's the output of
    Code:
    ls -la /var/lib/php/session/
    ?
     
  3. gavimobile

    gavimobile New Member

    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
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  5. gavimobile

    gavimobile New Member

    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!
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  7. gavimobile

    gavimobile New Member

    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!
     

Share This Page