php-install Digest 15 May 2002 14:37:47 -0000 Issue 836
Topics (messages 6989 through 6995):
UID -1 error with Apache 2.0.36 and PHP 4.2.1
6989 by: Salsero
6990 by: Salsero
Re: SIze of libphp4.so
6991 by: Rasmus Lerdorf
6993 by: chad kellerman
Re: PHP 4.2.0 CGI install with IIS5 dot net and (W2k Server)
6992 by: Eddie Thomas
Solaris 7 -- iPlanet 4.1 problems
6994 by: Thomas Finley
6995 by: Thomas Finley
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Blank
Hello there
I have compiled Apache 2.0.36 with PHP 4.2.1 as a DSO module,
successfully ( well I think ). But cannot make php work properly because of
a warning problem such as :
Warning: SAFE MODE Restriction in effect. The script whose uid is -1
is not allowed to access /usr/local/webserver/php.php owned by uid 0 in
Unknown on line 0
Warning: Failed opening '/usr/local/webserver/php.php' for inclusion
(include_path='.:/usr/local/php/lib/php') in Unknown on line 0
I have set the safe_mode in the php.ini to ON, but the problem still
occurs. My script, called php.php, is fairly simple as such :
<?php
echo "hello";
?>
The message says that 'The script whose uid is -1', what script are we
talking about? The only script that I'm using is the one above. There is no
included file in there.
My script as the user/group of root/root and I set the Apache
(httpd.conf) user/group as apache/apache. My question is, is it possible
that apache deamons may run as noboby?
Thanks Salsero
--- End Message ---
--- Begin Message ---
Hello there
I have compiled Apache 2.0.36 with PHP 4.2.1 as a DSO module,
successfully ( well I think ). But cannot make php work properly because of
a warning problem such as :
Warning: SAFE MODE Restriction in effect. The script whose uid is -1
is not allowed to access /usr/local/webserver/php.php owned by uid 0 in
Unknown on line 0
Warning: Failed opening '/usr/local/webserver/php.php' for inclusion
(include_path='.:/usr/local/php/lib/php') in Unknown on line 0
I have set the safe_mode in the php.ini to ON, but the problem still
occurs. My script, called php.php, is fairly simple as such :
<?php
echo "hello";
?>
The message says that 'The script whose uid is -1', what script are we
talking about? The only script that I'm using is the one above. There is no
included file in there.
My script as the user/group of root/root and I set the Apache
(httpd.conf) user/group as apache/apache. My question is, is it possible
that apache deamons may run as noboby?
Thanks Salsero
--- End Message ---
--- Begin Message ---
Did you strip yours?
On Tue, 14 May 2002, chad kellerman wrote:
> Hi everyone,
>
> I was wondering what the appropriate size for the libphp4.so module should be? I
>am running php4.2.1 with apache 1.3.20.
>
> It seems that the basic red hat install of php 1.3M I just compiled php with
>the following options:
>
> ./configure --with-apxs=/etc/httpd/bin/apxs --with-apache=../apache_1.3.20
>--with-cybercash=/usr/local/cybercash/mck-3.2.0.6-i586-pc-linux-gnulibc2.1
>--with-mysql=/usr/local/mysql --with-gdbm=/usr/local/lib --enable-bcmath
>--enable-dbase --enable-ftp --enable-track-vars --enable-trans-sid
>--disable-posix-threads --disable-debug --with-gd=/usr/local --enable-gd-native-ttf
>--with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/lib --with-mcrypt=/usr/local
>--with-curl=/usr/local --with-xml --with-zlib --enable-memory-limit=yes
>
> and got an so 3M.
>
> THis just doesn't seem right, especially when phpinfo() returns almost the same
>information.
>
>
> Anyone know what the scoop is?
>
> THanks,
>
> --Chad
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Rasmus,
I am sorry but I am unfamiliar with this term. What is stripping?
thanks,
chad
On Tue, 14 May 2002 19:37:06 -0700 (PDT)
Rasmus Lerdorf <[EMAIL PROTECTED]> wrote:
> Did you strip yours?
>
> On Tue, 14 May 2002, chad kellerman wrote:
>
> > Hi everyone,
> >
> > I was wondering what the appropriate size for the libphp4.so module should be?
>I am running php4.2.1 with apache 1.3.20.
> >
> > It seems that the basic red hat install of php 1.3M I just compiled php with
>the following options:
> >
> > ./configure --with-apxs=/etc/httpd/bin/apxs --with-apache=../apache_1.3.20
>--with-cybercash=/usr/local/cybercash/mck-3.2.0.6-i586-pc-linux-gnulibc2.1
>--with-mysql=/usr/local/mysql --with-gdbm=/usr/local/lib --enable-bcmath
>--enable-dbase --enable-ftp --enable-track-vars --enable-trans-sid
>--disable-posix-threads --disable-debug --with-gd=/usr/local --enable-gd-native-ttf
>--with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/lib --with-mcrypt=/usr/local
>--with-curl=/usr/local --with-xml --with-zlib --enable-memory-limit=yes
> >
> > and got an so 3M.
> >
> > THis just doesn't seem right, especially when phpinfo() returns almost the same
>information.
> >
> >
> > Anyone know what the scoop is?
> >
> > THanks,
> >
> > --Chad
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
If anyone is interested, I've fixed this by blanking out the doc_root in the
php.ini .
Eddie
"Eddie Thomas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks for this though now I get the CGI Error
>
> "The specified CGI application misbehaved by not returning a complete set
of
> HTTP headers. The headers it did return are:"
>
> Something is still going pear shaped in there.
> The php script runs on the command line.
> The IIS "Check that file exists" is set so the script is found.
> PHP.ini is found because the force_redirect had to be changed.
> This message confirms that php.exe has been found.
>
> Any more ideas ?
>
> Thanks
> Eddie.
>
> "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > The correct exe is php.exe. In 4.2.0 you find it in the sapi directory
of
> > the php distribution (before and after it resides in the root
directory).
> > You should copy it to the root directory.
> >
> > php-cli.exe is the command line interface.
> >
> > Christoph
> >
> > Eddie Thomas wrote:
> > > After following the install instructions to the letter I find that a
> > > test phpinfo.php page will not open. I am using the php-cli.exe in
> > > the php folder (I assume this right). The phpinfo script works from
> > > the command line OK. I tried moving the php.ini, php-cli.exe and
> > > php4ts.dll to the IIS scripts folder but I still have the same
> > > problem.
> > >
> > > I can only assume the problem occures because this is a dot net
> > > version on W2k Server.
> > >
> > > Any ideas?
> > >
> > > Eddie.
> >
>
>
--- End Message ---
--- Begin Message ---
Please help. I'm installing php on a Solaris 7 server that is running
iplanet 4.1.
PHP Version 4.2.1
Configure: (I had more compiled in (gd, gdbm...) but error below occured so
I cut it down)
./configure --with-nsapi=/usr/netscape/server4 --enable-libgcc \
--prefix=/usr --with-mysql=/usr/local/mysql --enable-track-vars
The Error:
bash-2.05# make
Making all in Zend
make[1]: Entering directory `/usr/share/src/php-4.2.1/Zend'
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PT
HREAD_SEMANTICS -D_REENTRANT -I../TSRM -g -O2 -pthreads -DZTS -prefer-pic -c
-o zend_language_parser.lo `test -f zend_language_parser.c || echo
'./'`zend_language_parser.c
In file included from zend_compile.h:24,
from zend_language_parser.c:147:
zend.h:55: unix.h: No such file or directory
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/usr/share/src/php-4.2.1/Zend'
make: *** [all-recursive] Error 1
Thomas Finley
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I reverted to php 4.1.2 and am having no problems compiling.
It must be a bug-- during the configure, it detects unix.h, which doesn't
exist.
"Thomas Finley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Please help. I'm installing php on a Solaris 7 server that is running
> iplanet 4.1.
>
> PHP Version 4.2.1
>
> Configure: (I had more compiled in (gd, gdbm...) but error below occured
so
> I cut it down)
>
> ./configure --with-nsapi=/usr/netscape/server4 --enable-libgcc \
>
> --prefix=/usr --with-mysql=/usr/local/mysql --enable-track-vars
>
> The Error:
>
> bash-2.05# make
>
> Making all in Zend
>
> make[1]: Entering directory `/usr/share/src/php-4.2.1/Zend'
>
> /bin/sh ../libtool --silent --mode=compile
>
gcc -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PT
>
HREAD_SEMANTICS -D_REENTRANT -I../TSRM -g -O2 -pthreads -DZTS -prefer-pic -c
> -o zend_language_parser.lo `test -f zend_language_parser.c || echo
> './'`zend_language_parser.c
>
> In file included from zend_compile.h:24,
>
> from zend_language_parser.c:147:
>
> zend.h:55: unix.h: No such file or directory
>
> make[1]: *** [zend_language_parser.lo] Error 1
>
> make[1]: Leaving directory `/usr/share/src/php-4.2.1/Zend'
>
> make: *** [all-recursive] Error 1
>
> Thomas Finley
>
> [EMAIL PROTECTED]
>
>
>
--- End Message ---