php-install Digest 23 Mar 2002 16:30:32 -0000 Issue 758

Topics (messages 6446 through 6448):

Re: build problems
        6446 by: Rasmus Lerdorf

mysql_connect undefined
        6447 by: Brad Schick

Unable to load php_oci8 after update?
        6448 by: John Hofstad-Parkhill

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 ---
The Apache 2 apis are continually changing.  You pretty much always need
to use current PHP CVS against the latest Apache2 to get it to work.

On Fri, 22 Mar 2002, [EMAIL PROTECTED] wrote:

> I'm trying to compile php-4.1.2 as a DSO module for Apache-0.32.
> I don't have enough space in the default location so I put them both in
> /d2/usr2/local/...
>
> I couldn't make the stable/release versions on Apache or PHP compile so I
> tried the latest versions of each.
>
> For the Apache I used:
> ./configure --prefix=/d2/usr2/local/apache --enable-so --with-mpm=prefork
> It seems to behave fine.
>
> For the PHP I used:
> ./configure --prefix=/d2/usr2/local/php --with-apxs2=/d2/usr2/local/apache/b
> in/apxs
> It configures fine but fails on the make:
>
> make[3]: Entering directory `/d2/downloads/php-4.2.0RC1/sapi/apache2filter'
> /bin/sh /d2/downloads/php-4.2.0RC1/libtool --silent --mode=compile
> gcc  -I. -I/d2/downloads/php-4.2.0RC1/sapi/apache2filter -I/d2/downloads/php
> -4.2.0RC1/main -I/d2/downloads/php-4.2.0RC1 -I/d2/usr2/local/apache/include
> -I/d2/downloads/php-4.2.0RC1/Zend -I/d2/downloads/php-4.2.0RC1/ext/mysql/lib
> mysql -I/d2/downloads/php-4.2.0RC1/ext/xml/expat  -D_REENTRANT -I/d2/downloa
> ds/php-4.2.0RC1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic  -c
> sapi_apache2.c
> sapi_apache2.c: In function `php_register_hook':
> sapi_apache2.c:473: `AP_FTYPE_RESOURCE' undeclared (first use in this
> function)
> sapi_apache2.c:473: (Each undeclared identifier is reported only once
> sapi_apache2.c:473: for each function it appears in.)
> make[3]: *** [sapi_apache2.lo] Error 1
>
>
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I had Apache 1.3.22, PHP 4.0.6, and MySql 3.23.41 all working fine together
under RH 7.2.

I then made the mistake of installing Zend Studio Server and PHP can no
longer access MySql when run from Apache. When I access a .php page through
apache I get this error:

Fatal error: Call to undefined function: mysql_connect()...

But if I execute php on the command line with the same file it works
correctly and the html I would expect is written to stdout. So can someone
tell me why php would produce this error when run through Apache?

This is a URL to phpinfo() if it helps:
http://dev.robotbattle.com/hello.php


-Brad


--- End Message ---
--- Begin Message ---
I've searched, and cannot find a definitive answer. I'm running w2k, apache,
and PHP 4.0.4pl1.

PHP crashes, the apache log says...
File does not exist: /data/share/httpd/scripts/..%2f/winnt/system32/cmd.exe

There is random garbage between /scripts/ and /winnt/system32/cmd.exe

I thought I would persue an upgrade. However, once I upgrade to php 4.1.x, I
suddenly cannot connect to oracle and get the dreaded "unable to load...".

I've used every viable combination of extensions path I can think of.
I've copied the dll's to winnt/system32, including OCI.DLL and OCIW32.DLL
I've verified the security flags for SYSTEM.

I am willing to search, but I'd like to know where.

tia


--- End Message ---

Reply via email to