php-install Digest 23 Feb 2002 06:13:50 -0000 Issue 713

Topics (messages 6120 through 6134):

Re: php 4.0.x and php 4.1.x at the same time...
        6120 by: Rasmus Lerdorf

problem configuring php-4.1.1
        6121 by: Gérard Gachelin
        6122 by: Rasmus Lerdorf
        6123 by: Gérard Gachelin

error compiling php 4.1.1
        6124 by: Gérard Gachelin

php configuration error with mysql
        6125 by: nagendra  prasad

php to php3 extn
        6126 by: nagendra  prasad
        6130 by: Chris Hewitt

confirm: e2f4d91b0b9906bcd5b31d699ab13d65 [EMAIL PROTECTED]]
        6127 by: Erich Boeck

Re: PHP4, Apache and W2k installation not working
        6128 by: Erich Boeck

help in configuring php with mysql
        6129 by: nagendra  prasad

PHP.ini not to be found - PHP 4.06 on MacOS X
        6131 by: Eric Bontenbal

Re: Problem with php and apache in HPUX
        6132 by: Jim Thome

httpd consume 90% CPU with php
        6133 by: Brian Jacobs

Newbie question regarding unix sendmail form feedback email processing
        6134 by: Jim Hankins

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 ---
You can't run those side-by-side.  You'd have to make one a CGI and the
other a module or something.

-Rasmus

On Fri, 22 Feb 2002, Marcin Antczak wrote:

> On 21 Feb 2002 20:22:25 +0100
> [EMAIL PROTECTED] (B. Perrine) wrote:
>
> > Read the excellent documentation on www.php.net.
>
> Oh, really?
>
> Maybe I'm blind but I really can't see anything in manual and faq about
> this installation option...
>
> Marcin
>
>
> > le jeu 21-02-2002 à 14:10, Marcin Antczak a écrit :
> > > How can I build and configure php 4.0.x and php 4.1.x to use at the
> > > same time... on Apache http server and Debian or RedHat Linux?
> > > I know that with php 3 and php 4 was this possibility - but what
> > > about 4.0.x and 4.1.x ???
> > >
> > >
> > > Marcin
> > >
> > >
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I have a problem configuring php 4.1.1 on a Sparc Server running Solaris 8.
C compiler : gcc 2.95.3
OpenLDAP 2.0.23 is installed.
In debug.log I find :

gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 
-DMOD_SSL=208106 -DMOD_PERL -DUSE_PERL_SSI -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -DEAPI -DEAPI_MM -DUSE_EXPAT  -R/usr/ucblib 
-L/usr/ucblib -R/usr/local/ssl/lib -L/usr/local/ssl/lib 
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/usr/local/lib 
-L/usr/local/lib -R/usr/local/mysql/lib -L/usr/local/mysql/lib 
conftest.c -lmm -lmysqlclient -lz -lldap -lintl -lgd -ljpeg -lz -lcrypt 
-lssl -lcrypto -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc 
-lcrypt 1>&5
Undefined                       first referenced
  symbol                             in file
ber_dup                             /usr/local/lib/libldap.so
ber_get_int                         /usr/local/lib/libldap.so
ber_printf                          /usr/local/lib/libldap.so
ber_next_element                    /usr/local/lib/libldap.so
ber_sockbuf_io_readahead            /usr/local/lib/libldap.so
ber_init                            /usr/local/lib/libldap.so
ber_write                           /usr/local/lib/libldap.so
ber_log_dump                        /usr/local/lib/libldap.so
ber_first_element                   /usr/local/lib/libldap.so
ber_sockbuf_alloc                   /usr/local/lib/libldap.so
ber_reset                           /usr/local/lib/libldap.so
ber_sockbuf_io_tcp                  /usr/local/lib/libldap.so
ber_sockbuf_remove_io               /usr/local/lib/libldap.so
ber_memrealloc                      /usr/local/lib/libldap.so
ber_sockbuf_io_fd                   /usr/local/lib/libldap.so
ber_flush                           /usr/local/lib/libldap.so
ber_flatten                         /usr/local/lib/libldap.so
ber_pvt_socket_set_nonblock         /usr/local/lib/libldap.so
ber_scanf                           /usr/local/lib/libldap.so
ber_peek_tag                        /usr/local/lib/libldap.so
ber_memfree                         /usr/local/lib/libldap.so
ber_memcalloc                       /usr/local/lib/libldap.so
ber_set_option                      /usr/local/lib/libldap.so
ber_memvfree                        /usr/local/lib/libldap.so
ber_sockbuf_io_debug                /usr/local/lib/libldap.so
ber_get_next                        /usr/local/lib/libldap.so
ber_sockbuf_ctrl                    /usr/local/lib/libldap.so
ber_bvfree                          /usr/local/lib/libldap.so
ber_free                            /usr/local/lib/libldap.so
ber_bvecfree                        /usr/local/lib/libldap.so
ber_memalloc                        /usr/local/lib/libldap.so
ber_strdup                          /usr/local/lib/libldap.so
ber_sockbuf_free                    /usr/local/lib/libldap.so
ber_skip_tag                        /usr/local/lib/libldap.so
ber_pvt_log_print                   /usr/local/lib/libldap.so
ber_alloc_t                         /usr/local/lib/libldap.so
ber_sockbuf_add_io                  /usr/local/lib/libldap.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
(END)

Here attached is the whole debug.log file

Thanx for any help

-- 
Gerard Gachelin                         Universite de la Reunion
15, Avenue Rene Cassin - BP 7151        97715 Saint-Denis MESSAG-CEDEX 9
Tel: 0262 93 82 72                      Fax: 0262 93 82 60
Email : [EMAIL PROTECTED]
CONFIGURE:   './configure' '--with-apxs=/usr/local/apache/bin/apxs' 
'--with-mysql=/usr/local/mysql' '--enable-track-vars' '--with-openssl=/usr/local/ssl' 
'--with-imap-ssl=../imap-2001a' '--with-gd' '--with-ldap' '--enable-ftp' 
'--enable-sysvsem' '--enable-sysvshm' '--enable-sockets' 
'--with-pdflib=/usr/local/lib' '--with-gettext' '--with-mm=../mm-1.1.3' 
'--with-jpeg-dir=/usr/local/lib' '--with-zlib-dir=/usr/local/lib'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208106 -DMOD_PERL 
-DUSE_PERL_SSI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI -DEAPI_MM -DUSE_EXPAT
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/local/apache/include  -I$(top_builddir)/Zend 
-I/usr/local/ssl/include -I/usr/local/mysql/include -I/usr/local/include
LDFLAGS:     -R/usr/ucblib -L/usr/ucblib -R/usr/local/ssl/lib -L/usr/local/ssl/lib 
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/usr/local/lib -L/usr/local/lib 
-R/usr/local/mysql/lib -L/usr/local/mysql/lib
LIBS:       -lmm -lmysqlclient -lz -lldap -lintl -lgd -ljpeg -lz -lcrypt -lssl 
-lcrypto -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc -lcrypt
DLIBS:      
SAPI:       apache
PHP_RPATHS:  /usr/ucblib /usr/local/ssl/lib 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 /usr/local/lib /usr/local/mysql/lib
uname -a:   SunOS gaia 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-4

gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208106 
-DMOD_PERL -DUSE_PERL_SSI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI -DEAPI_MM 
-DUSE_EXPAT  -R/usr/ucblib -L/usr/ucblib -R/usr/local/ssl/lib -L/usr/local/ssl/lib 
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/usr/local/lib -L/usr/local/lib 
-R/usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c -lmm -lmysqlclient -lz -lldap 
-lintl -lgd -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lresolv -lm -ldl -lnsl 
-lsocket  -lsocket -lgcc -lcrypt 1>&5
Undefined                       first referenced
 symbol                             in file
ber_dup                             /usr/local/lib/libldap.so
ber_get_int                         /usr/local/lib/libldap.so
ber_printf                          /usr/local/lib/libldap.so
ber_next_element                    /usr/local/lib/libldap.so
ber_sockbuf_io_readahead            /usr/local/lib/libldap.so
ber_init                            /usr/local/lib/libldap.so
ber_write                           /usr/local/lib/libldap.so
ber_log_dump                        /usr/local/lib/libldap.so
ber_first_element                   /usr/local/lib/libldap.so
ber_sockbuf_alloc                   /usr/local/lib/libldap.so
ber_reset                           /usr/local/lib/libldap.so
ber_sockbuf_io_tcp                  /usr/local/lib/libldap.so
ber_sockbuf_remove_io               /usr/local/lib/libldap.so
ber_memrealloc                      /usr/local/lib/libldap.so
ber_sockbuf_io_fd                   /usr/local/lib/libldap.so
ber_flush                           /usr/local/lib/libldap.so
ber_flatten                         /usr/local/lib/libldap.so
ber_pvt_socket_set_nonblock         /usr/local/lib/libldap.so
ber_scanf                           /usr/local/lib/libldap.so
ber_peek_tag                        /usr/local/lib/libldap.so
ber_memfree                         /usr/local/lib/libldap.so
ber_memcalloc                       /usr/local/lib/libldap.so
ber_set_option                      /usr/local/lib/libldap.so
ber_memvfree                        /usr/local/lib/libldap.so
ber_sockbuf_io_debug                /usr/local/lib/libldap.so
ber_get_next                        /usr/local/lib/libldap.so
ber_sockbuf_ctrl                    /usr/local/lib/libldap.so
ber_bvfree                          /usr/local/lib/libldap.so
ber_free                            /usr/local/lib/libldap.so
ber_bvecfree                        /usr/local/lib/libldap.so
ber_memalloc                        /usr/local/lib/libldap.so
ber_strdup                          /usr/local/lib/libldap.so
ber_sockbuf_free                    /usr/local/lib/libldap.so
ber_skip_tag                        /usr/local/lib/libldap.so
ber_pvt_log_print                   /usr/local/lib/libldap.so
ber_alloc_t                         /usr/local/lib/libldap.so
ber_sockbuf_add_io                  /usr/local/lib/libldap.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
--- End Message ---
--- Begin Message ---
For some reason -llber is missing.  Do you have a liblber.a or liblber.so
file on your system?  If so, which directory is it in?  If, for example it
is in /usr/lib/libllber.a then use --with-ldap=/usr and try again.

Otherwise manually hack the Makefile and add a -llber to the LIBS line.
but the configure check really should have picked up this library if in
fact you have it installed on your system.  My guess is that it is missing
from your system.

-Rasmus

On Fri, 22 Feb 2002, [ISO-8859-1] Gérard Gachelin wrote:

> I have a problem configuring php 4.1.1 on a Sparc Server running Solaris 8.
> C compiler : gcc 2.95.3
> OpenLDAP 2.0.23 is installed.
> In debug.log I find :
>
> gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280
> -DMOD_SSL=208106 -DMOD_PERL -DUSE_PERL_SSI -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DEAPI -DEAPI_MM -DUSE_EXPAT  -R/usr/ucblib
> -L/usr/ucblib -R/usr/local/ssl/lib -L/usr/local/ssl/lib
> -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3
> -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/usr/local/lib
> -L/usr/local/lib -R/usr/local/mysql/lib -L/usr/local/mysql/lib
> conftest.c -lmm -lmysqlclient -lz -lldap -lintl -lgd -ljpeg -lz -lcrypt
> -lssl -lcrypto -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc
> -lcrypt 1>&5
> Undefined                       first referenced
>   symbol                             in file
> ber_dup                             /usr/local/lib/libldap.so
> ber_get_int                         /usr/local/lib/libldap.so
> ber_printf                          /usr/local/lib/libldap.so
> ber_next_element                    /usr/local/lib/libldap.so
> ber_sockbuf_io_readahead            /usr/local/lib/libldap.so
> ber_init                            /usr/local/lib/libldap.so
> ber_write                           /usr/local/lib/libldap.so
> ber_log_dump                        /usr/local/lib/libldap.so
> ber_first_element                   /usr/local/lib/libldap.so
> ber_sockbuf_alloc                   /usr/local/lib/libldap.so
> ber_reset                           /usr/local/lib/libldap.so
> ber_sockbuf_io_tcp                  /usr/local/lib/libldap.so
> ber_sockbuf_remove_io               /usr/local/lib/libldap.so
> ber_memrealloc                      /usr/local/lib/libldap.so
> ber_sockbuf_io_fd                   /usr/local/lib/libldap.so
> ber_flush                           /usr/local/lib/libldap.so
> ber_flatten                         /usr/local/lib/libldap.so
> ber_pvt_socket_set_nonblock         /usr/local/lib/libldap.so
> ber_scanf                           /usr/local/lib/libldap.so
> ber_peek_tag                        /usr/local/lib/libldap.so
> ber_memfree                         /usr/local/lib/libldap.so
> ber_memcalloc                       /usr/local/lib/libldap.so
> ber_set_option                      /usr/local/lib/libldap.so
> ber_memvfree                        /usr/local/lib/libldap.so
> ber_sockbuf_io_debug                /usr/local/lib/libldap.so
> ber_get_next                        /usr/local/lib/libldap.so
> ber_sockbuf_ctrl                    /usr/local/lib/libldap.so
> ber_bvfree                          /usr/local/lib/libldap.so
> ber_free                            /usr/local/lib/libldap.so
> ber_bvecfree                        /usr/local/lib/libldap.so
> ber_memalloc                        /usr/local/lib/libldap.so
> ber_strdup                          /usr/local/lib/libldap.so
> ber_sockbuf_free                    /usr/local/lib/libldap.so
> ber_skip_tag                        /usr/local/lib/libldap.so
> ber_pvt_log_print                   /usr/local/lib/libldap.so
> ber_alloc_t                         /usr/local/lib/libldap.so
> ber_sockbuf_add_io                  /usr/local/lib/libldap.so
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> (END)
>
> Here attached is the whole debug.log file
>
> Thanx for any help
>
> --
> Gerard Gachelin                               Universite de la Reunion
> 15, Avenue Rene Cassin - BP 7151      97715 Saint-Denis MESSAG-CEDEX 9
> Tel: 0262 93 82 72                    Fax: 0262 93 82 60
> Email : [EMAIL PROTECTED]
>

--- End Message ---
--- Begin Message ---
Rasmus Lerdorf wrote:
> For some reason -llber is missing.  Do you have a liblber.a or liblber.so
> file on your system?  If so, which directory is it in?  If, for example it
> is in /usr/lib/libllber.a then use --with-ldap=/usr and try again.
> 
> Otherwise manually hack the Makefile and add a -llber to the LIBS line.
> but the configure check really should have picked up this library if in
> fact you have it installed on your system.  My guess is that it is missing
> from your system.
> 
The libber libs are there.
In ./configure I changed --with-ldap with --with-ldap=/usr/local and now 
it works.
Thank you for your help.

-- 
Gerard Gachelin                         Universite de la Reunion
15, Avenue Rene Cassin - BP 7151        97715 Saint-Denis MESSAG-CEDEX 9
Tel: 0262 93 82 72                      Fax: 0262 93 82 60
Email : [EMAIL PROTECTED]

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

Now I can't compile php 4.1.1 under Solaris 8 (gcc 2.95.3).

make crashes with the following message :

gmake[3]: Entering directory `/local/src/php-4.1.1/ext/standard'
/bin/sh /local/src/php-4.1.1/libtool --silent --mode=compile gcc  -I. 
-I/local/src/php-4.1.1/ext/standard -I/local/src/php-4.1.1/main 
-I/local/src/php-4.1.1 -I/usr/local/apache/include 
-I/local/src/php-4.1.1/Zend -I/usr/local/ssl/include 
-I/usr/local/include -I/usr/local/mysql/include 
-I/local/src/php-4.1.1/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS 
-DSOLARIS2=280 -DMOD_SSL=208106 -DMOD_PERL -DUSE_PERL_SSI 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI -DEAPI_MM -DUSE_EXPAT 
-I/local/src/php-4.1.1/TSRM -g -O2 -prefer-pic  -c mail.c
mail.c: In function `php_mail':
mail.c:191: `EX_OK' undeclared (first use in this function)
mail.c:191: (Each undeclared identifier is reported only once
mail.c:191: for each function it appears in.)
gmake[3]: *** [mail.lo] Error 1
gmake[3]: Leaving directory `/local/src/php-4.1.1/ext/standard'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/local/src/php-4.1.1/ext/standard'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/local/src/php-4.1.1/ext'
gmake: *** [all-recursive] Error 1

Here is the configure I used :

  ./configure --with-apxs=/usr/local/apache/bin/apxs 
--with-mysql=/usr/local/mysql --enable-track-vars 
--with-openssl=/usr/local/ssl --with-imap-ssl=../imap-2001a --with-gd 
--with-ldap=/usr/local --enable-ftp --enable-sysvsem --enable-sysvshm 
--enable-sockets --with-pdflib=/usr/local/lib --with-gettext 
--with-mm=../mm-1.1.3 --with-jpeg-dir=/usr/local/lib 
--with-zlib-dir=/usr/local/lib

No error message in the log file.
-- 

-- 
Gerard Gachelin                         Universite de la Reunion
15, Avenue Rene Cassin - BP 7151        97715 Saint-Denis MESSAG-CEDEX 9
Tel: 0262 93 82 72                      Fax: 0262 93 82 60
Email : [EMAIL PROTECTED]

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

hi,
when i type in shell
./configure --with apache=..\..... --with-mysql=/usr/bin/mysql
 & press return it says 
header r not found in /usr/bin/mysql
where will these heared files be generally (by default)
i installed mysql using red carpet
help me.
i'm struck
prasad
 

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

hi,
initially i have configured my default extention(infact it took the deafult one)now i 
also need my php interpreter to recognise my php file even if it has the extn as 
php3.what should i do.
help me
i'm struck
prasad
 

--- End Message ---
--- Begin Message ---
Prasad,

If I understand you correctly, you have files with the extention "php" 
parsed by php and now want ones with the extention "php3"too. You do not 
say the webserver you are using but if Apache it is the AddType lines. 
This line is commonly:

AddType application/x-httpd-php .php .php4 .php3 .phtml

Make sure "php3" is there.

Regards

Chris

nagendra prasad wrote:

>hi,
>initially i have configured my default extention(infact it took the deafult one)now i 
>also need my php interpreter to recognise my php file even if it has the extn as 
>php3.what should i do.
>help me
>i'm struck
>prasad
> 
>
>



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

--- End Message ---
--- Begin Message ---
Hi
try the complett Path in ScriptAlias /php/ "c::/php/"

Regards

"Kjell Hansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all!
> I've banged my head to the keyboard and to the installation notes of
> PHP4 but I still can't make it work.
> pls Help Me!
> This works:
> php.exe -i              ( from the command prompt from any dir.)
> php.exe test.php    (from the php-dir)
> apache error file reports no errors when starting
>
> This won't do
> http://localhost/test.php    Reports Bad Request (HTTP 400) Invalid URI
> in request
>
> The test page contains just a single word of Joy!, no html tags, no php
> tags no nothing at all except for the Joy!-word
>
> These lines are the new to my Apache-conf file (in order of appearance)
> ScriptAlias /php/ "f:/php/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
> Action application/x-httpd-php "php.exe"
>
> Hope someone will know what's wrong!
> TIA
> Kjell Hansen
>
>
>


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

hi 
i used redcarpet to install mysql in my system.
it installed well.
but the configuration probs occured in the dependencies .when i checked if mysql is 
installed well using a pgm in php(just to connect to a db) it says 
"mysql_connect()/mysql_pconnect() - called a unidentified function"
doesn't redcarpet take care of this configuration with php? which is generally done 
using ./configure --with-apache=../.... --with-mysql=/usr/bin/mysql 
prefix=/usr/local/php4

but when i do this in shell it says some header files r not found in the dir 
/usr/bin/mysql

also i tried with the dir /usr/include/mysql

plz help me out
tnx
prasad


 

--- End Message ---
--- Begin Message ---
Hey there,
I use PHP on MacOS X and keep running into errors while trying to get a
tutorial e-commerce site up and running.

Warning: Failed opening
'/Library/WebServer/Documents/mymarket/admin/index.php' for inclusion
(include_path='.:/usr/lib/php') in Unknown on line 0

So I figured it might have to do with the PHP.ini file but that file is
nowhere to be found on my system.

When I <? run phpinfo(); ?> it says that it sits in /usr/lib but all that is
sitting there is:


bundle1.o
crt1.o
dyld
dylib1.o
gcrt1.o
java
libDHCPServer.A.dylib
libDHCPServer.dylib
libIOKit.A.dylib
libIOKit.dylib
libSystem.B.dylib
libSystem.dylib
libalias.A.dylib
libalias.dylib
libc.dylib
libcom_err.dylib
libcrypto.0.9.dylib
libcrypto.dylib
libcurses.dylib
libdes524.dylib
libgssapi_krb5.dylib
libinfo.dylib
libk5crypto.dylib
libkmod.a
libkmodc++.a
libkrb4.dylib
libkrb5.dylib
libkvm.dylib
libm.dylib
libobjc.A.dylib
libobjc.dylib
libpcap.A.dylib
libpcap.dylib
libpthread.dylib
libssl.0.9.dylib
libssl.dylib
libtcl.dylib
libtcl8.3.dylib
libz.1.1.3.dylib
libz.1.dylib
libz.dylib
php

PHP is a directory with the following files:

/usr/lib/php
/usr/lib/php/build
/usr/lib/php/build/acinclude.m4
/usr/lib/php/build/dynlib.m4
/usr/lib/php/build/dynlib.mk
/usr/lib/php/build/fastgen.sh
/usr/lib/php/build/library.mk
/usr/lib/php/build/ltlib.mk
/usr/lib/php/build/mkdep.awk
/usr/lib/php/build/pear.m4
/usr/lib/php/build/program.mk
/usr/lib/php/build/rules.mk
/usr/lib/php/build/rules_common.mk
/usr/lib/php/build/rules_pear.mk
/usr/lib/php/build/shtool
/usr/lib/php/extensions
/usr/lib/php/extensions/no-debug-non-zts-20001222


Anyone out there able to help me?

thanks, Eric

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

I am including below, detailed instructions (from HP) on how to compile Apache and PHP 
dso on HPUX.  Note the libtool hack BEFORE running make.  I recommend removing your 
current PHP source directories and starting over with these instructions:

######################################
INSTALL_php_on_HP_apache.txt

-----------------------------------------------------------------------
Installation Instructions for PHP 4.0

Note: At some points you will need to use sudo if you are not root.
The following instructions are relevant only for the official HP
distribution of Apache (1.3.12), the version of gcc on the Open
Source Developer's Toolkit CD-ROM (X.Y.Z), and php-4.0.2.
Apache and gcc must be installed on your system before attempting
to compile PHP and mod_php.

QUICK INSTALL (DSO)

For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.  

  $ /opt/apache/bin/httpd -l

You should see something like:

Compiled-in modules:
  http_core.c
  mod_so.c

Chances are you will see a lot more modules than these two. That's ok, 
as long as mod_so.c shows up you can proceed with the following steps:

-----------------------------------------------------------------------
1. Unpack your distribution file.  

You can get the latest version from "http://www.php.net/";

  $ cd /opt
  $ mkdir php
  $ mv <wherever it is>/php-4.0.<?>.tar.gz /opt/php
  $ cd /opt/php

  $ gunzip -c php-4.0.x.tar.gz | tar xf -
  $ cd php-4.0.x

-----------------------------------------------------------------------
2. Configure PHP

When running configure, you should use at least the following
command line:

  $ ./configure --enable-libgcc --with-apxs=/opt/apache/bin/apxs

You can add other options if you like.  You can use the --help
option to configure to get a complete list.

After configure runs, you must edit the file libtool.  

  $ vi ./libtool

At line 184, you should change the line from:

  deplibs_check_method="unknown"
to
  deplibs_check_method="pass_all"

so that PHP and mod_php are properly compiled.

-----------------------------------------------------------------------
3. Compile and install the files.

Run make.  This should complete normally.

  $ make

Run make install.  This will fail when it attempts to call apxs.

  $ make install

Program will crash after apxs call.
Copy the call to apxs along with all its arguments.

Rename the file "libs/libphp4.sl" to "libs/libphp4.so".
  
  $ mv lib/libphp4.sl lib/libphp4.so

Re-run the command that you copied earlier but change the reference
of "lib/libphp4.sl" to "lib/php4.so":

  $ /opt/apache/bin/apxs -i -a -n php4 libs/libphp4.so

-----------------------------------------------------------------------
4. Setup the server

Next you must copy php.ini-dist to the appropriate place (normally
/usr/local/lib/php.ini) and edit it as necessary to set PHP options.

  $ sudo cp php.ini-dist /usr/local/lib/php.ini

The only thing left to do is to edit your httpd.conf file:

Look for the string "php4" and make sure that the "LoadModule"
and "AddModule" directives are outside any "IfDefine SSL" directives.

  $ vi /opt/apache/conf/httpd.conf 

  LoadModule php4_module        libexec/libphp4.so

  AddModule mod_php4.c

Also make sure the PHP 4 mime type is there and uncommented.  
You need a line that looks like this:

   AddType application/x-httpd-php .php

-----------------------------------------------------------------------
5. Testing it all worked

Restart your server. 

  $ sudo /opt/apache/bin/apachectl restart

You should be able to serve up PHP files now.  Make a test file called "test.php" and 
put some PHP tags in it such as <?phpinfo()?>.

  $ vi /opt/apache/htdocs/test.php

add

  <html> <head> </head> <body> <p> <?phpinfo()?> </p> </body> </html>

Enter following URL in your browser.

  http://<your server>/test.php


#####################################

Good luck,

Jim

>>> "Hector Jose Montalvo Herrera" <[EMAIL PROTECTED]> 02/20/02 06:11PM >>>
Hello, I have problems installing PHP 4.1.1 and a apache server 1.3.23  with
chroot.
My S.O. is HPUX 11.0

I compiled apache with the module mod_so and php with the directory tree
/usr/local/apache

My chroot is /usr/www , after of compiling apache with php I make a tar of
usr/local/apache and a tar xvf in my chroot
eje. /usr/www/usr/local/apache

after run my http server with the next command:
chroot /usr/www /usr/local/apache/bin/apachectl start
and I have the follow messages
/usr/lib/dld.sl: Unresolved symbol: dlsym (code)  from
/usr/local/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlerror (code)  from
/usr/local/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlopen (code)  from
/usr/local/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlclose (code)  from
/usr/local/apache/libexec/libphp4.so
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: No such file
or directory
/usr/local/apache/bin/apachectl start: httpd could not be started

I have th libexec/libphp4.so in my /usr/www/usr/local/apache/libexec.
What can I do?
In the line 205 I have
LoadModule php4_module        libexec/libphp4.so

I put LoadModule php4_module
/usr/www/usr/local/apache/libexec/libphp4.so

and not working too!!
Help me!
Thanks!
__________________________________
Ing. Hector Jose Montalvo Herrera
Triara Operaciones
Libramiento Santa Rosa #111 Col. Futuro Apodaca
Apodaca, Nuevo Leon.
http://www.triara.com 
|unix/linux is most powerful..;-)|


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 


>>> "Hector Jose Montalvo Herrera" <[EMAIL PROTECTED]> 02/20/02 06:11PM >>>
Hello, I have problems installing PHP 4.1.1 and a apache server 1.3.23  with
chroot.
My S.O. is HPUX 11.0

I compiled apache with the module mod_so and php with the directory tree
/usr/local/apache

My chroot is /usr/www , after of compiling apache with php I make a tar of
usr/local/apache and a tar xvf in my chroot
eje. /usr/www/usr/local/apache

after run my http server with the next command:
chroot /usr/www /usr/local/apache/bin/apachectl start
and I have the follow messages
/usr/lib/dld.sl: Unresolved symbol: dlsym (code)  from
/usr/local/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlerror (code)  from
/usr/local/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlopen (code)  from
/usr/local/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: dlclose (code)  from
/usr/local/apache/libexec/libphp4.so
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: No such file
or directory
/usr/local/apache/bin/apachectl start: httpd could not be started

I have th libexec/libphp4.so in my /usr/www/usr/local/apache/libexec.
What can I do?
In the line 205 I have
LoadModule php4_module        libexec/libphp4.so

I put LoadModule php4_module
/usr/www/usr/local/apache/libexec/libphp4.so

and not working too!!
Help me!
Thanks!
__________________________________
Ing. Hector Jose Montalvo Herrera
Triara Operaciones
Libramiento Santa Rosa #111 Col. Futuro Apodaca
Apodaca, Nuevo Leon.
http://www.triara.com 
|unix/linux is most powerful..;-)|


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 

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

I installed PHP 4.1.1 successfully on Apache 1.3.12, but about once or twice
per day, when I run the 'top' command, httpd will be sucking up as much of
the CPU time as it can.

I'm running Redhat 6.2.

I restart httpd and things return to normal. Once in a while, openssl
crashes without affecting the rest. I haven't actually put any PHP scripts
on the server yet except the "show all env vars" test script, which was
running.

I started with PHP 4.0.6, and then installed PHP 4.1.1 after about a week of
the problem. When I remove PHP from httpd.conf, the problem goes away ( it
appeared with PHP ).

Any advice would be appreciated.

Regards,
Brian Jacobs

During conf/make/make install, the only non-default thing I specified was
./configure --with-apxs=/usr/local/apache/bin/apxs
I don't see how this would have affected anything.



--- End Message ---
--- Begin Message ---
I'm calling a php file from a simple contact request html form.  When the
script generates emails the reply to and from are in the body of the message
and the others are comming from apache (as configured in httpd.conf file.
How can I override this?

Here's my example. The messages are going out as expected and everything
works from that perspective. It's simply the reply to and froms that are
incorrect. I'm assuming I need to change php.ini to correct something there
in regards to it's call for sendmail.  If someone could point me to the
correct way of fixing this problem, I'd sure appreciate it!

<?php
 $toaddress = $email;
 $subject = "Contact Request Form";
 $mailcontent = "Firstname: ".$firstname."\n"
       ."Lastname: ".$lastname."\n"
       ."Company: ".$company."\n"
       ."Address: ".$address."\n"
       ."City: ".$city."\n"
       ."State: ".$state."\n"
       ."Zip: ".$zip."\n"
       ."Phone: ".$phone."\n"
       ."Fax: ".$fax."\n"
       ."Email: ".$email."\n"
       ."Service Interest: ".$serviceinterest."\n"
       ."Comments: ".$S1."\n";


 $fromaddress = "[EMAIL PROTECTED]\n"
     ."Reply-To: "[EMAIL PROTECTED]";
 $confirmation = "Your contact request has been sent";
 $feedbackaddress = "[EMAIL PROTECTED]";

 mail ($toaddress, $subject, $confirmation, $fromaddress);
 mail ($feedbackaddress, $subject, trim($mailcontent), $toaddress);
?>

Jim Hankins


--- End Message ---

Reply via email to