php-install Digest 7 Nov 2002 10:19:59 -0000 Issue 1107
Topics (messages 9051 through 9057):
Re: php4.2.2 remembers last GET and POST vars in HTTP_SESSION_VARS also
9051 by: Seung Hwan Kang
php4.2.3 and iconv
9052 by: Serge A.
iplanet php nsapi
9053 by: Anderson, Jerrad
Re: Question about install PHP4 with MySQL 3.23.53
9054 by: Ben
Strange error with pre2 and apache on OSX 10.2
9055 by: János
Re: install HELP!
9056 by: John Coder
netscape6.1 refresh problem, php4.2.2+, apa2.x
9057 by: t.sellmer.amro.de
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 ---
PHP 4.2.* has "register_globals = off" as a default. You variables has to
be $_POST["fname"] or $_POST["fname"] or $_SERVER["PHP_SELF"] etc.,
or you can simple incides one file
eg.
//extract.php
<?
extract($_SERVER);
extract($_ENV);
extract($_GET);
extract($_POST);
extract($_REQUEST);
?>
in your old codes...
require_once "extract.php";
"Alexander Piavka" <[EMAIL PROTECTED]> wrote in message
news:Pine.GSO.4.33.0211061433030.21449-200000@;indigo...
>
> Hi, we have upgraded from php4.0.6 to php4.2.2
> The problem is that php4.2.2 remembers last GET and POST vars in
HTTP_SESSION_VARS also.
> This ruins the functionality of many programs we are running.
> both 4.0.6 and 4.2.2 were configured and compiled with exactly the same
> parameters and we are using the same php.ini conf (which is attached in
the mail)
>
> In the features added between 4.0.6 and 4.2.2 we did not notice any
> changes that make such a change in php behaviour.
> Please advise how can we fix this behaviour without making changes in the
> code.
> Thanks a lot
>
> ps. these are configure options for php4.0.6 and php4.2.2 we used.
>
>
./configure --prefix=/usr/local/web/progs/php-4.0.6 --with-db3 --with-db --w
ith-jpeg-dir -with-tiff-dir \
> --with-jpeg-dir --with-png-dir --enable-force-cgi-redirect --enable-discar
d-path --with-openssl \
> --with-zlib --with-bz2 --enable-ftp --with-gettext --enable-sockets --enab
le-shared \
> --with-gnu-ld --enable-versioning --enable-static --with-config-file-path=
/usr/local/web/apache-php/conf \
> --enable-magic-quotes --enable-track-vars --with-apxs=/usr/local/web/apach
e-php/bin/apxs \
> --with-tsrm-pthreads --enable-yp --with-kerberos --with-imap --with-imap-s
sl --without-dmalloc \
> --enable-trans-sid --enable-mbstr-enc-trans --enable-mbstring
>
>
./configure --prefix=/usr/local/web/progs/php-4.2.2 --with-db3 --with-db --
with-jpeg-dir -with-tiff-dir \
> --with-jpeg-dir --with-png-dir --enable-force-cgi-redirect --enable-discar
d-path --with-openssl \
> --with-zlib --with-bz2 --enable-ftp --with-gettext --enable-sockets --enab
le-shared \
> --with-gnu-ld --enable-versioning --enable-static --with-config-file-path=
/usr/local/web/apache-php/conf \
> --enable-magic-quotes --enable-track-vars --with-apxs=/usr/local/web/apach
e-php/bin/apxs \
> --with-tsrm-pthreads --enable-yp --with-kerberos --with-imap --with-imap-s
sl --without-dmalloc \
> --enable-trans-sid --enable-mbstr-enc-trans --enable-mbstring
>
--- End Message ---
--- Begin Message ---
Hello,
I was trying to compile php with iconv support. It compiles ok, but when I
try to run apache, it tells me about unresolved symbols in mod_php...
What's going on?
libiconv is the newest
Regards,
--- End Message ---
--- Begin Message ---
I am also trying to add php to an iplanet webserver on an NT machine. I searched
through the archives and saw your email. I am curious if you were able to get this
installed.
Thank you for any information
Jerrad Anderson
TEDS - A CBM Company
--- End Message ---
--- Begin Message ---
just remove those mysql rpms and compile the source code, I fixed this last
night...
good luck...
"Zhilin Liu" <[EMAIL PROTECTED]> wrote in message
news:558E3568712FE74E8D0C3D4FBA2A4E8A3E0B15@;TIG-MAIL2.tig.mizzou.edu...
> Hi,
>
> I am trying to install php4.2.3 with the support of MySQL. I use rpm to
install Mysql as following:
>
> rpm -i MySQL-3.23.53a-1.i386.rpm
> rpm -i MySQL-client-3.23.53a-1.i386.rpm
> rpm -i MySQL-devel-3.23.53a-1.i386.rpm
> rpm -i MySQL-shared-3.23.53a-1.i386.rpm
>
> MySQL was automatically installed to many directories like /usr/bin,
/usr/include, /usr/lib, ....
>
> Now when I try to install PHP4.2.3 with the following command:
>
./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/??? --prefix=/usr/loca
l/php
>
> I always get the information : can't find header files under /???. I have
tried /usr/include/mysql and so on. No one seems to work. Does any one has
any idea which file php needs? Is there a way to solve this without
reinstall MySQL? Or how do I use rpm to specify the location (say
/usr/local/mysql) to install those rpms?
>
> Your help will be highly appreciated!
>
> Jaleen
>
>
--- End Message ---
--- Begin Message ---
Hi,
Last Thursday I configured php-4.3.0pre2 with the following options:
[Hun:data/downloads/php-4.3.0pre2] janos% cat config.nice
#! /bin/sh
#
# Created by configure
'./configure' \
'--prefix=/Volumes/Apps/php430' \
'--with-apxs' \
'--with-pgsql=/Volumes/Apps/pgsql' \
'--with-sybase-ct=/Applications/Sybase/System/OCS-12_5' \
'--without-mysql' \
"$@"
After make and make install I had no problem to do apachectl restart and
here is what I have in the error_log file:
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/janos.conf
Processing config file: /private/etc/httpd/users/postgres.conf
[Thu Oct 31 14:52:06 2002] [warn] module mod_WebObjects.c is already
added, skipping
[Thu Oct 31 14:52:07 2002] [notice] Apache/1.3.26 (Darwin)
PHP/4.3.0-pre2 configured -- resuming normal operations
[Thu Oct 31 14:52:07 2002] [notice] Accept mutex: flock (Default: flock)
and was able to show phpinfo() via the apache server.
Now yesterday I wanted to demonstrate it and found that apache was not
running. When I wanted to start it, I got this into the error_log file:
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/janos.conf
Processing config file: /private/etc/httpd/users/postgres.conf
[Tue Nov 5 13:22:07 2002] [warn] module mod_WebObjects.c is already
added, skipping
[Tue Nov 5 13:22:07 2002] [crit] (13)Permission denied: make_sock:
could not bind to port 80
In the console I have these messages:
Syntax error on line 239 of /etc/httpd/httpd.conf:
Cannot load /usr/libexec/httpd/libphp4.so into server: (reason unknown)
/usr/sbin/apachectl start: httpd could not be started
Now, the 239 line in /etc/httpd/httpd.conf is:
LoadModule php4_module libexec/httpd/libphp4.so
looking it from terminal in the /usr/libexec/httpd directory:
-rwxr-xr-x 1 root wheel 4965744 Oct 31 14:51 libphp4.so
looks just like all the other modules listed there and has the right
creation date when make install was run last Thursday.
The machine was not restarted from Thursday to Tuesday - not counting
the daily and weekly OSX self maintenance - and no new software was
installed on it.
Any good insight what is going on ?
Thanks ahead,
János
--- End Message ---
--- Begin Message ---
On Wed, 2002-11-06 at 00:29, Gareth Thomas wrote:
> Ok I am fairly desperate to solve this problem (this is my 3rd posting). I
> have clean installed RH 7.2 (on a Dell Optiplex), I did NOT install PHP from
> the RH disks but did install Apache. I then downloaded 4.3.0pre2 and ran the
> following configure:
>
> ./configure --with-apxs --with-mysql --enable-sockets
>
> That seems to work fine. However then a 'make' produces the same error as
> before:
>
> path/my_tempnam.c:103 the use of 'tempnam' is dangerous, better use
> 'mkstemp'
>
> This is consistently reproduceable (sp?), any help would be really, really
> appreciated.
>
My suggestion is to get the source files from mysql then point your
mysql flags ,as in --with-mysql=[DIR], to the mysql installation
directory. You are depending upon the "built in" mysql in PHP which in
the ext/mysql/libmysql you find my_tempnam.c which on line 103 has the
function tempnam().
--- End Message ---
--- Begin Message ---
Huhu,
maybe someone could help me by a bogus problem...
We've got installed apache 2.0.40 and PHP 4.2.2 (also tried PHP 4.2.3)
all works fine, but...
We've got cache problems with ONLY netscape 6.1. Netscape 6.1 refresh
his cache on site visit only with shift-reload or with a completetly
cache clear from the local cache. I'm sorry, if this is an old problem.
time example http://www.bistum-eichstaett.de/test/datum/
What could this be ?
Best regards
Thomas-Ralf Sellmer
AMRO, Germany
--- End Message ---