php-install Digest 26 Jun 2002 17:55:15 -0000 Issue 903
Topics (messages 7472 through 7493):
Re: mod_php4.c
7472 by: Thies C. Arntzen
Re: Apache 1.3.26?
7473 by: Rasmus Lerdorf
7475 by: the baldheadedguy
7476 by: Rasmus Lerdorf
zend parsing
7474 by: Kelly Lewis
Make problem with apache 1.3.26 & php 4.2.1 in linux (kernel 2.2.16-3).2.
7477 by: james sebastian
Missing OCX under configuretion of the IIS 5 webserver
7478 by: A. Mikkelsen
7479 by: A. Mikkelsen
Missing OCX control - When installing on win2000 adv srv with IIS5
7480 by: A. Mikkelsen
7481 by: Phil Driscoll
trouble with my PHP4.2.1 running as SAPI module for Apache1.3.26 on W2K
7482 by: Miroslav Zatko
Track vars gone ..
7483 by: Paul Appleyard
7484 by: Pierre-Alain Joye
7485 by: Jonathan Thomas
7486 by: Paul Appleyard
Invalid ODBC result resource
7487 by: FAHIM K S
redhat 7.3, apache, php setup question
7488 by: brain_damaged
Install problems (unix.h)
7489 by: Gardiner Leverett
Q: Oracle 9 support
7490 by: Stewart Dean
Zend Optimizer.
7491 by: chad kellerman
7492 by: Matt Schroebel
7493 by: chad kellerman
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 ---
On Tue, Jun 25, 2002 at 02:25:28AM -0700, Peter Richards wrote:
> I have redhat 7.2 and default apache.rpm. i compiled PHP4 no problem and
> have libphp4.so in the modules section
>
> here is the errorlog messages on loading apache
>
> [Mon Jun 24 00:04:40 2002] [error] Cannot remove module mod_php4.c: not
> found in module list
> [Mon Jun 24 00:04:40 2002] [alert] httpd: Could not determine the server's
> fully qualified domain name, using 127.0.0.1 for ServerName
> [Mon Jun 24 00:04:40 2002] [crit] (98)Address already in use: make_sock:
> could not bind to port 80
> [Mon Jun 24 00:04:45 2002] [error] Cannot remove module mod_php4.c: not
> found in module list
> [Mon Jun 24 00:04:45 2002] [alert] httpd: Could not determine the server's
> fully qualified domain name, using 127.0.0.1 for ServerName
> [Mon Jun 24 00:04:45 2002] [crit] (98)Address already in use: make_sock:
> could not bind to port 80
> [Mon Jun 24 00:04:56 2002] [error] (13)Permission denied: exec of
> /var/www/cgi-bin/phpinfo.php4 failed
> [Mon Jun 24 00:04:56 2002] [error] [client 127.0.0.1] Premature end of
> script headers: /var/www/cgi-bin/phpinfo.php4
>
> mod_php4.c is in the source directory of apache and if i point the
> httpd.conf to this directory I get a "not in list of loaded modules'
please read the INSTALL file that came with the php sources.
tc
>
> can any one help
> thanks
> peter richards
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Did you follow the INSTALL file instructions carefully step by step? If
so, where are things going wrong?
On Tue, 25 Jun 2002, the baldheadedguy wrote:
> Hello,
>
> I've recently begun upgrading my Apache installation due to the Apache's
> security alert to version 1.3.26. However, I cannot *for the life of me*
> get php 4.2.1 to work with it. I've tried both building Apache first,
> then building php using apxs, and building php first --with-apache, then
> building apache... nothing seems to work.
>
> Has anyone been successful in getting this combination to work?
>
> Thanks in advance.
> SLH.
>
> --
> Steighton Haley [EMAIL PROTECTED]
>
> "Outside of a dog a book is man's best friend...
> inside of a dog it's too dark to read!" -Groucho Marx
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
On Tue, 25 Jun 2002, Rasmus Lerdorf wrote:
> Did you follow the INSTALL file instructions carefully step by step? If
> so, where are things going wrong?
Yes indeed.
Where things go wrong depends heavily upon which method I use to compile
PHP...
If I use --with-apxs, I am able to produce a libmodphp4.so (or something
of that nature). When I start Apache, it complains that the API used by
the .so is 'strange', and refuses to load it.
If I use --with-apache, and point it to the Apache source directory, I
have to go through some Hurculean tasks to get apache to compile (mainly
because includes and libraries that are needed when compiling in the PHP
module aren't in the Makefiles..., and I have to modify mod_php.c
because for some reason Apache wants the object to be named
modphp_module, rather than php_module *sigh* )...
Anyway, I am able to get it all compiled, and then I get confused 'cause
there is an 'AddModule modphp_module.c (or something like that) in the
httpd.conf file, but no LoadModule (which I guess is good since this
approach didn't produce an 'so' file. However, when I start Apache I get
an error saying that the module can't be added because there is no
'LoadModule' directive.
Sooo... that's the long story. I'd like to use 4.2.1, but I can't see
how.
On the upside, however, I was able to get everything to work just fine
with 4.2.0 ;-)
Thanks for the response, and please let me know if you have any
suggestions, of if I can be of some help in filing/fixing any associated
bugs.
--
Steighton Haley [EMAIL PROTECTED]
"Outside of a dog a book is man's best friend...
inside of a dog it's too dark to read!" -Groucho Marx
--- End Message ---
--- Begin Message ---
> On Tue, 25 Jun 2002, Rasmus Lerdorf wrote:
>
> > Did you follow the INSTALL file instructions carefully step by step? If
> > so, where are things going wrong?
>
> Yes indeed.
>
> Where things go wrong depends heavily upon which method I use to compile
> PHP...
>
> If I use --with-apxs, I am able to produce a libmodphp4.so (or something
> of that nature). When I start Apache, it complains that the API used by
> the .so is 'strange', and refuses to load it.
libmodphp4.so? It should be libphp4.so, not libmodphp4.so
Make sure you do a make clean, rm config.cache and try the apxs method
again. It works for millions of PHP sites out there. Yours is not going
to be any different.
> If I use --with-apache, and point it to the Apache source directory, I
> have to go through some Hurculean tasks to get apache to compile (mainly
> because includes and libraries that are needed when compiling in the PHP
> module aren't in the Makefiles..., and I have to modify mod_php.c
> because for some reason Apache wants the object to be named
> modphp_module, rather than php_module *sigh* )...
Uh, no, you are completely misunderstanding something. Exact error
messages are required here.
> Anyway, I am able to get it all compiled, and then I get confused 'cause
> there is an 'AddModule modphp_module.c (or something like that) in the
> httpd.conf file, but no LoadModule (which I guess is good since this
> approach didn't produce an 'so' file. However, when I start Apache I get
> an error saying that the module can't be added because there is no
> 'LoadModule' directive.
Again, this is explained in the INSTALL file. When using --with-apache
you are building PHP statically into your httpd binary, so there is no
LoadModule needed and certainly no libphp4.so is created. The module is
already in there.
> Sooo... that's the long story. I'd like to use 4.2.1, but I can't see
> how.
Please please please, sit down and quietly read through the INSTALL file a
couple of times.
-Rasmus
--- End Message ---
--- Begin Message ---
Hi,
I've recently re-configured my php build 4.0.6 to include mcrypt and mhash
functionality. After doing so, any of the Zend-encoded scripts on the server are not
displaying properly. It looks to be displaying the binary as a text file within the
browser. Does anyone know what might be causing this problem? I've read that there
was a parsing issue with version 4.0.4 or lower, but I assume this is fixed in version
4.0.6.
Thanks in advance....
Kelly
--- End Message ---
--- Begin Message ---
Dear friends,
I have a problem in configuraing apache 1.3.26 & php
4.2.1 in our server. We are running at present 1.3.20
apache & php 4.0.6. (Os: Linux 6.2 redhat, kernel:
2.2.16-3)
we used the follwing steps for compliation
This is the error when i do make (php-4.2.1)
[root@www php-4.2.1]# make cd apache_1.3.26
$ ./configure
$ cd ..
$ gunzip -c php-4.2.1.tar.gz | tar xf -
$ cd php-4.2.1
$ ./configure --with-pgsql
--with-apache=/home/cmc/apache_1.3.26
$ make
we got the following error,
Making all in Zend
make[1]: Entering directory `/home/cmc/php-4.2.1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc
-DHAVE_CONFIG_H -I. -I.
-I../main -I../TSRM
-g -O2 -prefer-non-pic -static -c -o
zend_language_parser.lo `test -f
zend_language_parser.c || echo
'./'`zend_language_parser.c
In file included from /usr/include/errno.h:36,
from zend_operators.h:24,
from zend_API.h:28,
from zend_language_parser.c:151:
/usr/include/bits/errno.h:25: linux/errno.h: No such
file or directory
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/home/cmc/php-4.2.1/Zend'
make: *** [all-recursive] Error 1
Make fails for apache too with different errors.
Please advise us what could be the problem. I am a
relatively newbie in apache & php.
thanx
james
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--- End Message ---
--- Begin Message ---
Hi,
During installation of the PHP4.2.1 on win2000 adv srv with IIS 5.0 I get an
error
"...missing OCX...."
when the installer tries to configure the webserver.
It doesn't say witch OCX.
Can anyone help...... PLEASE
Anders
--- End Message ---
--- Begin Message ---
Hi,
During installation of the PHP4.2.1 on win2000 adv srv with IIS 5.0 I get an
error
"...missing OCX...."
when the installer tries to configure the webserver.
It doesn't say witch OCX.
Can anyone help...... PLEASE
Anders
--- End Message ---
--- Begin Message ---
Hi,
I'm trying to install PHP 4.2.1 on a win2000 adv srv with IIS5
And get this error when the installer tries to configure the webserver
"Due to missing OCX control on your system, the installation
wizard is unable to configure your webserver......"
Does anyone have an idear to fix this ????
Anders
--- End Message ---
--- Begin Message ---
On Tuesday 25 June 2002 10:17 pm, Anders Mikkelsen wrote:
> Hi,
>
> I'm trying to install PHP 4.2.1 on a win2000 adv srv with IIS5
>
> And get this error when the installer tries to configure the webserver
> "Due to missing OCX control on your system, the installation
> wizard is unable to configure your webserver......"
>
> Does anyone have an idear to fix this ????
Yes. Just configure IIS manually as per the intallation instructions. That is
much easier than trawling around to find and then install sundry ocx controls
which are only used by the installer, not php itself.
Cheers
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
I have trouble with my PHP4.2.1 running as SAPI module for Apache1.3.26
on W2K
Every request to .php produces:
"Warning: Failed opening '/path/to/script.php' for inclusion
(include_path='.;include/paths') in Unknown on line 0"
No matter if I use php4apache.dll & php4ts.dll distributed or self
builded...
If I set auto_prepend_file in php.ini to something (e.g.the same script
as requested one) it will execute prepended script correctly but the
main script produces the same:
"Warning: .............."
If I make the same with PHP4.2.1 running as SAPI module for Apache2.0.39
on W2K it causes no problem. I can use php4apache2.dll distributed or
self builded...
What I have to do if I need to use Apache1.3.26 with PHP? Anyone know?
Caff!!!
Mirec
--- End Message ---
--- Begin Message ---
Hi,
Re-installed php 4.2.1 with apache 1.3.26 for curl support; and now I have
to use the $_GET or $_POST globals to access variables I'm passing to php
scripts. Ie, if the URL is http://www.url.com/script.php?myvar=tangy
I have to assign $myvar = $_GET["myvar"] rather than just being able to use
$myvar ..
My php config goes:
./configure --with-mysql --with-openssl=/usr/local/ssl --with-curl=/usr/loc
al/lib --with-apache=/usr/src/apache/apache_1.3.26 --enable-track-vars
Help ...
--- End Message ---
--- Begin Message ---
On Wed, 26 Jun 2002 22:56:05 +1000
"Paul Appleyard" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Re-installed php 4.2.1 with apache 1.3.26 for curl support; and now I have
> to use the $_GET or $_POST globals to access variables I'm passing to php
> scripts. Ie, if the URL is http://www.url.com/script.php?myvar=tangy
>
> I have to assign $myvar = $_GET["myvar"] rather than just being able to use
> $myvar ..
>
> My php config goes:
> ./configure --with-mysql --with-openssl=/usr/local/ssl --with-curl=/usr/loc
> al/lib --with-apache=/usr/src/apache/apache_1.3.26 --enable-track-vars
>
> Help ...
register_global is off by default, you have read that at the end of the configure
script :).
hth
pa
--- End Message ---
--- Begin Message ---
Make sure you copied over the php.ini-dist / renaming it to php.ini / and
that you turned Register_Globals = On
If register_globals is off you will have the problem you are describing.
Thanks,
JT
-----Original Message-----
From: Paul Appleyard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 26, 2002 8:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Track vars gone ..
Hi,
Re-installed php 4.2.1 with apache 1.3.26 for curl support; and now I have
to use the $_GET or $_POST globals to access variables I'm passing to php
scripts. Ie, if the URL is http://www.url.com/script.php?myvar=tangy
I have to assign $myvar = $_GET["myvar"] rather than just being able to use
$myvar ..
My php config goes:
./configure --with-mysql --with-openssl=/usr/local/ssl --with-curl=/usr/loc
al/lib --with-apache=/usr/src/apache/apache_1.3.26 --enable-track-vars
Help ...
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> register_global is off by default, you have read that at the end of the
configure script :).
Merci Pierre, discovered this just after I posted :) It's been a looong day
..
Paul
--- End Message ---
--- Begin Message ---
Dear All,
I am usinng IIS (Internet Information Server) on windows 2000 Advanced Server. PHP is
installed.
When I write the following script:
----------------------------------------------------------
<?php
$connection=odbc_connect("task","","") or die("Couldn't connect.");
$sql="SELECT id,notes FROM task";
$sql_statement=odbc_prepare($connection,$sql) or die("Couldn't connect.");
$sql_result=odbc_execute($sql_statement) or die("Couldn't connect.");
odbc_result_all($sql_result);
odbc_free_result($sql_result);
odbc_close($connection);
?>
----------------------------------------------------------
I get an error which says:
Warning: Supplied argument is not a valid ODBC result resource in
c:\inetpub\wwwroot\tt.php on line 6
Warning: Supplied argument is not a valid ODBC result resource in
c:\inetpub\wwwroot\tt.php on line 7
Can anyone Please suggest me what to do.
Thanking you,
FAHIM
--- End Message ---
--- Begin Message ---
I have a redhat 7.3 install with apache 1.3.26-11 and php 4.2.1 (i think).
Looking at the httpd.conf for the LoadModules
the location is listed as
LoadModule php4_module module/libphp4.so
however the modules is at /usr/local/apache
so being newbie not sure easiest way to make the change or were to make the modules
directory ?
thanks
mark
--- End Message ---
--- Begin Message ---
I have been having problems installing php 4.2.1 on Solaris 2.6, and have
been running into that unix.h problem. I have used what was listed in the
archives as a solution and it didn't work.
Here's what I'm doing:
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-apache=../apache_1.3.26
This of course, picks up the unix.h. Following the archive solution, I
commented out the include line in the zend.h file and the main/php.h file.
When I run make after this, I now get this:
Making all in Zend
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -D_POSIX_PTHREAD_SEMANTICS -I../TSRM -g -O2 -prefer-non-pic
-static -c -o zend_language_parser.lo `test -f zend_language_parser.c ||
echo './'`zend_language_parser.c
In file included from ../main/php_config.h:2084,
from zend_config.h:1,
from zend.h:48,
from zend_compile.h:24,
from zend_language_parser.c:147:
/usr/include/stdlib.h:53: warning: empty declaration
In file included from ../main/php_config.h:2088,
from zend_config.h:1,
from zend.h:48,
from zend_compile.h:24,
from zend_language_parser.c:147:
/usr/include/sys/types.h:253: warning: empty declaration
/usr/include/sys/types.h:354: warning: empty declaration
/usr/include/sys/types.h:355: warning: empty declaration
And this continues for almost every program, then it finally fails at the
end with some other file not being found.
What's going on here? I had JUST compiled this version on another 2.6
machine last week, and was able to get around the unix.h by changing the
config.cache line to "no" and re-running configure. Now, I can't get
anything to work.
Any suggestions? Is this really related to that unix.h file? Where IS
this unix.h? (I did a find on /usr, /bin, /lib and I can't find it
anywhere.)
----------
Gardiner D. Leverett [EMAIL PROTECTED]
Merit Network, Inc. Phone: 734-647-9888
4251 Plymouth Road, Suite 2000 Ann Arbor, MI 48105-2785
http://www.merit.edu
--- End Message ---
--- Begin Message ---
What are the plans for Oracle 9 support? I have a circular dependency that seems to
require O9...
--
--
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York 12504
[EMAIL PROTECTED] voice: 845-758-7475, fax: 845-758-7035
--- End Message ---
--- Begin Message ---
Hello everyone,
Is there any configure options to build the Zend Optimizer into the php
build on Red Hat? I took a look at ./configure --help but did not see any
reference to it..
I was wondering this because I upgraded to 4.2.1 from 4.0? I for get.
But anyway I had to creata a ZendOptimizer.so before and place it in
/usr/local/Zend and have it load in the php.ini file. Now some of my zend
optimized pages do not come up.
I there diferent syntaxing now that it is built in? It is built in,
right?
thanks,
chad
--- End Message ---
--- Begin Message ---
> From: chad kellerman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 26, 2002 1:11 PM
> Subject: [PHP-INST] Zend Optimizer.
>
> Is there any configure options to build the Zend
> Optimizer into the php
> build on Red Hat? I took a look at ./configure --help but
> did not see any
> reference to it..
>
> I was wondering this because I upgraded to 4.2.1 from
> 4.0? I for get.
> But anyway I had to creata a ZendOptimizer.so before and place it in
> /usr/local/Zend and have it load in the php.ini file. Now
> some of my zend
> optimized pages do not come up.
You don't get the source for the zend optimizer. Download it from
http://www.zend.com/ and install according to the instructions that come with it. The
optimizer doesn't effect the pages themselves, so not having it wouldn't change how
the pages show. Perhaps the problem with your php.ini and the fact that
register_globals is now off by default. Read about it at
http://www.php.net/manual/en/security.registerglobals.php
--- End Message ---
--- Begin Message ---
So this should not have had an effect on how the page parses?
Because on of my site the page showed up with:
ZEND ()()()then a bunch of strange characters.
Thansk for the help.
Chad
On Wed June 26 2002 1:25 pm, Matt Schroebel wrote:
> > From: chad kellerman [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 26, 2002 1:11 PM
> > Subject: [PHP-INST] Zend Optimizer.
> >
> > Is there any configure options to build the Zend
> > Optimizer into the php
> > build on Red Hat? I took a look at ./configure --help but
> > did not see any
> > reference to it..
> >
> > I was wondering this because I upgraded to 4.2.1 from
> > 4.0? I for get.
> > But anyway I had to creata a ZendOptimizer.so before and place it in
> > /usr/local/Zend and have it load in the php.ini file. Now
> > some of my zend
> > optimized pages do not come up.
>
> You don't get the source for the zend optimizer. Download it from
> http://www.zend.com/ and install according to the instructions that come
> with it. The optimizer doesn't effect the pages themselves, so not having
> it wouldn't change how the pages show. Perhaps the problem with your
> php.ini and the fact that register_globals is now off by default. Read
> about it at http://www.php.net/manual/en/security.registerglobals.php
--
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202
--- End Message ---