PHP-4.3.2 specific safe_mode problem

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

    #1

    PHP-4.3.2 specific safe_mode problem

    Hi.

    I am having a problem with safe_mode in PHP-4.3.2. I was running an
    Apache-1.3.27 web server on solaris8 with PHP-4.3.1 with safe_mode on -
    and everything was working fine. Yesterday, I upgraded to Apache-1.3.28
    and PHP-4.3.2 with the same settings as before - but safe_mode was acting
    strange. A script with a specific group was not allowed to access another
    file with the same group - and safe_mode_gid is on. The error log says the
    following:

    "PHP Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid/gid is 1/7177 is not allowed to access menu.txt owned by uid/gid 7742/10 in ..."

    But those UID/GID are the wrong ones. They do in fact match the file.
    After hours of trying to figure out the problem, I decided to replace the
    present PHP-4.3.2 with PHP-4.3.1 with the exact same settings. And it
    worked.

    I have asked Google for help and looked in the PHP changelog without any
    luck.

    Am I the only one with that problem?

    Thanks in advance,
    Henrik

    --
    Henrik Oddershede, henrik@cs.auc.d k
  • Neil P Davis

    #2
    Re: PHP-4.3.2 specific safe_mode problem

    Henrik
    It has been my experience with safe mode that all files (text data,
    includes, and scripts) all need to be owned by the same uid/gid in order to
    function correctly. They are really tightening up safe mode.... If you are
    bouncing in and out of perl you should also make sure the perl scripts are
    owned by the right user.

    I run and develop exclusively in safe mode so am familiar with the
    (sometimes confusing) issues associated with safe mode.

    thx,
    Neil

    "Henrik Oddershede" <henrik@cs.auc. dk> wrote in message
    news:Pine.GSO.4 .50.03073115313 30.24502-100000@fire2.cs .auc.dk...[color=blue]
    > Hi.
    >
    > I am having a problem with safe_mode in PHP-4.3.2. I was running an
    > Apache-1.3.27 web server on solaris8 with PHP-4.3.1 with safe_mode on -
    > and everything was working fine. Yesterday, I upgraded to Apache-1.3.28
    > and PHP-4.3.2 with the same settings as before - but safe_mode was acting
    > strange. A script with a specific group was not allowed to access another
    > file with the same group - and safe_mode_gid is on. The error log says the
    > following:
    >
    > "PHP Warning: fopen(): SAFE MODE Restriction in effect. The script whose[/color]
    uid/gid is 1/7177 is not allowed to access menu.txt owned by uid/gid 7742/10
    in ..."[color=blue]
    >
    > But those UID/GID are the wrong ones. They do in fact match the file.
    > After hours of trying to figure out the problem, I decided to replace the
    > present PHP-4.3.2 with PHP-4.3.1 with the exact same settings. And it
    > worked.
    >
    > I have asked Google for help and looked in the PHP changelog without any
    > luck.
    >
    > Am I the only one with that problem?
    >
    > Thanks in advance,
    > Henrik
    >
    > --
    > Henrik Oddershede, henrik@cs.auc.d k[/color]


    Comment

    Working...