php-install Digest 22 Mar 2003 06:26:26 -0000 Issue 1300

Topics (messages 10382 through 10388):

php pages not served by secure server
        10382 by: Thusoo, Sundeep
        10383 by: Thusoo, Sundeep

Re: problem connecting PHP w/ODBC
        10384 by: Beverly Steiner

PHP 4.2.1 > 4.3.1 upgrade issues
        10385 by: Stephen Reese
        10386 by: Stephen Reese

Re: suse8.0 configure and make problem! no makefile?
        10387 by: Michael Mauch

php + ssl build
        10388 by: Kalin Mintchev

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 ---
Title: Message
Hi,
 
I  have just installed the PHP-MySQL-Apache-mod_ssl combination. Everything is working fine including html/php pages being served, php-mysql interaction, SSL ...the works. The ONLY thing that is not working is that if I create a PHP page and access it on the secure port(e.g.:- https://localhost/index.php), it doesn't work. The error I see in the logs is only this:-

[Wed Mar 19 15:34:39 2003] [notice] child pid 17837 exit signal Segmentation fault (11)

Can anyone tell me where the problem lies?

Please note that the SAME page works fine if I access it on the SAME webserver, with the SAME configuration using http://localhost/index.php  ... only  replacing https by http as you can see!
 
For your info I am using apache_1.3.27,openssl-0.9.7a,  mod_ssl-2.8.13-1.3.27 and  php-4.3.1
 
The phpinfo() output can be seen in the attached files.
 
Any help here would be highly appreciated.

Sundeep Thusoo

42virtual
Palais Savoy
A-1010 Wien, Johannesgasse 15
T: +43 (1) 5129141-0; F: +43 (1) 5129141-51
M: +43 664 827 5521

E: [EMAIL PROTECTED]

E: [EMAIL PROTECTED]

 

 

Attachment: phpinfo().zip
Description: phpinfo().zip


--- End Message ---
--- Begin Message ---
Title: Message
Hi  PHP Gurus ,
 
I  have just installed the PHP-MySQL-Apache-mod_ssl combination. Everything is working fine including html/php pages being served, php-mysql interaction, SSL ...the works. The ONLY thing that is not working is that if I create a PHP page and access it on the secure port(e.g.:- https://localhost/index.php), it doesn't work. The error I see in the logs is only this:-

[Wed Mar 19 15:34:39 2003] [notice] child pid 17837 exit signal Segmentation fault (11)

Can anyone tell me where the problem lies?

Please note that the SAME page works fine if I access it on the SAME webserver, with the SAME configuration using http://localhost/index.php  ... only  replacing https by http as you can see!
 
For your info I am using apache_1.3.27,openssl-0.9.7a,  mod_ssl-2.8.13-1.3.27 and  php-4.3.1
 
The phpinfo() output can be seen in the attached files.
 
Any help here would be highly appreciated.

Sundeep Thusoo

42virtual
Palais Savoy
A-1010 Wien, Johannesgasse 15
T: +43 (1) 5129141-0; F: +43 (1) 5129141-51
M: +43 664 827 5521

E: [EMAIL PROTECTED]

E: [EMAIL PROTECTED]

 

 

Attachment: phpinfo().zip
Description: phpinfo().zip


--- End Message ---
--- Begin Message ---
Problem fixed!

Thank you to David who pointed out that I had my variables switched in the
in the odbc_exec and odbc_cursor lines.  For ODBC, the connection variable
comes first (the opposite of MySQL).

Bev

----------------------
Beverly Steiner
[EMAIL PROTECTED]


-----Original Message-----
From: Beverly Steiner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 1:57 PM
To: [EMAIL PROTECTED]
Subject: FW: [PHP-INST] problem connecting PHP w/ODBC


Hello again,

Does anyone have suggestions about where I can get an answer to the problems
I'm having with ODBC?  I've tried using:
        $cursor = odbc_cursor($connection) || die("cannot create cursor");

and get a similar error:

Warning: odbc_cursor(): supplied resource is not a valid ODBC result
resource in c:\program files\apache group\apache\htdocs\test4.php on line 13
cannot create cursor

Any help would be greatly appreciated.  I've been trying unsuccessfully to
access to an MS Access database with PHP for weeks now.  Any ideas of where
I can get the answer?  I have posted to the PHP-INST and PHP-DB lists.

----------------------
Beverly Steiner
[EMAIL PROTECTED]


-----Original Message-----
From: Beverly Steiner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 6:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] problem connecting PHP w/ODBC


Hello,

I am having problems accessing a database through ODBC.  I first sent an
email describing my problems accessing an MS Access database through PHP.
Today I installed MySQL.  I have no problems accessing my test database with
the mysql commands.  I downloaded MySQL's ODBC driver.  I get the same error
message trying to access this database w/ODBC as I did with the MS Access
database.

I am running Windows XP Professional, PHP 4.3.1, and Apache 1.3.27.

Here's my PHP code:

$connection = odbc_connect("testmysql", "", "")  or die ("Couldn't connect
to the server.");

$sql = "SELECT * FROM member";

$result = odbc_exec($sql,$connection) or die ("Couldn't execute query");

I get the following error message in my browser:

Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in
c:\program files\apache group\apache\htdocs\test4.php on line 17
Couldn't execute query

Anyone have any ideas of what I should do so I can access a database through
ODBC?

Beverly Steiner
[EMAIL PROTECTED]


--
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 previously built php w/the following: 


'./configure' '--prefix=/usr/local'
'--with-apache=/home/src/Apachetoolbox-1.5.58/apache_1.3.26'
'--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx'
'--enable-ftp' '--enable-inline-optimization' '--enable-memory-limit'
'--with-gd=/usr/local' '--with-zlib' '--enable-gd-native-tt'
'--with-t1lib=/usr/local' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-zlib-dir=/usr' '--with-ttf' '--with-freetype-dir=/usr/local'
'--with-openssl=/usr' '--with-gettext=/usr'
'--with-mysql=/usr/local/mysql' '--with-ldap' 


but I needed additional functionality for horde so I grabed the newest
version and built it with the following: 


./configure --prefix=/usr/local
--with-apache=/home/ftp/pub/apache_1.3.26 --enable-exif
--enable-track-vars --with-calendar=shared --enable-magic-quotes
--enable-trans-sid --enable-wddx --enable-ftp
--enable-inline-optimization --enable-memory-limit --with-gd=/usr/local
--with-zlib --enable-gd-native-tt --with-t1lib=/usr/local
--with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf
--with-freetype-dir=/usr/local --with-openssl=/usr --with-gettext=/usr
--with-mysql=/usr/local/mysql --with-ldap --with-xml
--with-imap=/home/ftp/pub/imap-2002b --with-mcrypt
--with-mcal=/home/ftp/pub/libmcal 


When I do php info I still showing the previous version with no changes?
You may notice that I don't have the orginal apache source that php was
built with so I grabed another one complied it and then used it as the
reference. I didn't think that would cause and issue but it may have?



# Stephen Reese
# 1204 NW 34TH ST
# Gainesville, Fl.
# [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
I previously built php w/the following:


'./configure' '--prefix=/usr/local'
'--with-apache=/home/src/Apachetoolbox-1.5.58/apache_1.3.26' '--enable-exif'
'--enable-track-vars' '--with-calendar=shared' '--enable-magic-quotes'
'--enable-trans-sid' '--enable-wddx' '--enable-ftp'
'--enable-inline-optimization' '--enable-memory-limit'
'--with-gd=/usr/local' '--with-zlib' '--enable-gd-native-tt'
'--with-t1lib=/usr/local' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-zlib-dir=/usr' '--with-ttf' '--with-freetype-dir=/usr/local'
'--with-openssl=/usr' '--with-gettext=/usr' '--with-mysql=/usr/local/mysql'
'--with-ldap'


but I needed additional functionality for horde so I grabed the newest
version and built it with the following:


./configure --prefix=/usr/local --with-apache=/home/ftp/pub/apache_1.3.26 --
enable-exif --enable-track-vars --with-calendar=shared --enable-magic-quotes
 --enable-trans-sid --enable-wddx --enable-ftp --enable-inline-optimization 
--enable-memory-limit --with-gd=/usr/local --with-zlib --enable-gd-native-tt
 --with-t1lib=/usr/local --with-jpeg-dir=/usr --with-png-dir=/usr --with-zli
b-dir=/usr --with-ttf --with-freetype-dir=/usr/local --with-openssl=/usr --w
ith-gettext=/usr --with-mysql=/usr/local/mysql --with-ldap --with-xml --with
-imap=/home/ftp/pub/imap-2002b --with-mcrypt --with-mcal=/home/ftp/pub/libmc
al


When I do php info I still showing the previous version with no changes? You
may notice that I don't have the orginal apache source that php was built
with so I grabed another one complied it and then used it as the reference.
I didn't think that would cause and issue but it may have?



--- End Message ---
--- Begin Message ---
Sven Suhl <[EMAIL PROTECTED]> wrote:

> got a little problem while recompiling php4.1.0 under SuSE8.0.

Are you sure you want to stick to an ancient version of PHP?

> I needed to include Imagick support for various reasons.
> 
> This is what I did:
> 
> - unzip imagick-0.9.5 to ./ext/imagick
> - cd to imagick and phpize
> - ./buildconf

This is not needed, it's only for CVS builds. PHP tarballs come with a
prebuilt configure, so you don't need to run buildconf. buildconf
rebuilds configure using automake and/or autoconf. If your versions of
automake/autoconf are too new or too old, it won't work.

Regards...
                Michael

--- End Message ---
--- Begin Message ---
hi all,
i had to use the fsockopen() in php with ssl...
ssl wasn't enabled by default. i recompiled. reinstalled. no errors.

phpinfo.php shows that the commands used to configure it were:
'/configure' '--with-apxs=/bin/apxs' '--with-mysql=/mysql'
'--with-openssl=/usr/local/ssl'

also from phpinfo.php:
OpenSSL support         enabled
OpenSSL Version         OpenSSL 0.9.6h 5 Dec 2002

so fsockopen() with ssl must work, right? wrong....

i have a code line like this:

$fp = fsockopen ("ssl://www.foo.com", 443, $errno, $errstr, 30);

that produces this:

Warning: fsockopen() [function.fsockopen]: no SSL support in this build in
/path/to/file...

can somebody help?


thanks...



--- End Message ---

Reply via email to