session_start() problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MZ

    session_start() problem

    Hello!

    I have registered my old page on new server, but this page doesn`t work on
    this new server and I don`t know why.

    I get such error message:

    Warning: session_start() [function.sessio n-start]: SAFE MODE Restriction in
    effect. The script whose uid is 1113 is not allowed to access /var/tmp owned
    by uid 0 in /home/ZZZZZ/domains/YYYYYYY/public_html/MZ_CRM/config.inc.php on
    line 2

    Fatal error: session_start() [<a
    href='function. session-start'>function .session-start</a>]: Failed to
    initialize storage module: files (path: ) in
    /home/ZZZZZZZZ/domains/YYYYYYY/public_html/MZ_CRM/config.inc.php on line 2


    Could you help me what it is? How to fix this problem? My page worked well
    on the previous server and I have never gotten such error?
    Is it a configure problem on the server? Is it a problem which should be
    fixed up by administrator?

    Thank you in advance for help
    M.


  • Piotr

    #2
    Re: session_start() problem

    Hello

    when you start a session, php creates a file where sesion variables are
    saved. It seems that php has no permision to do that. Ask your system
    administrator to fix it.

    It might be related to session.save_pa th directive in php.ini.
    If this one is set to directory without persmisions to write, then there
    is a problem.

    The point is, you cant fix it, ask your admin to do it, he should know
    what to do :)

    Regards,
    Piotr

    MZ napisa³(a):
    Hello!
    >
    I have registered my old page on new server, but this page doesn`t work on
    this new server and I don`t know why.
    >
    I get such error message:
    >
    Warning: session_start() [function.sessio n-start]: SAFE MODE Restriction in
    effect. The script whose uid is 1113 is not allowed to access /var/tmp owned
    by uid 0 in /home/ZZZZZ/domains/YYYYYYY/public_html/MZ_CRM/config.inc.php on
    line 2
    >

    Comment

    • Marcin Zmys³owski

      #3
      Re: session_start() problem

      U¿ytkownik "Piotr" <pvm@poczta.one t.plnapisa³ w wiadomo¶ci
      news:f1kbe5$d6a $1@nemesis.news .tpi.pl...
      Hello
      >
      when you start a session, php creates a file where sesion variables are
      saved. It seems that php has no permision to do that. Ask your system
      administrator to fix it.
      >
      It might be related to session.save_pa th directive in php.ini.
      If this one is set to directory without persmisions to write, then there
      is a problem.
      >
      The point is, you cant fix it, ask your admin to do it, he should know
      what to do :)
      >
      Regards,
      Piotr
      >
      MZ napisa³(a):
      >Hello!
      >>
      >I have registered my old page on new server, but this page doesn`t work
      >on
      >this new server and I don`t know why.
      >>
      >I get such error message:
      >>
      >Warning: session_start() [function.sessio n-start]: SAFE MODE Restriction
      >in
      >effect. The script whose uid is 1113 is not allowed to access /var/tmp
      >owned
      >by uid 0 in /home/ZZZZZ/domains/YYYYYYY/public_html/MZ_CRM/config.inc.php
      >on
      >line 2
      >>
      >


      Thank you a lot my Polish friend...
      Marcin


      Comment

      • Dikkie Dik

        #4
        Re: session_start() problem

        Warning: session_start() [function.sessio n-start]: SAFE MODE Restriction in
        effect. The script whose uid is 1113 is not allowed to access /var/tmp owned
        by uid 0 in /home/ZZZZZ/domains/YYYYYYY/public_html/MZ_CRM/config.inc.php on
        line 2
        ....
        Could you help me what it is? How to fix this problem? My page worked well
        on the previous server and I have never gotten such error?
        Is it a configure problem on the server? Is it a problem which should be
        fixed up by administrator?
        As already said, it is a configuration issue. The temp directory's owner
        is not the user that runs the PHP script. There are two ways to solve it:

        - Use a separate directory for the sessions, that is owned by the
        PHP-running user,
        - Or configure PHP to use group checking instead of user checking. (the
        PHP running user must then be part of the group that owns the temp
        directory).

        Read the documentation about "safe mode" for more details.

        Best regards

        Comment

        Working...