Subject: php4 install
To: None <tech-pkg@netbsd.org>
From: None <othyro@freeshell.org>
List: tech-pkg
Date: 12/01/2004 12:24:25
Hi,

Installing php4 breaks with this error:

      install -d -o root -g wheel -m 755 /usr/pkg/share/examples/php
      cd /usr/src/sys/pkgsrc/www/php4/work/php-4.3.9; install -c -o root -g wheel -m 4
      44 php.ini-dist php.ini-recommended /usr/pkg/share/examples/php
      install -d -o root -g wheel -m 755 /usr/pkg/share/php
      install -c -o root -g wheel -m 444 /usr/src/sys/pkgsrc/www/php4/work/php-4.3.9/p
      hp.gif /usr/pkg/share/php
      for p in Net_SMTP-1.2.6 Net_Socket-1.0.2; do  /usr/pkg/bin/pear upgrade $p;  don
      e
       
      Warning: mkdir(): SAFE MODE Restriction in effect.  The script whose uid/gid is

      0/0 is not allowed to access /tmp owned by uid/gid 3/7 in System.php on line 249

      Warning: mkdir(): SAFE MODE Restriction in effect.  The script whose uid/gid is
      0/0 is not allowed to access /tmp owned by uid/gid 3/7 in System.php on line 249

      Warning: mkdir(): SAFE MODE Restriction in effect.  The script whose uid/gid is
      0/0 is not allowed to access /tmp owned by uid/gid 3/7 in System.php on line 372

      User Warning: Unable to create temporary directory /tmp in System.php on line 87
      downloading Net_SMTP-1.2.6.tar ...
      Starting to download Net_SMTP-1.2.6.tar (-1 bytes)
      .............done: 48,640 bytes

      Warning: mkdir(): SAFE MODE Restriction in effect.  The script whose uid/gid is
      0/0 is not allowed to access /tmp owned by uid/gid 3/7 in System.php on line 372

      User Warning: Unable to create temporary directory /tmp in System.php on line 87
      Unable to open /package.xml
      *** Error code 1

and /tmp is bin:bin (1777), but that has never been a problem before. Should /tmp and /var/tmp be root:wheel (1777) or is this the script's problem?

!tr