php-install Digest 9 Apr 2002 13:30:34 -0000 Issue 783
Topics (messages 6584 through 6592):
Re: Problems with the ./configure command
6584 by: Julie Meloni
Re: php-4.2.0RC2 compile and install problems
6585 by: Charles Aulds
6586 by: Yasuo Ohgaki
Image in HTML Message
6587 by: Salvador Gil
MySQL persistent connections
6588 by: Robert Abbate
configure problems with Apache 2
6589 by: Петров Иван
6592 by: F.Lanza
Error compiling Apache 1.3.24 with PHP 4.1.2
6590 by: Jasper Metselaar
problem with 4.1.2 and jpgraph
6591 by: James P. Stratton
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 ---
AJ> checking lex output file root... ./configure: lex: command not found
AJ> configure: error: cannot find output from lex; giving up
AJ> What should I do?
Get flex/lex. If not from your distro CD, from www.gnu.org. You
will need bison also, if you do not have it.
See the PHP manual's installation page for a list of what you need
before you begin.
- Julie
--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
--- End Message ---
--- Begin Message ---
Daniel Andersson <[EMAIL PROTECTED]>, from somewhere in Sweden, gave me this
solution, and with his permission, I pass it along, because it worked for
me!
>
> The problem is due to a change in srclib/apr-util/buckets/apr_brigade.c
> and srclib/apr-util/include/apr_buckets.h of the Apache distribution.
> The change occured somewhere between 2.0.32 and 2.0.35. The problem is
> solved in the latest PHP sources in the CVS. Build PHP from CVS (not
> tested) or copy sapi/apache2filter from the CVS to the PHP-4.1.2 source
> tree.
>
I downloaded the CVS sources, but didn't build PHP from them, instead, I
followed his suggest and copied the entire /sapi/apache2filter directory to
my 4.1.2 build directory, and built PHP with these simple command lines:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
make
make install
___
Charles Aulds
http://hiwaay.net/~caulds/
Server Version: Apache/2.0.35 (Unix) mod_ssl/2.0.35 OpenSSL/0.9.6b DAV/2
mod_perl/1.99_01-dev Perl/v5.6.0 PHP/4.1.2
Server Built: Apr 6 2002 13:30:55
--- End Message ---
--- Begin Message ---
Charles Aulds wrote:
> I downloaded the CVS sources, but didn't build PHP from them, instead, I
> followed his suggest and copied the entire /sapi/apache2filter directory to
> my 4.1.2 build directory, and built PHP with these simple command lines:
>
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> make
> make install
Are you guys using --with-apxs?
It will never work.
Read README in sapi/apache2filter/ at least...
(And ./configure --help...)
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
I want to send a image in a HTML message, but I don't want to reference
an URL to load it.
That's because my computer is not in Internet and isn't accesible for
load this image.
I'm trying to use the following code, but didn't function, just suspend
the PHP commands before the LoadGif instruction, browsing the page
without error message.
<?php
printf("<SCRIPT>\n");
function LoadGif($imgname)
{
$im = @imagecreatefromgif($imgname); // Attempt to open
if ($im == "") { // See if it failed
$im = ImageCreate(150,30); // Create a blank image
$bgc = ImageColorAllocate($im,255,255,255);
$tc = ImageColorAllocate($im,0,0,0);
ImageFilledRectangle($im,0,0,150,30,$bgc);
ImageString($im,1,5,5,"Error loading $imgname",$tc); // Output an
errmsg
}
return $im;
}
LoadGif("http://sgil/seguros/images/logo.gif");
.
.
printf("}\n document.onload = CargaPantalla();");
printf("</SCRIPT>\n");
?>
Someone can help me?
Thanks.
--- End Message ---
--- Begin Message ---
Hi. I'm trying to disable persistent database connections to MySQL, and I
disabled the php.ini file settings, but for some reason, they can still
connect with persistent connections. I changed the following settings in
php.ini:
[MySQL]
mysql.allow_persistent = Off ; allow or prevent persistent link
mysql.max_persistent = 0 ;
I'm using Linux Mandrake 8.1 system.
Anyone run into this problem before?
Thanks!
Robert
--- End Message ---
--- Begin Message ---
Hi!
I didn't find answers on this quiestion in archive.
I want to configure php-4.1.2 with apache-2.0.35.
./configure --with-mysql --with-apache=../httpd-2.0.35 --enable-ftp
and it crushes.
configure: error: Invalid Apache directory - unable to find httpd.h under
/usr/backup/httpd-2.0.35
But it 's there.
What is wrong?
Thanks.
--- End Message ---
--- Begin Message ---
?ln???????? wrote:
> Hi!
> I didn't find answers on this quiestion in archive.
> I want to configure php-4.1.2 with apache-2.0.35.
> ./configure --with-mysql --with-apache=../httpd-2.0.35 --enable-ftp
> and it crushes.
> configure: error: Invalid Apache directory - unable to find httpd.h under
> /usr/backup/httpd-2.0.35
>
> But it 's there.
>
> What is wrong?
>
> Thanks.
apache2 isn't apache 1.3.X,
you must compile a DSO module with --with-apxs2=/path/to/apxs in configure
options,
AFTER to install apache, and you must have apache with DSO enabled.
Note that php4.1.2 have a huge problem with sapi, and compiling with the
new apache 2.0.35 it not possible, i think it will be possible with php
4.2.0 when it will be released.
Regards
Franco
--- End Message ---
--- Begin Message ---
Hello,
I am trying to compile Apache 1.3.24 with PHP 4.1.2, but when
compiling I get the following errors:
modules/php4/libphp4.a(dns.o): In function `zif_checkdnsrr':
/home/admin/php-4.1.2/ext/standard/dns.c:223: undefined reference to `__res_search'
modules/php4/libphp4.a(dns.o): In function `zif_getmxrr':
/home/admin/php-4.1.2/ext/standard/dns.c:284: undefined reference to `__res_search'
/home/admin/php-4.1.2/ext/standard/dns.c:311: undefined reference to `__dn_expand'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/admin/apache_1.3.24/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/admin/apache_1.3.24'
make: *** [build] Error 2
In the PHP bug tracking system and found #13565. In reply to this bug
ticket, it was said that it was probably a problem with
/lib/libresolv.so.2.
I reinstalled glibc-2.1.3-23 (Redhat RPM), which includes this
libresolv.so.2, but it did not help.
I am running Redhat 6.2 on my system.
Any suggestions and/or help would be really appreciated.
Thanks in advance,
Jasper
--- End Message ---
--- Begin Message ---
Hi,
I am trying to get jpgraph to work with php 4.1.2 on solaris8. The compile
looks like it works and php is running, but I am unable to run the jpgraph
tests. Does anyone have a configuration for solaris8 that works with
jpgraph?
Thanks!
jim stratton
--- End Message ---