php-install Digest 25 Jan 2003 00:45:27 -0000 Issue 1217

Topics (messages 9829 through 9836):

test
        9829 by: Alex Davis

core dump while reading php.ini
        9830 by: Patrick Welche

Trouble compiling PHP 4.3.0 on RedHat8.0
        9831 by: Ben XO

Error on Make Install
        9832 by: Brian Mahaffey

HELP !! Problem with Mysql on windows 2000 prof
        9833 by: osway
        9835 by: Christoph Grottolo

Re: PHP & OpenSSL Windows 2000 IE
        9834 by: Christoph Grottolo

PHP4.2.3 Tomcat4.1.18 RH 7.3 php servlet Apache 1.3.27
        9836 by: Jeremy

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 ---
testing


--- End Message ---
--- Begin Message ---
Running Apache 2.0.43, loading php as a module compiled with
./configure --with-apxs2 --disable-cli --disable-cgi 
--with-config-file-path=/usr/local/etc --enable-track-vars --enable-force-cgi-redirect

apache will run and successfully load php4 (cvs php from yesterday) only
if php.ini is empty. If I put anything in it, it dumps core:

#0  0x482ec192 in memcpy () from /usr/lib/libc.so.12
#1  0xbfbf8d08 in ?? ()
#2  0x483ee264 in zend_parse_ini_file (fh=0xbfbfb3bc, unbuffered_errors=1, 
    ini_parser_cb=0x483da754 <php_config_ini_parser_cb>, arg=0x484554e0)
    at /usr/src/local/php4/Zend/zend_ini_parser.y:164
#3  0x483dac88 in php_init_config () at /usr/src/local/php4/main/php_ini.c:412
#4  0x483d697c in php_module_startup (sf=0x48452fe0, 
    additional_modules=0x484531e0, num_additional_modules=1)
    at /usr/src/local/php4/main/main.c:1213
#5  0x48417a66 in php_apache2_startup (sapi_module=0x48452fe0)
    at /usr/src/local/php4/sapi/apache2filter/sapi_apache2.c:295
#6  0x4841821d in php_apache_server_startup (pconf=0x8100018, plog=0x813c018, 
    ptemp=0x8144018, s=0x8103528)
    at /usr/src/local/php4/sapi/apache2filter/sapi_apache2.c:615
#7  0x80ad9a4 in ap_run_post_config (pconf=0x8100018, plog=0x813c018, 
    ptemp=0x8144018, s=0x8103528) at config.c:130
#8  0x80b2cad in main (argc=3, argv=0xbfbfb650) at main.c:632
#9  0x8066b74 in ___start ()

I am looking at the only memcpy() in zend_ini_parser.y, but don't see
any red flags (checked for snprintf returning -1) Any thoughts?

Cheers,

Patrick

BTW I had to do the following to get yesterday's cvs php to compile..

Index: ext/standard/basic_functions.c
===================================================================
RCS file: /repository/php4/ext/standard/basic_functions.c,v
retrieving revision 1.565
diff -u -r1.565 basic_functions.c
--- ext/standard/basic_functions.c      21 Jan 2003 14:53:16 -0000      1.565
+++ ext/standard/basic_functions.c      24 Jan 2003 13:09:43 -0000
@@ -2824,6 +2824,7 @@
                        zend_hash_update(Z_ARRVAL_P(arr), Z_STRVAL_P(arg1), 
Z_STRLEN_P(arg1)+1, &
element, sizeof(zval *), NULL);
                        break;
 
+#ifdef ZEND_INI_PARSER_POP_ENTRY
                case ZEND_INI_PARSER_POP_ENTRY:
                {
                        zval *hash, **find_hash;
@@ -2850,6 +2851,7 @@
                        add_next_index_zval(hash, element);                     
                }
                break;
+#endif
 
                case ZEND_INI_PARSER_SECTION:
                        break;
Index: main/php_ini.c
===================================================================
RCS file: /repository/php4/main/php_ini.c,v
retrieving revision 1.109
diff -u -r1.109 php_ini.c
--- main/php_ini.c      19 Jan 2003 12:17:38 -0000      1.109
+++ main/php_ini.c      24 Jan 2003 13:09:43 -0000
@@ -196,6 +196,7 @@
                        }
                        break;
 
+#ifdef ZEND_INI_PARSER_POP_ENTRY
                case ZEND_INI_PARSER_POP_ENTRY: {
                                zval *hash;
                                zval **find_hash;
@@ -222,6 +223,7 @@
                                add_next_index_zval(hash, element);                    
 
                        }
                        break;
+#endif
 
                case ZEND_INI_PARSER_SECTION:
                        break;
--- End Message ---
--- Begin Message ---
Hi there, i'm having awful trouble getting PHP 4.3.0 to compile on RedHat
8.0 . The main reason i'm trying to achieve this is to get sablotron working
for XSLT. I have Sablotron compiled and installed.

error:
[root@asbestos php-4.3.0]# make
/bin/sh libtool --silent --mode=link
gcc -DPHP_ATOM_INC -I/home/xo/src/php-4.3.0/include -I/home/xo/src/php-4.3.0
/main -I/home/xo/src/php-4.3.0 -I/usr/include/httpd -I/home/xo/src/php-4.3.0
/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I
/usr/include/mysql -I/usr/include/pspell -I/home/xo/src/php-4.3.0/ext/xml/ex
pat -I/usr/local/include  -I/home/xo/src/php-4.3.0/TSRM  -g -O2   -o
ext/snmp/snmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath
/home/xo/src/php-4.3.0/modules -export-symbols
/home/xo/src/php-4.3.0/sapi/apache2filter/php.sym -avoid-version -module -L/
usr/lib/gcc-lib/i386-redhat-linux/3.2 -L/usr/local/lib
ext/snmp/snmp.lo -lnetsnmp -lcrypto -lelf -lm
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make: *** [ext/snmp/snmp.la] Error 1

Anyone come across this error before? I tried to websearch on that
particular error but most of the advice was inappropriate (and for other
software, things like "then, reinstall (some piece of software i'm not
trying to make work)".

configure:
./configure \
--build=i686-pc-linux-gnu \
--disable-debug \
--disable-rpath \
--enable-bcmath \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-discard-path \
--enable-exif \
--enable-force-cgi-redirect \
--enable-ftp \
--enable-gd-native-ttf \
--enable-inline-optimization \
--enable-libgcc \
--enable-magic-quotes \
--enable-mcal \
--enable-memory-limit \
--enable-pic \
--enable-safe-mode \
--enable-shmop \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-trans-sid \
--enable-ucd-snmp-hack \
--enable-versioning \
--enable-wddx \
--enable-xslt \
--host=i686-pc-linux-gnu \
--target=i686-redhat-linux-gnu \
--with-apxs2=/usr/sbin/apxs \
--with-bz2 \
--with-curl \
--with-db3 \
--with-dom=/usr \
--with-freetype-dir=/usr \
--with-gd \
--with-gdbm \
--with-gettext \
--with-gmp \
--with-gnu-ld \
--with-iconv \
--with-imap=shared \
--with-imap-ssl \
--with-jpeg-dir=/usr \
--with-kerberos=/usr/kerberos \
--with-ldap=shared \
--with-mysql=shared,/usr \
--with-ncurses=shared \
--with-openssl=shared \
--without-oci8 \
--with-pear \
--with-pear=/usr/share/pear \
--with-pgsql=shared \
--with-png \
--with-png-dir=/usr \
--with-pspell \
--with-snmp=shared,/usr \
--with-ttf  \
--with-unixODBC=shared \
--with-xslt-sablot=shared \
--with-zlib=shared




--- End Message ---
--- Begin Message ---
hi,
this is the error i recieve
Redhat 8 apache 2 trying to install DSO php 4.3.0

Installing PHP SAPI module
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL= ' /usr/lib/httpd/build/libtool'
libphp4.la /usr/lib/httpd/build/instdso.sh: No such file or direcotry apxs:
Error: command failed with rc=8323072.

Make: *** [install-sapi] Error 1

thank you,

Brian


--- End Message ---
--- Begin Message ---
Hi, I got a problem with my server windows and mysql.
I've installed on disk E:, because there is more space than in C:

When reboot, start automatically "winmysqladmin" and I see a little a red
light down on the right of screen.
The dbase don't start, also if I click on this light to strat the service.
It says me "error".
If I open a windows of DOS and go under /mysql/bin and write the command
"mysqld --basedir e:/mysql", the light becomes green and he dbase is ok.
In my.ini obviously there are the commands
basedir=E:/mysql  and  datadir=E:/mysql/data

The question is: how do I to start automatically mysql on reboot of the
server without I must write everytime that command ? Why it already don't
start ?

Sorry for my english, thank you for the answer

osway


--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Osway) wrote:

>Hi, I got a problem with my server windows and mysql.

Sorry. This is a php mailing list, not mysql.

Hint: Install MySQL as a service.

Christoph
--- End Message ---
--- Begin Message ---
Hi Stewart

[EMAIL PROTECTED] (Stewart Walker) wrote:

>I can find all kind of doc's on installing openSSL on a client. Can't find 
>any installs or docs for a Windows 2000 server running IE with PHP..

There is a readme for windows in the openssl folder in the current
stable snapshots on http://snaps.php.net.

HTH
Christoph
--- End Message ---
--- Begin Message --- I am trying to get the php servlet up for tomcat4. I used configure --with-java --with-apxs --with-servlet, copied over the phpsrvlt.jar to where it needs to go then make clean and configure --with-apxs --with-mysql --with-java. I have followed all the instructions in the sapi/servlet/README and am now getting the following error:
java.lang.UnsatisfiedLinkError: /usr/lib/apache/libphp4.so: /usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms

It appears that ap_block_alarms is an old api for apache 1.3 that hsa caused some issues when building libphp4.so for use with apache2. Is there anyway to not compile this into libphp4.so tomcat won't blow up on it?

I also had trouble trying to compile 4.3.0 and php4-STABLE-200301201830 (./configure --with-java --with-servlet), getting an error message:
unable to find jni.h in sapi/servlet/servlet.c
If I try to get jni.h (from my j2sdk1.4.1_01 install) in there it breaks on:

/usr/local/src/php4-STABLE-200301201830/sapi/servlet/servlet.c: In function `Java_net_php_servlet_startup':
/usr/local/src/php4-STABLE-200301201830/sapi/servlet/servlet.c:264: warning: passing arg 2 of `php_module_startup' from incompatible pointer type
make: *** No rule to make target `sapi/servlet/java.c', needed by `sapi/servlet/java.lo'. Stop.


I was getting the same error with php4.2.3 and solved it by including in /var/tomcat4/common/lib/servlet.jar in CLASSPATH, but this didn't seem to help with 4.3.0 or STABLE-200301201830.

It may also be of importance I am using the rpm install of tomcat4 tomcat4-admin-webapps-4.1.18-full.1jpp
tomcat4-4.1.18-full.1jpp
tomcat4-webapps-4.1.18-full.1jpp

One other thing, I noticed that --with-java --with-apxs --with-servlet does not actually make libphp4.so or rather it makes it, but apache 1.3.27 doesn't handle it (dir_module undefined symbol).

-Thanks much for any clues ,
Jeremy

--- End Message ---

Reply via email to