php-install Digest 10 Sep 2002 04:04:46 -0000 Issue 1016

Topics (messages 8374 through 8385):

libmcrypt version diagnose
        8374 by: Ed Welsh

PHP/MySql/mod_SSL: Having difficulties :(
        8375 by: Nate Pickett

Re: Installing PHP as a module of Apache 1.3
        8376 by: Jeanne Case

Installing PHP as a module of Apache 1.3.26 - undefined _zval_ptr_dtor_wrapper
        8377 by: David Herring
        8378 by: David Herring
        8380 by: David Herring
        8381 by: David Herring

with-ldap compile error
        8379 by: Rion Monk

installed 4.2.3, but still 4.2.2?
        8382 by: Bryan Koschmann - GKT
        8383 by: Jason Reid

MySQL Source Install Problems
        8384 by: Nate Pickett

4.2.3, apache 2.0.40 file access problem
        8385 by: Vadim Akselrod

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 ---
I get a strange error during configure of php 4.2.3 with apxs on apache 2.0.40, 
libmcrypt 2.5.3 is intalled in /usr/local/lib with all the correct ldconfig 
setup done.

here is the error:
configure: error: Sorry, I was not able to diagnose which libmcrypt version you 
have installed. 

Anyone seen this before?

Let me know any other info you may need to help.

Thanks
EW

 
 


-- 


--- End Message ---
--- Begin Message ---
Hi,

I am having difficulties installing PHP/MySql/mod_SSL on Red Hat 7.2.

Below are the version number of the software packages I am using and
commands that I used to try to install PHP/MySql/mod_SSL.  If any knows what
I am doing wrong or an easier way to install a PHP/MySql/mod_SSL system
please let me know.  Thanks, -Nate

SOFTWARE PACKAGES
Red Hat 7.2 (Kernal 2.4.7.10) - gnome
apache_1.3.2.4
php-4.1.2
mySql-max-3.23.49a
rsaref-2.0
openssl-0.9.6d

COMMANDS
PHP
./configure --with-xml --with-mysql --with-apache=../apache_1.3.24/ --with-c
url=/usr/bin/curl --with-pspell --enable-shared-pdflib --enable-track-vars
openssl
./config --prefix=/usr/local/ssl -L`pwd`/../rsaref-2.0/local/rsaref -fPIC

mod_ssl
./configure --with-apache=/apache_1.3.24/

APACHE

CFLAGS="-DEAPI"; export CFLAGS

CPPFLAGS="-I/www/openssl/include/openssl -DEAPI"; export CPPFLAGS

LDFLAGS=-L/www/openssl/include/openssl; export LDFLAGS

SSL_BASE=../openssl/openssl-0.9.6d RSA_BASE=/openssl/rsaref-2.0/local
./configure --enable-module=ssl --activate-module=src/modules/php4/libphp4.a
 --enable-module=php4 --prefix=/usr/local/apache_1.3.24/ --enable-shared=ssl



--- End Message ---
--- Begin Message ---
In case no one has replied,
They mean where you installed Apache from, not where you are installing 
Apache to. This is assuming you are also installing Apache from source 
and compiling it yourself. The php installs a directory under the apache 
source tree with the php module in it. When you compile Apache you 
specify to --activate-module=src/modules/php4/libphp4.a

-Jeanne

Jimmy Chau wrote:
> "http://www.php.net/manual/en/print/faq.build.php#faq.build.Apache"; says:
> 
> Compile PHP by first running ./configure --with-apache=/<path>/apache-1.3 
>(substitute <path> for the actual path to your apache-1.3 directory.
> 
> does this mean the directory of the PHP source, future binary, or the data for the 
>web pages?
> 
> 
> 
> 

-- 
UNIX Systems Administrator
Academic Resources
Library
Saint Mary's College
Moraga, CA

--- End Message ---
--- Begin Message ---


Installing PHP 4.2.3 under apache 1.3.26 gibes me the following error 
when trying to start apache:-

# /usr/local/apache/bin/apachectl start
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: 
/usr/local/apache/libexec/libphp4.so: undefined symbol: 
_zval_ptr_dtor_wrapper
/usr/local/apache/bin/apachectl start: httpd could not be started
 #


And line 205 of /usr/local/apache/conf/httpd.conf reads:-

LoadModule php4_module        libexec/libphp4.so


Any ideas ?

Thanks Dave

--- End Message ---
--- Begin Message ---

I get the same error with apache 2.0.40... so what's wrong with my php 
compile ?? Under Suse 8.0 with the following config options:-


./configure --enable-debug \
            --with-mysql=/usr/local/mysql \
            --with-gd=/usr/local/gd-1.8.4 \
            --with-png-dir=/usr/lib \
            --with-jpeg-dir=/usr/lib \
            --with-zlib-dir=/usr/lib \
            --with-apxs2=/usr/local/apache2/bin/apxs \
            --with-config-file-path=/usr/local/apache/conf

The undefined function are in:-

linux # pwd
/home/dave/netfm/latest/php-4.2.3/Zend
linux # grep _zval_ptr_dtor_wrapper *
zend_variables.c:ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr)
zend_variables.h:ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr);
zend_variables.h:#define zval_ptr_dtor_wrapper _zval_ptr_dtor_wrapper
linux #

There appear to only get defined if ZEND_DEBUG is set ? Do I have to set 
this - and if so where should it be set.

thanks dave




linux:/home/dave/netfm/latest/php-4.2.3 # 
/usr/local/apache2/bin/apachectl start
Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: 
/usr/local/apache2/modules/libphp4.so: undefined symbol: 
_zval_ptr_dtor_wrapper


David Herring wrote:

>
>
> Installing PHP 4.2.3 under apache 1.3.26 gibes me the following error 
> when trying to start apache:-
>
> # /usr/local/apache/bin/apachectl start
> Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/libphp4.so into server: 
> /usr/local/apache/libexec/libphp4.so: undefined symbol: 
> _zval_ptr_dtor_wrapper linux:/home/dave/netfm/latest/php-4.2.3 # 
> /usr/local/apache2/bin/apachectl start
> Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
> Cannot load /usr/local/apache2/modules/libphp4.so into server: 
> /usr/local/apache2/modules/libphp4.so: undefined symbol: 
> _zval_ptr_dtor_wrapper
>
> /usr/local/apache/bin/apachectl start: httpd could not be started
> #
>
>
> And line 205 of /usr/local/apache/conf/httpd.conf reads:-
>
> LoadModule php4_module        libexec/libphp4.so
>
>
> Any ideas ?
>
> Thanks Dave
>
>



--- End Message ---
--- Begin Message ---

Done some investigation.....

If you remove the  " --enable-debug "" from the configure line below it 
will build and install okay. But then I hit the problem that I hoped 
4.2.3 would address - ImageCreateFromPNG get a segV ever time I call it.

Any ideas on this ?

Thanks Dave

David Herring wrote:

>
> I get the same error with apache 2.0.40... so what's wrong with my php 
> compile ?? Under Suse 8.0 with the following config options:-
>
>
> ./configure --enable-debug \
>            --with-mysql=/usr/local/mysql \
>            --with-gd=/usr/local/gd-1.8.4 \
>            --with-png-dir=/usr/lib \
>            --with-jpeg-dir=/usr/lib \
>            --with-zlib-dir=/usr/lib \
>            --with-apxs2=/usr/local/apache2/bin/apxs \
>            --with-config-file-path=/usr/local/apache/conf
>
> The undefined function are in:-
>
> linux # pwd
> /home/dave/netfm/latest/php-4.2.3/Zend
> linux # grep _zval_ptr_dtor_wrapper *
> zend_variables.c:ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr)
> zend_variables.h:ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr);
> zend_variables.h:#define zval_ptr_dtor_wrapper _zval_ptr_dtor_wrapper
> linux #
>
> There appear to only get defined if ZEND_DEBUG is set ? Do I have to 
> set this - and if so where should it be set.
>
> thanks dave
>
>
>
>
> linux:/home/dave/netfm/latest/php-4.2.3 # 
> /usr/local/apache2/bin/apachectl start
> Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
> Cannot load /usr/local/apache2/modules/libphp4.so into server: 
> /usr/local/apache2/modules/libphp4.so: undefined symbol: 
> _zval_ptr_dtor_wrapper
>
>
> David Herring wrote:
>
>>
>>
>> Installing PHP 4.2.3 under apache 1.3.26 gibes me the following error 
>> when trying to start apache:-
>>
>> # /usr/local/apache/bin/apachectl start
>> Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
>> Cannot load /usr/local/apache/libexec/libphp4.so into server: 
>> /usr/local/apache/libexec/libphp4.so: undefined symbol: 
>> _zval_ptr_dtor_wrapper linux:/home/dave/netfm/latest/php-4.2.3 # 
>> /usr/local/apache2/bin/apachectl start
>> Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
>> Cannot load /usr/local/apache2/modules/libphp4.so into server: 
>> /usr/local/apache2/modules/libphp4.so: undefined symbol: 
>> _zval_ptr_dtor_wrapper
>>
>> /usr/local/apache/bin/apachectl start: httpd could not be started
>> #
>>
>>
>> And line 205 of /usr/local/apache/conf/httpd.conf reads:-
>>
>> LoadModule php4_module        libexec/libphp4.so
>>
>>
>> Any ideas ?
>>
>> Thanks Dave
>>
>>
>
>
>
>



--- End Message ---
--- Begin Message ---


What are the latest known to be working versions of gd and libpng which 
one should compile php 4.2.3 with ?

(so far tried gd 1.8.4 / 2.0.1 and libpng 2.1.4 / 1.0.14 - aways fails 
on imagecreatefrompng)

thx dave

David Herring wrote:

>
> Done some investigation.....
>
> If you remove the  " --enable-debug "" from the configure line below 
> it will build and install okay. But then I hit the problem that I 
> hoped 4.2.3 would address - ImageCreateFromPNG gets a segV ever time I 
> call it.
>
> Any ideas on this ?
>
> Thanks Dave
>
> David Herring wrote:
>
>>
>> I get the same error with apache 2.0.40... so what's wrong with my 
>> php compile ?? Under Suse 8.0 with the following config options:-
>>
>>
>> ./configure --enable-debug \
>>            --with-mysql=/usr/local/mysql \
>>            --with-gd=/usr/local/gd-1.8.4 \
>>            --with-png-dir=/usr/lib \
>>            --with-jpeg-dir=/usr/lib \
>>            --with-zlib-dir=/usr/lib \
>>            --with-apxs2=/usr/local/apache2/bin/apxs \
>>            --with-config-file-path=/usr/local/apache/conf
>>
>> The undefined function are in:-
>>
>> linux # pwd
>> /home/dave/netfm/latest/php-4.2.3/Zend
>> linux # grep _zval_ptr_dtor_wrapper *
>> zend_variables.c:ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr)
>> zend_variables.h:ZEND_API void _zval_ptr_dtor_wrapper(zval **zval_ptr);
>> zend_variables.h:#define zval_ptr_dtor_wrapper _zval_ptr_dtor_wrapper
>> linux #
>>
>> There appear to only get defined if ZEND_DEBUG is set ? Do I have to 
>> set this - and if so where should it be set.
>>
>> thanks dave
>>
>>
>>
>>
>> linux:/home/dave/netfm/latest/php-4.2.3 # 
>> /usr/local/apache2/bin/apachectl start
>> Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
>> Cannot load /usr/local/apache2/modules/libphp4.so into server: 
>> /usr/local/apache2/modules/libphp4.so: undefined symbol: 
>> _zval_ptr_dtor_wrapper
>>
>>
>> David Herring wrote:
>>
>>>
>>>
>>> Installing PHP 4.2.3 under apache 1.3.26 gibes me the following 
>>> error when trying to start apache:-
>>>
>>> # /usr/local/apache/bin/apachectl start
>>> Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
>>> Cannot load /usr/local/apache/libexec/libphp4.so into server: 
>>> /usr/local/apache/libexec/libphp4.so: undefined symbol: 
>>> _zval_ptr_dtor_wrapper linux:/home/dave/netfm/latest/php-4.2.3 # 
>>> /usr/local/apache2/bin/apachectl start
>>> Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
>>> Cannot load /usr/local/apache2/modules/libphp4.so into server: 
>>> /usr/local/apache2/modules/libphp4.so: undefined symbol: 
>>> _zval_ptr_dtor_wrapper
>>>
>>> /usr/local/apache/bin/apachectl start: httpd could not be started
>>> #
>>>
>>>
>>> And line 205 of /usr/local/apache/conf/httpd.conf reads:-
>>>
>>> LoadModule php4_module        libexec/libphp4.so
>>>
>>>
>>> Any ideas ?
>>>
>>> Thanks Dave
>>>
>>>
>>
>>
>>
>>
>
>
>
>
>



--- End Message ---
--- Begin Message ---
All,

I'm having trouble getting PHP v4.2.3 to compile with the --with-ldap 
parameter on a Solaris 2.7 box.  (Everything compiles fine without it). 
  I built Apache v1.3.26 with --enable-module=so and it compiles and 
runs just fine.

When I run make for PHP I get the following, eventually:

make[3]: Entering directory `/tmp/php-4.2.3/ext/ldap'
/bin/sh /tmp/php-4.2.3/libtool --silent --mode=compile gcc  -I. 
-I/tmp/php-4.2.3/ext/ldap -I/tmp/php-4.2.3/main -I/tmp/php-4.2.3 
-I/usr/local/apache/include -I/tmp/php-4.2.3/Zend 
-I/tmp/php-4.2.3/ext/mysql/libmysql -I/tmp/php-4.2.3/ext/xml/expat 
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DUSE_EXPAT 
-I/tmp/php-4.2.3/TSRM -g -O2 -prefer-pic  -c ldap.c
ldap.c: In function `_get_lderrno':
ldap.c:448: dereferencing pointer to incomplete type
ldap.c: In function `php_set_opts':
ldap.c:531: dereferencing pointer to incomplete type
ldap.c:540: dereferencing pointer to incomplete type
ldap.c:549: dereferencing pointer to incomplete type

I've tried searching the archives but I found no solutions.  Has anyone 
out there run across something like this?  Any clues as to what to do?

Thanks,


- rm

--- End Message ---
--- Begin Message ---
Hello,

I have just installed 4.2.3 (downloaded, untar, configure, make, make
install) but it doesn't seem to be showing up. I have file with the php
info tag in it, but it still shows as 4.2.2. I used the same configure
line as before:

./configure --with-mysql=/usr/local/mysql --enable-force-cgi-redirect --with-gettext 
--with-apxs2=/usr/local/apache2/bin/apxs

This is with Apache 2.0.39. The /server-status even shows php 4.2.2.

I'm not sure what I'm missing here, any help would be great.

Thanks!

        Bryan

--- End Message ---
--- Begin Message ---
Did you remember to restart apache afterwards?

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

----- Original Message -----
From: "Bryan Koschmann - GKT" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 5:11 PM
Subject: [PHP-INST] installed 4.2.3, but still 4.2.2?


> Hello,
>
> I have just installed 4.2.3 (downloaded, untar, configure, make, make
> install) but it doesn't seem to be showing up. I have file with the php
> info tag in it, but it still shows as 4.2.2. I used the same configure
> line as before:
>
>
./configure --with-mysql=/usr/local/mysql --enable-force-cgi-redirect --with
-gettext --with-apxs2=/usr/local/apache2/bin/apxs
>
> This is with Apache 2.0.39. The /server-status even shows php 4.2.2.
>
> I'm not sure what I'm missing here, any help would be great.
>
> Thanks!
>
> Bryan
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
Hi,

When I try to run the configure script for mysql-max-3.23.49a, it seems to
hang after the script outputs "020909 19:11:20 mysqld ended".  Then when I
hit return (to get the prompt back) and run make it says "make: *** No
targets specified and no makefile found. Stop.".  Does anyone know why this
might be happening?  Below is the output from running "./configure" and
"make" along with my system/application specs.  Thanks, -Nate

SYSTEM/APPLICATION SPECS

Red Hat 7.2 (Kernal 2.4.7.10) - gnome
mySql-max-3.23.49a


CONFIGURE SCRIPT

>./configure --prefix=/usr/local/mysql-max-3.23.49a/

NOTE: This is a MySQL binary distribution. It's ready to run, you don't

need to configure it!

To help you a bit, I am now going to create the needed MySQL databases

and start the MySQL server for you. If you run into any trouble, please

consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables

020909 19:11:20 ./bin/mysqld: Shutdown Complete

To start mysqld at boot time you have to copy support-files/mysql.server

to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

This is done with:

./bin/mysqladmin -u root -p password 'new-password'

./bin/mysqladmin -u root -h localhost -p password 'new-password'

See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run

the ./bin/mysql_fix_privilege_tables. Otherwise you will not be

able to use the new GRANT command!

You can start the MySQL daemon with:

cd . ; ./bin/safe_mysqld &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' direct

cd sql-bench ; run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at https://order.mysql.com

Starting the mysqld server. You can test that it is up and running

with the command:

./bin/mysqladmin version

> Starting mysqld daemon with databases

/mysql-max-3.23.49a/data

020909 19:11:20 mysqld ended

> make

make: *** No targets specified and no makefile found. Stop.



--- End Message ---
--- Begin Message ---
I upgraded to 4.2.3, but am having file access problems.  

If I access a file by full path, it works fine.
If I access a file in the local dir, it fails.  Even though getcwd() is
the same as the full path above.

Any ideas?  This is on redhat 7.2.  Thanks!

Cheers,

-Vadim

PS: Here's the code that fails:

$file = "test";
if(!is_writable(getcwd() . "/" . $file))... // works
if(!is_writable($file))... // fails

--- End Message ---

Reply via email to