php-install Digest 6 Jul 2001 14:48:36 -0000 Issue 348

Topics (messages 3418 through 3422):

Re: Configuration issues w/PHP4, MySQL, Apache on RH7.1
        3418 by: Roger Ramirez
        3422 by: Derek Steinkamp

Memory Limitation of PHP scripts
        3419 by: Stefan Siefert
        3420 by: Stefan Siefert

PHP compilation error under Solaris
        3421 by: Jose Gracia Neto

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]


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


When you installed MySQL did you put in the prefix option?  Like
./configure --prefix=/usr/local/mysql

If you did then when you configure PHP what ever you used for the --prefix
in the mysql configure is what you use for the --with-mysql in the php
configure.

----- Original Message -----
From: "Gabriel McAtee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 12:14 PM
Subject: [PHP-INST] Configuration issues w/PHP4, MySQL, Apache on RH7.1


> So.... I have MySQL up and working, Apache up and working, and PHP4 up and
> working... but not connecting to MySQL.  I ran
> "configure --with-mysql=/usr/bin/mysql" which apparently is not correct...
> it returned an error stating that it could not find the MySQL libraries in
> the indicated path.  Could someone give me a pointer here?  I've been
> struggling with this for a week and a half now, and not making any
progress
> to speak of...   :(
>
> --
> _______________________________________
> _______________________________________
> _______________________________________
> Gabriel K. McAtee
> Consultant
> Project Leadership Associates
> 250 S. Wacker Dr., Suite 345
> Chicago, IL 60606
> _______________________________________
> _______________________________________
> _______________________________________
>
>
>
> --
> 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 going to assume that /usr/bin/mysql is your base directory. That would
make the shared libraries in the directory /usr/bin/mysql/lib/mysql. A simple:

# ldconfig -m /usr/bin/mysql/lib/mysql

Should fix all your woes. Depending on your flavor of Unix you run, you will
want to add the above directory line to your /etc/ld.so.conf file or similar
hints file.

One other thing... you should be configuring PHP with apxs.. looking something
like:

# ./config --with-mysql=/path/to/MySQL --with-apxs=/path/to/apache/bin/apxs

Hope this helps.

Derek Steinkamp




Gabriel McAtee wrote:

> So.... I have MySQL up and working, Apache up and working, and PHP4 up and
> working... but not connecting to MySQL.  I ran
> "configure --with-mysql=/usr/bin/mysql" which apparently is not correct...
> it returned an error stating that it could not find the MySQL libraries in
> the indicated path.  Could someone give me a pointer here?  I've been
> struggling with this for a week and a half now, and not making any progress
> to speak of...   :(
>
> --
> _______________________________________
> _______________________________________
> _______________________________________
> Gabriel K. McAtee
> Consultant
> Project Leadership Associates
> 250 S. Wacker Dr., Suite 345
> Chicago, IL 60606
> _______________________________________
> _______________________________________
> _______________________________________
>
> --
> 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]





Hi,

in the php.ini file is an configuration Directive, which can be used to
limit memory usage of PHP Scripts. This worked fine since we installed
version 4.0.6.. now, we often get error messages like .... The Script tried
to allocate xxxyyy Bytes more then the configured Maxsize .... and failed.
This is very mysterious, cause the scripts are the same like before. Is
there any bug? Or any changes in the version 4.0.6?
Hope you can answer some of the problems :-).

Greetings,

Stefan Siefert






Hi,

in the php.ini file is an configuration Directive, which can be used to
limit memory usage of PHP Scripts. This worked fine since we installed
version 4.0.6.. now, we often get error messages like .... The Script tried
to allocate xxxyyy Bytes more then the configured Maxsize .... and failed.
This is very mysterious, cause the scripts are the same like before. Is
there any bug? Or any changes in the version 4.0.6?
Hope you can answer some of the problems :-).

Greetings,

Stefan Siefert





I am trying to compile php-4.0.6 on Solaris, in a sun sparc machine. I
have the latest gcc, bison 1.28, gnu tar, and everything php seems to
require. My gcc resides in a remote partition, but it works fine (I've
compiled Apache and MySQL).

Does anyone know what does this error message means?

> # make
> Making all in Zend
> make[1]: Entering directory `/opt/src/php4/Zend'
> /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   
>-D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -o2 
>-I/opt/local/openssl/include -c zend_language_scanner.c
> In file included from ../main/php_config.h:1919,
>                  from zend_config.h:1,
>                  from zend.h:44,
>                  from zend_language_scanner.c:2719:
> /usr/include/stdlib.h:165: conflicting types for `getsubopt'
> /usr/include/stdio.h:267: previous declaration of `getsubopt'
> /usr/include/stdlib.h:189: conflicting types for `getopt'
> /usr/include/stdio.h:265: previous declaration of `getopt'
> In file included from /usr/include/string.h:18,
>                  from ../main/php_config.h:1931,
>                  from zend_config.h:1,
>                  from zend.h:44,
>                  from zend_language_scanner.c:2719:
> /usr/include/iso/string_iso.h:60: warning: conflicting types for built-in function 
>`memcmp'
> /usr/include/iso/string_iso.h:61: warning: conflicting types for built-in function 
>`memcpy'
> /usr/include/iso/string_iso.h:65: warning: conflicting types for built-in function 
>`strcmp'
> /usr/include/iso/string_iso.h:66: warning: conflicting types for built-in function 
>`strcpy'
> In file included from zend_language_scanner.c:2749:
> /usr/include/unistd.h:382: conflicting types for `rename'
> /usr/include/iso/stdio_iso.h:165: previous declaration of `rename'
> zend_language_scanner.c:5441: conflicting types for `zend_scan_string'
> zend_language_scanner.c:256: previous declaration of `zend_scan_string'
> zend_language_scanner.c:5459: conflicting types for `zend_scan_bytes'
> zend_language_scanner.c:257: previous declaration of `zend_scan_bytes'
> zend_language_scanner.c:5552: conflicting types for `yy_fatal_error'
> zend_language_scanner.c:293: previous declaration of `yy_fatal_error'
> make[1]: *** [zend_language_scanner.lo] Error 1
> make[1]: Leaving directory `/opt/src/php4/Zend'
> make: *** [all-recursive] Error 1
>



Reply via email to