php-install Digest 30 Jan 2002 13:51:53 -0000 Issue 675

Topics (messages 5815 through 5835):

PHP4.1.1, Apache-1.3.23 IMAP doesnt work for me...HELP!!!
        5815 by: Ron Simpson
        5816 by: Jon Wagoner
        5825 by: Ron Simpson
        5834 by: Ben Cross

v4.1.1 - ImageTypes() returns nothing, phpinfo reports GIF support enabled
        5817 by: chasd

PHP4.1.1 & MySQL (httpd dumps core)
        5818 by: The Rookie
        5820 by: J S

Re: Can find some extensions but not all
        5819 by: Numero 6

PHP/Courier-IMAP and c-client library
        5821 by: Tony Bibbs
        5822 by: Tony Bibbs

-lcrypto
        5823 by: Robert Abbate

Linux +Xitami + PHP4.1.1
        5824 by: David Jackson

PHP 4.1.1, MySQL 3.23.47, Apache 1.3.22, Mac OS X 10.1.2, openssl
        5826 by: Ryan Walker

FreeBSD 4.5, php 4.1.1, Apache install help
        5827 by: Benjamin Krajmalnik

Installation
        5828 by: Uma Shankari T.
        5829 by: David Jackson
        5830 by: Uma Shankari T.

IMAP and lcrypt problems
        5831 by: Robert Abbate

Mysql support
        5832 by: Uma Shankari T.
        5833 by: Uma Shankari T.

I am Stupid and Can't get PHP to run
        5835 by: Jason Lehman

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 have installed PHP-4.1.1, Apache-1.3.23, MySQl-3.23.47, gd1.03 and 
imap-2001a. on a Slakware based system called Prime.

I have followed the instructions, I get no compile errors that I can see, 
Apache works, PHP works, MySQL works, but when I reference to imap_open(),

I get an error message "Fatal error:  Call to undefined function:  
imap_open() in /user/rs/email3.php on line 15"

Here is line 15:
$mbox = imap_open("{".$server.":110/pop3}INBOX", $username, $password);


 IS this is telling me it doesnt know about imap? I have recompiled this 
thing about 20 times.

Here is my config for php:

 ./configure --disable-debug --prefix=/usr/local/php 
--enable-imap=../imap/c-client --with-mysql=/usr/local/mysql 
--with-apache=../apache_1.3.23 --with-gd=../gd1.3 --enable-ftp 
--enable-bcmath --enable-memory-limits=yes --enable-sockets 
-enable-track-vars

Here is my apache config:
./configure --prefix=/usr/local/apache 
--activate-module=src/modules/php4/libphp4.a

Did I miss something??

Ron Simpson,
CVIX.NET


--- End Message ---
--- Begin Message ---
I think that should be --with-imap=../imap/c-client, not --enable-imap

-----Original Message-----
From: Ron Simpson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] PHP4.1.1, Apache-1.3.23 IMAP doesnt work for
me...HELP!!!


I have installed PHP-4.1.1, Apache-1.3.23, MySQl-3.23.47, gd1.03 and 
imap-2001a. on a Slakware based system called Prime.

I have followed the instructions, I get no compile errors that I can see, 
Apache works, PHP works, MySQL works, but when I reference to imap_open(),

I get an error message "Fatal error:  Call to undefined function:  
imap_open() in /user/rs/email3.php on line 15"

Here is line 15:
$mbox = imap_open("{".$server.":110/pop3}INBOX", $username, $password);


 IS this is telling me it doesnt know about imap? I have recompiled this 
thing about 20 times.

Here is my config for php:

 ./configure --disable-debug --prefix=/usr/local/php 
--enable-imap=../imap/c-client --with-mysql=/usr/local/mysql 
--with-apache=../apache_1.3.23 --with-gd=../gd1.3 --enable-ftp 
--enable-bcmath --enable-memory-limits=yes --enable-sockets 
-enable-track-vars

Here is my apache config:
./configure --prefix=/usr/local/apache 
--activate-module=src/modules/php4/libphp4.a

Did I miss something??

Ron Simpson,
CVIX.NET



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

--- End Message ---
--- Begin Message ---
Jon,

Thanks very much!!!! I did this at 3:30 am PST time..........

OOPS

Ron....

Jon Wagoner wrote:

> I think that should be --with-imap=../imap/c-client, not --enable-imap
> 
> -----Original Message-----
> From: Ron Simpson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP4.1.1, Apache-1.3.23 IMAP doesnt work for
> me...HELP!!!
> 
> 
> I have installed PHP-4.1.1, Apache-1.3.23, MySQl-3.23.47, gd1.03 and
> imap-2001a. on a Slakware based system called Prime.
> 
> I have followed the instructions, I get no compile errors that I can see,
> Apache works, PHP works, MySQL works, but when I reference to imap_open(),
> 
> I get an error message "Fatal error:  Call to undefined function:
> imap_open() in /user/rs/email3.php on line 15"
> 
> Here is line 15:
> $mbox = imap_open("{".$server.":110/pop3}INBOX", $username, $password);
> 
>
>  IS this is telling me it doesnt know about imap? I have recompiled this
> thing about 20 times.
> 
> Here is my config for php:
> 
>  ./configure --disable-debug --prefix=/usr/local/php
> --enable-imap=../imap/c-client --with-mysql=/usr/local/mysql
> --with-apache=../apache_1.3.23 --with-gd=../gd1.3 --enable-ftp
> --enable-bcmath --enable-memory-limits=yes --enable-sockets
> -enable-track-vars
> 
> Here is my apache config:
> ./configure --prefix=/usr/local/apache
> --activate-module=src/modules/php4/libphp4.a
> 
> Did I miss something??
> 
> Ron Simpson,
> CVIX.NET
> 
> 
> 

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

On redhat 7.1, I'm compiling php 4.1.1 with imap support for apache
1.3.19. 

Inintially I used:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
--with-imap --with-kerberos --with-imap-ssl

and it worked fine but i got this error during make:

/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/root/tars/php-4.1.1'
make: *** [all-recursive] Error 1

When exporting env vars (export LDFLAGS="-L/usr/kerberos/lib -lkrb5
-lgssapi_krb5 -lpam") i get: checking whether the C compiler (gcc
-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.

I solved this problem by installing krb5-develop. This got me through
the install without error.

Now when I attempt to restart apache I get this:

[root@www apache_1.3.23]# /usr/local/apache/bin/apachectl start
Syntax error on line 206 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so: undefined symbol: pam_end
/usr/local/apache/bin/apachectl start: httpd could not be started


I tried installing pam-develop but that would be too easy. Needless to
say, it didn't work.

Any Ideas??

Thanks

Ben


--- End Message ---
--- Begin Message ---
On the same machine (RH 6.2 x86), I can get php 4.0.6 (and earlier) to 
compile with gd support. phphinfo() shows the following:

GD Support - enabled
GD Version - between 1.3 and 1.6.1
FreeType Support - enabled
FreeType Linkage - with TTF library
GIF Support - enabled

and ImageTypes() returns IMG_GIF

using the following configure options:

--disable-debug \
         --enable-track-vars \
         --with-pgsql=/usr/local/pgsql/lib \
         --with-mysql \
         --with-zlib \
         --with-mm=../mm-1.1.3 \
         --with-gd \
         --with-jpeg-dir \
         --with-ttf \
         --with-fdftk=../FDFToolkitForUNIX \
         --with-openssl \
         --with-apache=../apache_1.3.22

With php 4.1.1, I can get it to compile and run, phpinfo() shows the 
following:

GD Support - enabled
GD Version - between 1.3 and 1.6.1
FreeType Support - enabled
FreeType Linkage - with TTF library
GIF Read Support - enabled
GIF Create Support - enabled

but ImageTypes() returns nothing, and other Image* functions fail.

using the following configure options:

--disable-debug \
         --enable-track-vars \
         --with-pgsql=/usr/local/pgsql/lib \
         --with-mysql \
         --with-mm=../mm-1.1.3 \
         --with-gd \
         --enable-gd-native-ttf \
         --enable-gd-imgstrttf \
         --with-ttf \
         --with-jpeg-dir=/usr \
         --with-png-dir=/usr \
         --with-zlib \
         --with-fdftk=../FDFToolkitForUNIX \
         --with-openssl \
         --with-apache=../apache_1.3.22

Before I do a make, I do a make clean, then rm -f config.cache 
config.log config.status, then re-configure.

Thanks for any constructive input,

Charles Dostale
Sys Admin
http://www.silveroaks.com
chasd at silveroaks.com

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

MySQL is installed succesfully, and php installs ok as well, but I
have the exact problem as stated on
http://www.php.net/manual/en/faq.databases.php#AEN73278
(httpd dumps core)

see this snippet of apache's error_log:
[notice] Apache/1.3.14 (Unix) PHP/4.1.1 mod_perl/1.24 mod_ssl/2.7.1
OpenSSL/0.9.6 configured -- resuming normal operations
/usr/libexec/ld.so: Undefined symbol "_mysql_init" called from
httpd:/usr/lib/apache/modules/libphp4.so at 0 x404d9594

after this httpd dumps core ....
Only, i don't know how to solve it :-(
I've tried recompiling MySQL, but can't seem to get the correct option
..

can somebody please enlighten me ?

my MySQL configure commandline:
        ./configure  --without-pthread \
        --with-unix-socket-path=/var/mysql/mysql.sock \
        --with-mysqld-user=mysql  --with-innodb

my PHP configure commandline
        './configure' '--with-apxs=/usr/sbin/apxs' \
        '--with-config-file-path=/var/www/conf' \
        '--enable-calendar'  '--enable-bcmath' \
        '--enable-trans-sid'  '--enable-versioning' \
        '--with-yp'  '--with-pcre-regex'  '--with-xml' \
        '--with-zlib'  '--without-gdbm'  '--without-gettext' \
        '--disable-ftp'  '--without-imap'  '--without-ldap' \
        '--without-mhash'  '--without-mm'  '--without-recode' \
        '--without-snmp'  '--without-openssl' \
        '--with-gd=shared,/usr/local' \
        '--enable-gd-native-ttf' \
        '--with-jpeg-dir=/usr/local/lib' \
        '--with-png-dir=/usr/local/lib' \
        '--with-freetype-dir=/usr/local/include/freetype2/freetype' \
        '--without-pdflib'  '--disable-dbase'  '--disable-filepro' \
        '--with-mysql=/usr/local'  '--without-pgsql' \
        '--prefix=/usr/local' \
        '--sysconfdir=/etc'
--- End Message ---
--- Begin Message ---


I'm not claiming to be an expert but have you tried setting LD_LIBRARY_PATH 
first to point at mysql, then starting apache?

JS.

>Hi,
>
>MySQL is installed succesfully, and php installs ok as well, but I
>have the exact problem as stated on
>http://www.php.net/manual/en/faq.databases.php#AEN73278
>(httpd dumps core)
>
>see this snippet of apache's error_log:
>[notice] Apache/1.3.14 (Unix) PHP/4.1.1 mod_perl/1.24 mod_ssl/2.7.1
>OpenSSL/0.9.6 configured -- resuming normal operations
>/usr/libexec/ld.so: Undefined symbol "_mysql_init" called from
>httpd:/usr/lib/apache/modules/libphp4.so at 0 x404d9594
>
>after this httpd dumps core ....
>Only, i don't know how to solve it :-(
>I've tried recompiling MySQL, but can't seem to get the correct option
>..
>
>can somebody please enlighten me ?
>
>my MySQL configure commandline:
>       ./configure  --without-pthread \
>       --with-unix-socket-path=/var/mysql/mysql.sock \
>       --with-mysqld-user=mysql  --with-innodb
>
>my PHP configure commandline
>       './configure' '--with-apxs=/usr/sbin/apxs' \
>       '--with-config-file-path=/var/www/conf' \
>       '--enable-calendar'  '--enable-bcmath' \
>       '--enable-trans-sid'  '--enable-versioning' \
>       '--with-yp'  '--with-pcre-regex'  '--with-xml' \
>       '--with-zlib'  '--without-gdbm'  '--without-gettext' \
>       '--disable-ftp'  '--without-imap'  '--without-ldap' \
>       '--without-mhash'  '--without-mm'  '--without-recode' \
>       '--without-snmp'  '--without-openssl' \
>       '--with-gd=shared,/usr/local' \
>       '--enable-gd-native-ttf' \
>       '--with-jpeg-dir=/usr/local/lib' \
>       '--with-png-dir=/usr/local/lib' \
>       '--with-freetype-dir=/usr/local/include/freetype2/freetype' \
>       '--without-pdflib'  '--disable-dbase'  '--disable-filepro' \
>       '--with-mysql=/usr/local'  '--without-pgsql' \
>       '--prefix=/usr/local' \
>       '--sysconfdir=/etc'
>
>--
>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]
>




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Jason Lehman) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: 

> Even though I have all the extensions in the same directory  I keep
> getting the error that such and such extension can't be found.
> 
> Here is the list of ones that cant be found but are in the same
> directory as the rest:
> 
> php_ifx.dll
> php_ingres.dll
> php_oci8.dll
> php_oracle.dll
> php_sybase_ct.dll
> 
> 
> Here is a list of ones that I would like to get copies of:
> php_iisfunc.dll
> php_mcrypt.dll
> php_printer.dll
> php_sablot.dll
> 
> Thanks for any help.
> 
> 
> 

php_sablot.dll has become php_xslt.dll
--- End Message ---
--- Begin Message ---
Ok, I have PHP 4.1.1 on RH7.2 and I'm running courier-mta and
courier-imap. I downloaded the UW c-client library and did the "make
lrh".  I then do the following configure:

./configure --disable-debug -enable-pic -disable-rpath
--enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-bz2
--with-curl --with-db3 --with-db2 --with-dom --with-gd --with-gdbm
--with-gettext --with-openssl --with-png --with-zlib --enable-debugger
--enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-track-vars --with-mysql
--with-pgsql --with-xml --with-imap=/usr/local/src/imap-2001a
--with-imap-ssl

Then the make and make install go as expected.

I then go to restart Apache and I get:
[root@localhost php-4.1.1]# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name

Please help...
-- 
Tony Bibbs         | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046       | 

--- End Message ---
--- Begin Message ---
For the archives:

I found a fix for my problem. I want to be perfectly clear what my
configuration is so that if anyone has this god-foresaken problem they
can fix it.  

OS: Red Hat Linux 7.2
MTA: courier-mta
IMAP: courier-imap

I installed the UW c-client library and compiled it with "make lrh"

I compiled PHP with these options:

./configure --disable-debug -enable-pic -disable-rpath
--enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-bz2
--with-curl --with-db3 --with-db2 --with-dom --with-gd --with-gdbm
--with-gettext --with-openssl --with-png --with-zlib --enable-debugger
--enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-track-vars --with-mysql
--with-pgsql --with-xml --with-imap=/usr/local/src/imap-2001a
--with-imap-ssl

On restarting Apache it complains with:

[root@localhost php-4.1.1]# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name

I added the following lines to my /etc/rc.d/init.d/httpd script in the
start section right after the echo line:

LD_PRELOAD=/usr/kerberos/lib/libgssapi_krb5.so
export LD_PRELOAD

If there is a more elegant way of doing this via Apache's build I'd love
to know.

Also, I will be documenting an entire howto on this configuration here:

http://www.tonybibbs.com/courier-howto.html

--Tony

On Tue, 2002-01-29 at 16:26, Tony Bibbs wrote:
> Ok, I have PHP 4.1.1 on RH7.2 and I'm running courier-mta and
> courier-imap. I downloaded the UW c-client library and did the "make
> lrh".  I then do the following configure:
> 
> ./configure --disable-debug -enable-pic -disable-rpath
> --enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-bz2
> --with-curl --with-db3 --with-db2 --with-dom --with-gd --with-gdbm
> --with-gettext --with-openssl --with-png --with-zlib --enable-debugger
> --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets
> --enable-sysvsem --enable-sysvshm --enable-track-vars --with-mysql
> --with-pgsql --with-xml --with-imap=/usr/local/src/imap-2001a
> --with-imap-ssl
> 
> Then the make and make install go as expected.
> 
> I then go to restart Apache and I get:
> [root@localhost php-4.1.1]# /etc/rc.d/init.d/httpd restart
> Stopping httpd:                                            [FAILED]
> Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf:
> Cannot load /etc/httpd/modules/libphp4.so into server:
> /etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name
> 
> Please help...
> -- 
> Tony Bibbs         | Life is a moderately good play
> [EMAIL PROTECTED] | with a bad 3rd act.
> 515.554.8046       | 
-- 
Tony Bibbs         | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046       | 

--- End Message ---
--- Begin Message ---
Hi. It looks like many people are having trouble with IMAP on here. My
problem is probably pretty easy to fix, but I'm not an expert...so here I
am.

I am running Mandrake 8.1, trying to install PHP 4.1.1. I installed IMAP
using an RPM (courier-imap-1.3.12.20011123-3mdk.i586.rpm)

When running configure, I got this initial error:

..........
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... (cached) yes
configure: error: Cannot find rfc822.h. Please check your IMAP installation.

Then, I got the development headers (imap-devel-2000c-7mdk.i586.rpm) and
re-ran configure, and it went through OK. However, when I run make, I get
this:

.......
/TSRM -g -O2   -o php -export-dynamic     stub.lo libphp4.la
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/root/downloads2/php-4.1.1'
make: *** [install-recursive] Error 1

I'm not sure what it is, nor where to find "-lcrypto"

Anyone have any suggestions?

Thanks!
Robert


--- End Message ---
--- Begin Message ---
Greeting --
I've been running Xitami web server on my WinMe laptop. Installing PHP
was easy using
the insallable exe for PHP. And installing Xitami on my Linux box is
also easy. 
What I'm not sure of is how to install PHP? Since the ./configure
options didn't mention
Xitami as a server supported? Any experiences or suggestions?

Thank,
David Jackson
--- End Message ---
--- Begin Message ---
This is a 3 parter. Please offer suggestions on any or all of the following.

I'm trying to compile PHP 4.1.1 on Mac OS X 10.1.2. I installed the 
Mac OS X MySQL binaries from mysql.com into /usr/local/mysql, and the 
Mac OS X binaries for apache 1.3.22 into /usr/local/apache.

I would like to use this configuration:
  ./configure \
   --enable-track-vars \
   --enable-magic-quotes \
   --enable-discard-path \
   --disable-pear \
   --with-xml \
   --with-gnu-ld \
   --enable-trans-sid \
   --with-mysql=/usr/local/mysql \
   --with-openssl=/usr/local/src/OpenSSL-3-1/openssl \
   --with-apxs=/usr/local/sbin/apxs

I can get this base configuration to work:
  ./configure \
   --enable-track-vars \
   --enable-magic-quotes \
   --enable-discard-path \
   --disable-pear \
   --with-xml \
   --with-gnu-ld \
   --enable-trans-sid



Part 1: MySQL
compiling with  --with-mysql=/usr/local/mysql (alone or added to 
base) produces this error:

/Users/niko/Documents/php-4.1.1/.libs
/bin/sh /Users/niko/Documents/php-4.1.1/libtool --silent --mode=link 
cc -I. -I/Users/niko/Documents/php-4.1.1/ 
-I/Users/niko/Documents/php-4.1.1/main 
-I/Users/niko/Documents/php-4.1.1 
-I/Users/niko/Documents/php-4.1.1/Zend -I/usr/local/mysql/include 
-I/Users/niko/Documents/php-4.1.1/ext/xml/expat  -traditional-cpp 
-I/Users/niko/Documents/php-4.1.1/TSRM -g -O2   -o php 
-export-dynamic       stub.lo libphp4.la
/usr/bin/ld: table of contents for archive: 
/usr/local/mysql/lib/libmysqlclient.a is out of date; rerun ranlib(1) 
(can't load from it)
make[1]: *** [php] Error 1
make: *** [all-recursive] Error 1




Part 2: Apache apxs
compiling with    --with-apxs=/usr/local/sbin/apxs produces this error:

Making all in sapi
Making all in apache
/bin/sh /Users/niko/Documents/php-4.1.1/libtool --silent 
--mode=compile cc  -I. -I/Users/niko/Documents/php-4.1.1/sapi/apache 
-I/Users/niko/Documents/php-4.1.1/main 
-I/Users/niko/Documents/php-4.1.1 -I/usr/local/apache/include 
-I/Users/niko/Documents/php-4.1.1/Zend 
-I/Users/niko/Documents/php-4.1.1/ext/mysql/libmysql 
-I/Users/niko/Documents/php-4.1.1/ext/xml/expat  -traditional-cpp 
-DDARWIN -DUSE_HSREGEX -DUSE_EXPAT 
-I/Users/niko/Documents/php-4.1.1/TSRM -g -O2 -prefer-pic  -c 
sapi_apache.c
In file included from /usr/local/apache/include/ap_config.h:114,
                  from /usr/local/apache/include/httpd.h:72,
                  from sapi_apache.c:32:
/usr/local/apache/include/os.h:118: dlfcn.h: No such file or directory
In file included from /usr/local/apache/include/httpd.h:72,
                  from sapi_apache.c:32:
/usr/local/apache/include/ap_config.h:435: warning: `HAVE_MMAP' redefined
/Users/niko/Documents/php-4.1.1/TSRM/../main/php_config.h:322: 
warning: this is the location of the previous definition
/usr/local/apache/include/ap_config.h:442: warning: `HAVE_SNPRINTF' redefined
/Users/niko/Documents/php-4.1.1/TSRM/../main/php_config.h:439: 
warning: this is the location of the previous definition
In file included from /usr/local/apache/include/httpd.h:72,
                  from sapi_apache.c:32:
/usr/local/apache/include/ap_config.h:1367: warning: `XtOffsetOf' redefined
/Users/niko/Documents/php-4.1.1/main/php.h:342: warning: this is the 
location of the previous definition
In file included from /Users/niko/Documents/php-4.1.1/main/php_syslog.h:7,
                  from 
/Users/niko/Documents/php-4.1.1/ext/standard/php_ext_syslog.h:26,
                  from 
/Users/niko/Documents/php-4.1.1/ext/standard/php_standard.h:33,
                  from sapi_apache.c:56:
/Users/niko/Documents/php-4.1.1/main/php_config.h:322: warning: 
`HAVE_MMAP' redefined
/usr/local/apache/include/ap_config.h:435: warning: this is the 
location of the previous definition
/Users/niko/Documents/php-4.1.1/main/php_config.h:439: warning: 
`HAVE_SNPRINTF' redefined
/usr/local/apache/include/ap_config.h:442: warning: this is the 
location of the previous definition
make[3]: *** [sapi_apache.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1



Part 3: openssl
compiling with   --with-openssl=/usr/local/src/OpenSSL-3-1/openssl 
produces this error:

_sk_X509_value
/usr/bin/ld: warning unused multiple definitions of symbol _crypt
/usr/lib/libcrypto.dylib(fcrypt.o) definition of _crypt
/usr/lib/libm.dylib(crypt.o) unused definition of _crypt
make[1]: *** [php] Error 1
make: *** [all-recursive] Error 1




All suggestions welcome,

Ryan
--- End Message ---
--- Begin Message ---
Would someone be so kind as to outline the sequence which must be followed
to install the above utilizing the ports collection?

Do I first make Apache or PHP?
When I invoke a make on the PHP 4.1.1 ports directory, a dialog is shown
with various support modules.   Can I just include whichever options I want
and go from there?

When using the ports collection, are dependencies checked and made
automatically?
Additionally, where does the log of the "make process" reside, so I can look
at it in the event I obtained errors?

As you can see, I am a newbie at installing ports on FreeBSD.  I have a 3.x
box running Apache/MySQL from the packages without a hitch, but am having a
bit of a headache getting this new server up and running.


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

 

I have installed php sucessfully.But while trying to connect with mysql it
is giving fatal error.This error is coming due to mysql problem or
what.....


-Uma

--- End Message ---
--- Begin Message ---
Uma --
Can you connect from the command using mysql dbname -u -p 

My connect function looks like this:
<?php
// database connect script
$dbhostname = "localhost";
$dbuser = "picklesql";
$dbpasswd = "pi56fb";
$dbname= "pickle";
$link = mysql_connect("$dbhostname", "$dbuser", "$dbpasswd") 
        or die("Connection to server: $dbhostname FAILED!!");
mysql_select_db("$dbname")
        or die("Connection to database: $dbname FAILED!!");
?>

David 
"Uma Shankari T." wrote:
> 
> 
> 
> I have installed php sucessfully.But while trying to connect with mysql it
> is giving fatal error.This error is coming due to mysql problem or
> what.....
> 
> -Uma
> 
> --
> 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]
--- End Message ---
--- Begin Message ---



 I have done all those things but it is displaying the same error


-Uma

--- End Message ---
--- Begin Message ---
Hi. It looks like many people are having trouble with IMAP on here. My
problem is probably pretty easy to fix, but I'm not an expert...so here I
am.

I am running Mandrake 8.1, trying to install PHP 4.1.1. I installed IMAP
using an RPM (courier-imap-1.3.12.20011123-3mdk.i586.rpm)

When running configure, I got this initial error:

..........
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... (cached) yes
configure: error: Cannot find rfc822.h. Please check your IMAP installation.

Then, I got the development headers (imap-devel-2000c-7mdk.i586.rpm) and
re-ran configure, and it went through OK. However, when I run make, I get
this:

.......
/TSRM -g -O2   -o php -export-dynamic     stub.lo libphp4.la
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/root/downloads2/php-4.1.1'
make: *** [install-recursive] Error 1

I'm not sure what it is, nor where to find "-lcrypto"

Anyone have any suggestions?

Thanks!
Robert





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


 I am trying to connect with mysql using php script but it is giving No
mysql support error.what will i do to rectify this error

tell me assp

-Uma 

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


I have tried that code it is giving all the information about php.
I am using php and mysql for webpage designing and apache for
authentication.I am working in linux platform.I don't know the people who
worked before me installed using binary or source.Manually it is
connecting to mysql like this in command prompt 

mysql -uusername -ppassword

but using script it is giving that no mysql support


-Uma

--- End Message ---
--- Begin Message ---
I have followed the install.txt but I must be missing something.  I am on a
Win2000 machine running iis 5.0.  I don't know what I missed but I keep
getting

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

That's it nothing else.  If I take an extension that I know doesn't work
then that shows up after the error.  If I double click any file with a php
extension they run and output html but I can't get them to run thru the
browser.  I have assigned security the way I know how for I_USR but seem to
be getting nowhere so any help would be appreciated.


--- End Message ---

Reply via email to