php-install Digest 19 Sep 2001 08:01:09 -0000 Issue 465

Topics (messages 4337 through 4344):

Re: where is build info stored?
        4337 by: Rasmus Lerdorf
        4338 by: Steve Cayford

PDFlib 4.0.1 and PHP 4.0.6 - success!
        4339 by: Steve Cayford
        4340 by: Rasmus Lerdorf
        4341 by: Steve Cayford

Red Hat
        4342 by: Greg

Compile Errors and Warnings
        4343 by: Nael Mohammad

shebang appearing!
        4344 by: Jack

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'm trying again to get PDFlib (from source) to work for me with PHP
> 4.0.6. I gave up on Mac OSX for now and switched to LinuxPPC 2000.
>
> I noticed that when I recompile and re-install php the information
> displayed by phpinfo() is not updated, which makes me suspect that I'm
> still running off the old libraries. Would this be true? Where does
> phpinfo get its build information? e.g. the build date, configure
> options, etc...

That information is compiled directly into the library.  So if you are not
seeing the updated info you are definitely not running the right library.

Make sure you restart your Apache server when you upgrade PHP.  You are
best off doing a stop/start and making sure in between that there are no
httpds running.

Also check that your "make install" puts libphp4.so into the right
directory and that the LoadModule line in your httpd.conf is loading that
specific libphp4.so library.  You can put an explicit full path into your
httpd.conf to make sure.

-Rasmus





Ok. It seemed that using make distclean wasn't getting rid of all the 
pieces so I unpacked a fresh archive, shutdown httpd, deleted 
libphp4.so, then recompiled and installed and its up to date now. I 
don't understand why it didn't work before. libphp4.so had today's 
datestamp, but phpinfo() still said it had been compiled last Friday.

-Steve

On Tuesday, September 18, 2001, at 02:02  PM, Rasmus Lerdorf wrote:

>> I'm trying again to get PDFlib (from source) to work for me with PHP
>> 4.0.6. I gave up on Mac OSX for now and switched to LinuxPPC 2000.
>>
>> I noticed that when I recompile and re-install php the information
>> displayed by phpinfo() is not updated, which makes me suspect that I'm
>> still running off the old libraries. Would this be true? Where does
>> phpinfo get its build information? e.g. the build date, configure
>> options, etc...
>
> That information is compiled directly into the library.  So if you are 
> not
> seeing the updated info you are definitely not running the right 
> library.
>
> Make sure you restart your Apache server when you upgrade PHP.  You are
> best off doing a stop/start and making sure in between that there are no
> httpds running.
>
> Also check that your "make install" puts libphp4.so into the right
> directory and that the LoadModule line in your httpd.conf is loading 
> that
> specific libphp4.so library.  You can put an explicit full path into 
> your
> httpd.conf to make sure.
>
> -Rasmus
>
>
> --
> 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]
>




I finally got these two working together. I tried several times on mac 
OSX and decided maybe it just wasn't going to happen so I've been trying 
LinuxPPC 2000. In case there are others with the same problem, here are 
the steps I took that finally worked. Following the directions with 
pdflib I did as follows (using source directories: 
/home/steve/build/php-4.0.6 "<php-src>" and 
/home/steve/build/pdflib-4.0.1 "<pdflib-src>"):

1. stop apache, remove all remnant pdflib and php files

2. unpack pdflib, ./configure, make, make install

3. added library directories to /etc/ld.so.conf, ran ldconfig (don't 
know if this step is necessary)

4. unpack php, rm <php-src>/ext/pdf/*, cp <pdflib-
src>/bind/php/ext/pdf/* <php-src>/ext/pdf

5. ./configure php with these options:
         --with-xml \
         --with-zlib \
         --with-apxs=/usr/sbin/apxs \
         --with-openssl \
         --enable-trans-sid \
         --with-pdflib=/usr/local \
         --enable-shared=pdflib \
         --with-mysql=/usr

( /usr/local/lib contains libpdf.a libpdf.la libpdf.so libpdf.so.1 
libpdf.so.1.1.1 )

6. make, make install

7. cp <php-src>/php.ini-optimized /usr/local/lib/php.ini, restart apache

(this is assuming you had php and apache working before, otherwise you'd 
need to setup your httpd.conf file)





> 4. unpack php, rm <php-src>/ext/pdf/*, cp <pdflib-
> src>/bind/php/ext/pdf/* <php-src>/ext/pdf

You shouldn't need this step.  PHP comes with that pdf extension.

-Rasmus





I wasn't sure if I did or not, but the directions that came with pdflib 
included that step. I might go back now and try it again on mac osx..., 
but maybe another day.

By the way, PHP is a great language and lots of fun. Thanks for all your 
work.

-Steve

On Tuesday, September 18, 2001, at 04:34  PM, Rasmus Lerdorf wrote:

>> 4. unpack php, rm <php-src>/ext/pdf/*, cp <pdflib-
>> src>/bind/php/ext/pdf/* <php-src>/ext/pdf
>
> You shouldn't need this step.  PHP comes with that pdf extension.
>
> -Rasmus
>
>
> --
> 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]
>




I installed php4 with Apache when I installed Red Hat 7.1. I didn't have
mysql at the time. Now I need to configure php for mysql. Can someone tell
me where I run ./configure, make, make install so I can add --with-mysql?

thanks,
Greg

remove -NOSPAM from email when replying






This is the error message that apache reports:

Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
./httpd: fatal: libstdc++.so.2.10.0: open failed: No such file or director


And I found that I don't have the "libstdc++.so.2.10.0" but I do have
"libstdc++.so.3.0.1", now my real question is : Is this the later library
not compatible with PHP module? 


FYI: Apache works fine when I comment the php module out. And does anyone
know what I should do? I think this happened when I upgrade the gnu library
to 3.0.1 from sunfreeware.com and yes I'm running Solaris and will do the
package for it once I get mine up and running so far , three days and
counting on this project. 

Help ME community!




Hi!

I want php as a cgi, so that I can call it both from a shell command line
and from apache server. So I need to mention the shebang
(#!/usr/local/bin/php) at the top of my scripts. I've used php installer
proposed by php.net and it works fine except that when I call from apache,
the shebang appears!!! What do I write in httpd.conf to avoid that? Thanks



Reply via email to