Re: Apache error when running PHP script..
| From: | David Bouw | Date: | Fri, 22 Dec 2000 00:25:28 +0000 |
| Subject: | Re: Apache error when running PHP script.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31505@lists.php.net to get a copy of this message | ||
Hi Cynic
Well, it was some time ago when I compiled PDFlib..
But I did use the enable-shared-pdflib command..
But it's quite complex, to compile PHP with PDFlib. You need a zlib, jpg and
tiff package for PDFlib..
These should be compiled before you can compile PDFlib, then you compile the
PDFlib package, after which
you need to compile PHP with PDFlib, and after this you can compile Apache..
:-) Here came the error because
PHP couldn't find the PDFlib files..
It was such a trouble that when I got it working I didn't want to experiment
with other (=newer) PDFlib versions..
But, I will look at it soon if I can compile PHP 4.04 with a new version of
PDFlib. I know that there were patches available for the pdflib.c file,
but it was such a hassle that I didn't do it.. These patches will have been
probably added to PHP 4.04.
Also PDFlib had some known problems with file-closing.. Etc etc.. Maybe it
has been fixed..
I wish that there was a package which consists of a huge tar file which
contains PHP + PDFlib + ClibPDF + GD library + some other general stuff that
I haven't discovered which has been tested to compile on popular operating
system and which has got an script which compiles all seperate needed
packages automatically, installs them, and then gives you the option to
compile a PHP module/cgi version with all the stuff..
Sometimes I get crazy when I need to download 4 extra packages to get a
package which I need for PHP to work.. :-)
Especially like last time when I wanted to install the GD library, which
also needed another library.. And during the compilation of PHP I got an
error that PHP couldn't compile because the new version of the GD library
didn't hjave any GIF functions because of copyright problems..
A pitty that the older versions can't easily be found elsewhere..
Maybe a list of a package + version number a PHP release was succesfully
tested with + URL's where to get them would be great with each release of
PHP..
Then you at least know that the package should be able to compile..
Well, at least everything is working fine here again with PHP 4.02..
And to end it all, I love PHP, it's a great language...
Bye Bye
> I just checked the source, and there's nothing about (too) new
> versions of PDFLib. Have you ./configure'd it with
> --enable-shared-pdflib ?
>
> At 23:50 21.12. 2000, David Bouw wrote the following:
> --------------------------------------------------------------
> >Hi Cynic,
> >
> >Thanks, this is also what I thought..
> >But, I will first try down-grading to a static-module compiled PHP 4.02
in
> >stead of 4.04...
> >------ some time later-----
> >
> >I just compiled the same apache with PHP 4.02 and now it works.!!
> >
> >Seems to be a problem in 4.04, but, before I report.. I had troubles from
> >the begin (when PHP 3 was the most current) installing PDFlib..
> >I got errors when trying to install the most current version of PDFlib..
> >Via someone else who had the same problem I got my hands on version
3.00..
> >This I installed without to much troubles.
> >
> >I don't know if it will be useful to note this as a bug.. Probably should
be
> >using the most current PDFlib with this PHP version..
> >
> >If I have some more time I will first try if I can compile PHP 4.04 with
the
> >newest PDFlib, if I succeed and I still get the same error I will
> >put and bug report..
> >
> >PS: I have this problem only when generating PDF's which consist out of
more
> >than 1 page..
> >
> >Bye Bye
> >
> >
> >> Looks like a candidate for a bug database entry. Check
> >> Bugs Dos & Don'ts before actual posting, please.
> >>
> >> At 23:02 21.12. 2000, David Bouw wrote the following:
> >> --------------------------------------------------------------
> >> >Hi,
> >> >
> >> >I have a script which generates an PDF file..
> >> >
> >> >This script worked fine when I used another Web-server which used PHP
as
> >a CGI module.
> >> >
> >> >My current Web-server runs Apache with a static module of PHP 4.04
with
> >PDFlib 3.01 if I remember correctly.
> >> >
> >> >(My old configuration had PHP 4.02 compiled with the same PDFlib 3.01)
> >> >
> >> >I got the following error in the log file of PHP:
> >> >
> >> >[Thu Dec 21 22:57:27 2000] [notice] child pid 10248 exit signal
> >Segmentation fault (11)
> >> >
> >> >Does anyone have an idea what can be the trouble..?
> >> >
> >> >Thanks in advance..
> >> >
> >> >Bye Bye
> >> >David Bouw
> >> ------end of quote------
> >>
> >>
> >>
> >> ____________________________________________________________
> >> Cynic:
> >>
> >> A member of a group of ancient Greek philosophers who taught
> >> that virtue constitutes happiness and that self control is
> >> the essential part of virtue.
> >>
> >> cynic@mail.cz
> >>
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> >> For additional commands, e-mail: php-general-help@lists.php.net
> >> To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> >>
> >>
> ------end of quote------
>
>
>
> ____________________________________________________________
> Cynic:
>
> A member of a group of ancient Greek philosophers who taught
> that virtue constitutes happiness and that self control is
> the essential part of virtue.
>
> cynic@mail.cz
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>