php-install Digest 26 Jul 2001 06:03:33 -0000 Issue 381

Topics (messages 3703 through 3710):

Re: Trouble compiling php-4.0.6
        3703 by: Rasmus Lerdorf

Mirroring a Configuration
        3704 by: Jonathan Hilgeman
        3705 by: Mike

php & libpng
        3706 by: Jon Wagoner

Can't get php to work with MySql
        3707 by: Scott Gines \[Softwise\]

undefined reference problems with php-apache compile
        3708 by: Brian & Shannon Windsor

Installing PHP on WinNT and Apache 1.3
        3709 by: aLmAgEdOn
        3710 by: Phil Driscoll

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]


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


Please see the FAQ at http://php.net/FAQ.php

You have upgraded a Linux 2.2 system to the 2.4 kernel without upgrading
your glibc as is required.

-Rasmus

On Wed, 25 Jul 2001, Arnauld Dravet - smurfie wrote:

> Hello,
>
> i was using php-4.0.3pl1 until now and never had any problem, except yesterday i had 
>to develop a page on which i have to read on a socket ...
>
> problem is that:
> while(!feof($socket_id)) {
>     echo fgets($socket_id, $len);
> }
>
> does not work: seems that FEOF is never detected so the PHP enter an infinite loop.
>
> I found many people complaining about that problem on different PHP mailing-list, 
>but no real issue ...
>
> So i decided to upgrade PHP, and also apache, and also mysql.
>
> downlaoded php-4.0.6 sources (ieve always used sources)
> and when i compile it:
>
> gcc  -I. -I/root/php-4.0.6/ext/standard -I/root/php-4.0.6/main -I/root/php-4.0.6 
>-I/root/apache_1.3.20/src/include -I/root/apache_1.3.20/src/os/unix 
>-I/root/php-4.0.6/Zend -I/usr/local/mysql/include/mysql 
>-I/root/php-4.0.6/ext/xml/expat/xmltok -I/root/php-4.0.6/ext/xml/expat/xmlparse 
>-I/root/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c microtime.c && 
>touch microtime.lo
> microtime.c: In function `php_if_getrusage':
> microtime.c:99: storage size of `usg' isn't known
> microtime.c:102: `RUSAGE_SELF' undeclared (first use in this function)
> microtime.c:102: (Each undeclared identifier is reported only once
> microtime.c:102: for each function it appears in.)
> microtime.c:108: `RUSAGE_CHILDREN' undeclared (first use in this function)
> make[3]: *** [microtime.lo] Error 1
> make[3]: Leaving directory `/root/php-4.0.6/ext/standard'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/php-4.0.6/ext/standard'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/php-4.0.6/ext'
> make: *** [all-recursive] Error 1
> mushroom:~/php-4.0.6#
>
> any help would be really appreciated ... :)
>
> thanks
> Arnauld Dravet
> [EMAIL PROTECTED]
>
>
>





Hi, I'm trying to make a development box that mirrors my production box.
However, my production server was set up by someone else who no longer works
at the same company. I need to know what Makefiles and arguments he used -
is there a way to determine how he compiled Apache/PHP/mySQL, etc...?

- Jonathan






apache uses ./config.status to keep the last configuration options
if you cant find this do /location_of_httpd/bin/http -l which will show all
compiled in modules

if you do php_info() in a document it will show you the initial
configuration options

i dont know about mySQL im afraid - i just use RPMs without any problem
(most configuration is done with the apache and php)

hope this helps

----- Original Message -----
From: Jonathan Hilgeman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 4:13 PM
Subject: [PHP-INST] Mirroring a Configuration


> Hi, I'm trying to make a development box that mirrors my production box.
> However, my production server was set up by someone else who no longer
works
> at the same company. I need to know what Makefiles and arguments he used -
> is there a way to determine how he compiled Apache/PHP/mySQL, etc...?
>
> - Jonathan
>
>
>
> --
> 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 am trying to get php installed with the --with-png-dir option.  I have
tried installing libpng 1.0.12 from source and from rpm.  Both types of
installs appear to work fine.  libpng is located in /usr/local, so I have
the option set to --with-png-dir=/usr/local
When I try to configure with this option, I get the following lines before
it quits:
 
checking for the location of libpng... yes
checking for png_info_init in -lpng... no
configure: error: libpng not found!
 
Can anyone help with this?
 
The machine is a Pentium 166 with 128MB running Mandrake 8.0
 
Jon Wagoner
    




I have installed both php and MySql on a Windows 2000 machine running IIS 5.
Both work when I independantly try them, but I can't get them to work
together.  In my .php source, I am doing a

$link = mysql_connect ("localhost", "root", "");

which returns the error

Fatal error: Maximum execution time of 30 seconds exceeded in
C:\Src\TestApp\index.php on line 1

Any help would be greatly appreciated.








I have mysql in /home/brian/mysql, php in /usr/local, and apache in
/home/brian/apache.

I'm only having problems with the apache compile.  I can get the server to
run if I compile
it without trying to activate the php module.  This last time, I even left
all the enable
flags out of the php compile to see if that had anything to do with it.  I'm
stumped.  I've
already started building my database in mysql, but I really need to get
phpMyAdmin to run
so my life will be easier and I can see the results of my scripts.  Any help
would be greatly
appreciated.

Thanks,

Brian


Here's what I did.  I reinstalled mysql as

./configure --prefix=/home/brian/mysql

I check it, and it works fine.  I then installed php with the following
options...

./configure --with-mysql=/home/brian/mysql

I got no errors when doing make or make install.

I then configure apache with

./configure --prefix=/home/brian/apache --activate-module=src/modules/php4/l
ibphp4.a

When running make on apache, I keep getting undefined references..examples
follow.


/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1193: undefined reference to
`mysql_fetch_field'
modules/php4/libphp4.a(php_mysql.o): In function `php_mysql_fetch_hash':
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1308: undefined reference to
`mysql_fetch_row'
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1308: undefined reference to
`mysql_fetch_lengths'
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1319: undefined reference to
`mysql_field_seek'
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1320: undefined reference to
`mysql_fetch_field'
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1320: undefined reference to
`mysql_fetch_field'
modules/php4/libphp4.a(php_mysql.o): In function `php_if_mysql_data_seek':
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1412: undefined reference to
`mysql_data_seek'
modules/php4/libphp4.a(php_mysql.o): In function
`php_if_mysql_fetch_lengths':
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1435: undefined reference to
`mysql_fetch_lengths'
modules/php4/libphp4.a(php_mysql.o): In function `php_if_mysql_fetch_field':
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1530: undefined reference to
`mysql_field_seek'
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1532: undefined reference to
`mysql_fetch_field'
modules/php4/libphp4.a(php_mysql.o): In function `php_if_mysql_field_seek':
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1574: undefined reference to
`mysql_field_seek'
modules/php4/libphp4.a(php_mysql.o): In function `php_mysql_field_info':
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1606: undefined reference to
`mysql_field_seek'
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:1607: undefined reference to
`mysql_fetch_field'
modules/php4/libphp4.a(php_mysql.o): In function `_free_mysql_result':
/home/brian/php-4.0.3pl1/ext/mysql/php_mysql.c:169: undefined reference to
`mysql_free_result'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/brian/apache_1.3.14/src'
make[1]: *** [build-std] Error 2






Hi everyone...

I'm really a newbie in PHP. I've got Perl running in Apache (NT 4,
workstation), and i want to install PHP 4 (binary) too.

These are the lines i added to httpd.conf

ScriptAlias /php/ "C:/servers/server1/php/"
AddType application/x-httpd-php .php
LoadModule php4_module c:/php/sapi/php4apache.dll

And configured c:\winnt\php.ini as install help file explains...

It seems to run... (doesn't have any problem starting the service), but when
I run a script, it gives an 500 error... in the log, appears that the file
hasn't, in the first line, "#!"..... that it's used with perl...

people, i would appretiate a lot any help

Really thanX
aLmAgEdOn







On Thursday 26 July 2001 02:15, aLmAgEdOn wrote:
> Hi everyone...
>
> I'm really a newbie in PHP. I've got Perl running in Apache (NT 4,
> workstation), and i want to install PHP 4 (binary) too.
>
> These are the lines i added to httpd.conf
>
> ScriptAlias /php/ "C:/servers/server1/php/"
> AddType application/x-httpd-php .php
> LoadModule php4_module c:/php/sapi/php4apache.dll
>
> And configured c:\winnt\php.ini as install help file explains...
That's a mixture of configuration for the cgi and teh module version.
If you want to run the cgi version, you need to get rid of the loadmodule 
line and add:
Action application/x-httpd-php "/php/php.exe"

If you want to run the module version, get rid of the script alias and make 
sure you copy php4ts.dll to winnt/system32.

Cheers

-- 
Phil Driscoll


Reply via email to