php-install Digest 9 May 2001 19:10:49 -0000 Issue 300

Topics (messages 3081 through 3085):

php4.04pl1 >> php4.05
        3081 by: JFL

Re: Help with PDFLIB
        3082 by: Matt Schroebel

Setuid php execution?
        3083 by: Gary Algier

CGI Error on Win 2k IIS 5
        3084 by: ECHJR

Re: banging my head...
        3085 by: Krznaric Michael

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]


----------------------------------------------------------------------


I am now running php4.04pl1 on a Linux box and would like to upgrade to
php4.05

How do I do that ? I did not install it, so please give me a step by step
guide.

:) Jacob
--
[ www.eksperten.dk ] Scandinavias biggest IT forum.






In the phpinfo() do you see:
pdf
PDF Support                    enabled 
PDFLib                         Version 3.03 
CJK Font Support               yes 
In-memory PDF Creation Support yes 


Below is my setup with PDFLIB 3.0.3,  Apache 1.3.14, & FreeBSD 4.1-RELEASE

zlib 1.1.3
----------
./configure 
make test
make install

jpeg-6b
------
./configure  --enable-shared
make
make install

tiff-v3.5.5
-----------
./configure
make
make install

libpng 1.0.8
------------
get correct makefile (instructions in INSTALL)
make
make install

PDFlib V3.03
------------
./configure  --with-pnglib=/usr/local \
                 --with-tifflib=/usr/local \
             --enable-shared-pdflib
make
make install

PHP 4.0.4pl1
---------
./configure  --with-mysql --with-apxs=/www/bin/apxs \
             --with-gd=/usr/local/gd1.3 
             --with-pdflib=/usr/local --with-png-dir=/usr/local \
             --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local \
             --with-imap --enable-sockets
rm config.cache
make clean
make 
make install
> From: Scott Schultz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 5:00 PM
> To: [EMAIL PROTECTED]
> 
> In a nutshell, I can't seem to make PHP recognize that
> the pdflib is there.
> 
> PHP compiles and installs. The configuration as reported by
> phpinfo is:
> 
> './configure' '--with-apache=/usr/local/src/apache_1.3.14'
> '--enable-discard-path' '--with-config-file-path=/usr/local/lib'
> '--enable-sigchild'
> '--enable-ctype' '--with-cybercash=/usr/local/src/mck-3.2.0.4-linux'
> '--with-gdbm' '--with-ndbm' '--enable-ftp' '--with-mysql=/usr'
> '--with-pdflib=/usr/local/lib' '--with-zlib-dir=/usr/local/lib'
> '--with-jpeg-dir=/usr/local/lib' '--with-png-dir=/usr/local/lib'
> '--with-tiff-dir=/usr/local/lib' '--enable-sockets' '--with-regex=php'
> '--enable-sysvsem' '--enable-sysvshm' '--with-zlib' '--with-gnu-ld'




I have had PHP 4.0.4pl1 and Apache 1.3.17 running for a while now and I can use
the php module as well as the cgi-bin executor (I built it twice).  However,
I have multiple virtual servers running I want to be able to say that on one
of the servers, it should run all files with a .php suffix as a different user.

I can do this with the Apache setuid exec feature and the config directives:
        User somebody
        AddHandler cgi-script .cgi
        DirectoryIndex index.html index.cgi

And then I the user must create files that are executable and start with:
        #!/usr/local/it/bin/php

However, I would like to be able to make these run as the appropriate user
and not need execute permision (you try to explain to a PC users how to log
into a Unix system and use a command like "chmod 755 file").

Any ideas?

-- 
Gary Algier, WB2FWZ       [EMAIL PROTECTED]           +1 856 787 2758
Ulticom Inc., 1020 Briggs Rd, Mt. Laurel, NJ 08054      Fax:+1 856 866 2033

       A self-addressed envelope would be addressed "envelope."




Arghh.. I appreciate help from anyone on this one.  I have a new install of
PHP4.5 on my IIS 5 machine with Windows 2K.  The install went fine..   When
I go into a command prompt and type c:\php\php.exe -i
I get the HTML junk, which is good.   But... When I try and send a simple
test page with a PHP version information tag in it, I get the good old "CGI
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are: <Blank Area>

Now I have seen this error before.  I have verified permissions on the
relevant files.. Heck, I even set the web site to have administrator
privileges just to test the possibility of some erroneous permission error..
Same problem.  The "Check that file exists" is checked in the IIS setting,
so that is cool.
In my php.ini file, the only item I really changed from default was
"extension_dir =c:\php"

Is there something else in the PHP.ini file that I am missing???  Remember..
This page I am trying to test is simply:
<body>
Hello
<?php
phpinfo();
?>
</body>

Please Help :)

Ed






So, what's -lt1 ?

does man t1 give anything?

Mike

-----Original Message-----
From: Philip Cohen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 8:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] banging my head...


i cannot get php 4.0.5 to compile on RH 7.1, apache 1.3.19. I have tried 20
different compile options and nothing works. here is debug.log. please help
;\

[root@websmith php-4.0.5]# more debug.log
CONFIGURE:   './configure' '--prefix=/usr/local/php' '--disable-debug'
'--enable-shared' '--enable-inline-optimization' '--with-apxs
=/usr/sbin/apxs' '--with-gd' '--with-ttf' '--with-t1lib=/usr/share/t1lib'
'--without-mysql'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=22 -DMOD_SSL=208101 -DEAPI -DEAPI_MM -DUSE_EXPAT -DSUPP
ORT_UTF8
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend -I/usr/include/fr
eetype -I/include
LDFLAGS:     -Wl,-rpath,/lib -L/lib
LIBS:       -lt1 -lttf -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lres
olv -L/lib -lt1
DLIBS:
SAPI:       apache
PHP_RPATHS:  /lib
uname -a:   Linux websmith 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686
unknown

gcc -o
conftest -g -O2  -DLINUX=22 -DMOD_SSL=208101 -DEAPI -DEAPI_MM -DUSE_EXPAT -D
SUPPORT_UTF8  -Wl,-rpath,/lib -L/lib conftest.c -
lt1 -lttf -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/lib -l
t1 1>&5
/usr/bin/ld: cannot find -lt1
collect2: ld returned 1 exit status



Philip Cohen
---------------
Webmaster
Large Scale Biology Corporation
(707) 446-5501 x354
[EMAIL PROTECTED]


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Reply via email to