php session problems

Discussion in 'Installation/Configuration' started by hans2512, Mar 23, 2007.

  1. hans2512

    hans2512 New Member

    Hi guys can someone tell me why the session path an website is linked to
    var\lib\php4

    in stead of var\web\web_id\phptmp

    and how this can be corrected ?

    I used the Perfect debian setup, did no custom changes


    thnaks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you use php as mod_php or suphp? Do you have safemode enabled? Which session save path is in your php.ini?
     
  3. hans2512

    hans2512 New Member

    i use mod_php, php safemode is disabeld.

    there is no path set. it uses var\lib\php4

    these are the ini file of php on mij system


    /etc/php4/cli/php.ini
    ;session.save_path = /var/lib/php4


    /etc/php4/apache2/php.ini
    ;session.save_path = /var/lib/php4

    /root/ispconfig/php/php.ini
    session.save_path = /tmp
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please edit the file /etc/php4/apache2/php.ini and change the line:

    ;session.save_path = /var/lib/php4

    to:

    session.save_path = /tmp

    or enable safemode in ISPConfig for your sites.
     
  5. hans2512

    hans2512 New Member

    Oke this is an option

    But can you tell me why the website do not use there own phptmp ?

    and if I want to how do i set this up per website
     
  6. falko

    falko Super Moderator ISPConfig Developer

    This is enabled only if you enable PHP Safe Mode for a web site.

    Just enable PHP Safe Mode for a web site - ISPConfig then does the rest.
     

Share This Page