php-install Digest 23 May 2002 18:22:07 -0000 Issue 850
Topics (messages 7080 through 7089):
Re: ok compiled but ?
7080 by: Defryn NZ
7081 by: Richard Anglin
7086 by: Dan Stilts
Install Php --with-mysql=/path/to/header/files
7082 by: Sharksforum
concurrent running of 2 php versions
7083 by: erich
Re: W2K SP2, PHP 4.2.1, IIS 5
7084 by: Joshua E Minnie
Compiles & Initializes okay but will not execute?
7085 by: Shawn Lyndon
weird problem...
7087 by: TeWoei Poon
7089 by: MikeParton
PHP 4.1.2 and Apache EAPI
7088 by: Phil Dibowitz
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 am having exactly the same problem. The error only appears when starting
apache.
I am thinking about installing Apache 1.3 and see if it has the same
problem.
Everything works fine on windows :) but I want to learn Unix. What do you
mean with compiling
It directly into httpd?
Cheers
-----Original Message-----
From: Dan Stilts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 May 2002 11:10 a.m.
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-INST] ok compiled but ?
Hi Erik,
I was having this same exact problem, so I went ahead and compiled it
directly into httpd. Not always my favorite thing to do, but nothing else
was working.
Dan
-----Original Message-----
From: Erik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 1:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] ok compiled but ?
hi,
i succesfully compiled and builded mysql apache and php 4.2.1from the
sourcecode and it still refuses to work :-( the error i get is when i try
to start apache
Syntax error on line 222 of /usr/local/apache/conf/httpd.conf
cannot load /usr/local/apache/libexec/libphp4.so into server
/usr/local/apache/libexec/libphp4.so : undefined symbol __dn_expand
what is this ?? help please
regards from Belgium
Erik
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Try this --
http://www.bolthole.com/solaris/php+solaris.html
----- Original Message -----
From: "Defryn NZ" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 2:39 AM
Subject: RE: [PHP-INST] ok compiled but ?
> I am having exactly the same problem. The error only appears when starting
> apache.
> I am thinking about installing Apache 1.3 and see if it has the same
> problem.
>
> Everything works fine on windows :) but I want to learn Unix. What do you
> mean with compiling
> It directly into httpd?
>
> Cheers
>
> -----Original Message-----
> From: Dan Stilts [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 22 May 2002 11:10 a.m.
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP-INST] ok compiled but ?
>
> Hi Erik,
>
> I was having this same exact problem, so I went ahead and compiled it
> directly into httpd. Not always my favorite thing to do, but nothing else
> was working.
>
> Dan
>
> -----Original Message-----
> From: Erik [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 1:01 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] ok compiled but ?
>
> hi,
>
>
> i succesfully compiled and builded mysql apache and php 4.2.1from the
> sourcecode and it still refuses to work :-( the error i get is when i try
> to start apache
> Syntax error on line 222 of /usr/local/apache/conf/httpd.conf
> cannot load /usr/local/apache/libexec/libphp4.so into server
> /usr/local/apache/libexec/libphp4.so : undefined symbol __dn_expand
>
> what is this ?? help please
>
> regards from Belgium
> Erik
>
>
> --
> 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 ---
Meaning compile it with --with-apache=/path/to/apache_src...should look
something like:
./configure --with-mysql=/software/mysql --enable-calendar --with-apache=/op
t/build/apache_1.3.24 --with-openssl=/usr/local/openssl --with-db3=/usr/loca
l/BerkeleyDB --with-pgsql=/software/pgsql --with-gettext
That's what I had used to compile it anyway. Hope this helps.
Dan
-----Original Message-----
From: Defryn NZ [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 11:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] ok compiled but ?
I am having exactly the same problem. The error only appears when starting
apache.
I am thinking about installing Apache 1.3 and see if it has the same
problem.
Everything works fine on windows :) but I want to learn Unix. What do you
mean with compiling
It directly into httpd?
Cheers
-----Original Message-----
From: Dan Stilts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 May 2002 11:10 a.m.
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-INST] ok compiled but ?
Hi Erik,
I was having this same exact problem, so I went ahead and compiled it
directly into httpd. Not always my favorite thing to do, but nothing else
was working.
Dan
-----Original Message-----
From: Erik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 1:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] ok compiled but ?
hi,
i succesfully compiled and builded mysql apache and php 4.2.1from the
sourcecode and it still refuses to work :-( the error i get is when i try
to start apache
Syntax error on line 222 of /usr/local/apache/conf/httpd.conf
cannot load /usr/local/apache/libexec/libphp4.so into server
/usr/local/apache/libexec/libphp4.so : undefined symbol __dn_expand
what is this ?? help please
regards from Belgium
Erik
--
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 ---
When I try to install Php like this:
./configure --with-mysql=/usr/local/lib/mysql
--with-apache=../apache_1.3.24 --with-gd --enable-trans-sid
I get:
configure: error: Cannot find header files under /usr/local/lib/mysql
I have installed:
http://www.mysql.com/Downloads/MySQL-4.0/MySQL-4.0.1-2.i386.rpm
http://www.mysql.com/Downloads/MySQL-4.0/MySQL-client-4.0.1-2.i386.rpm
http://www.mysql.com/Downloads/MySQL-4.0/MySQL-devel-4.0.1-2.i386.rpm
OS: RedHat Linux 7
What am I doing wrong ?
Regards Jacob
--- End Message ---
--- Begin Message ---
does anyone has attempted to run php 4.0.x & 4.1.2 on windows NT or windows
XP platform successfully?
i appreciated php 3 & 4 can be run simulateously on linux, *NIX, freeBSD
operating environments proven by testing
--- End Message ---
--- Begin Message ---
Finally got that part to work, I ended up unistalling then reinstalling the
IIS server and unistalling PHP, then using the PHP windows installer to
configure the IIS server for me. Now I am having another problem. I am
getting the error:
PHP Warning: Unable to load dynamic library
'D:\PHP\extensions\php_mssql.dll' - The specified module could not be found.
in Unknown on line 0
What I don't understand about this error is that the php_mssql.ddl is in
that exact directory. Any suggestions?
----- Original Message -----
From: "Paul Ellison" <[EMAIL PROTECTED]>
To: "Joshua E Minnie" <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 8:42 PM
Subject: Re: [PHP-INST] W2K SP2, PHP 4.2.1, IIS 5
> Are you trying to run PHP as a CGI or ISAPI module on IIS?
>
> Same setup here and it's cool - be happy to help if I can!
>
> Paul
>
>
> ----- Original Message -----
> From: "Joshua E Minnie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 22, 2002 12:43 in the PM
> Subject: [PHP-INST] W2K SP2, PHP 4.2.1, IIS 5
>
>
> > Hey all,
> > I have a problem, that I can't seem to find the answer to. I have
> > checked the archives and the website, but to no avail. I have installed
> PHP
> > 4.2.1 on my local machine with IIS running W2K Pro. When I run php -i,
I
> > get the html output expected. But when I try to open the simple php
> script
> >
> > <?php
> > phpinfo();
> > ?>
> >
> > all I get is the script written directly to the browser as text. I
can't
> > figure out why it is not going through php.exe. Any help would be
greatly
> > appreciated.
> >
> > -josh
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.363 / Virus Database: 201 - Release Date: 5/21/2002
>
>
>
--- End Message ---
--- Begin Message ---
iPlanet 4.1, PHP 4.2.1, Solaris 8 -
We appear to have exactly the same behaviour as noted below by David O in
his post on 5/03/2002
We can compile, configure and initialize the PHP nsapi. However, we cannot
get it to execute PHP!
We see messages in the iplanet error log that identifies PHP initializes
okay.
[16/May/2002:01:02:46] info ( 8816): successful server startup
[16/May/2002:01:02:46] info ( 8816): iPlanet-WebServer-Enterprise/4.1
BB1-03/03/2000 16:56
[16/May/2002:01:02:47] info ( 8816): php4_init reports: Initialized PHP
Module
However, everytime we try to access a PHP page we get a page cannote be
displayed error. i.e. "The page cannot be displayed"
We know that the PHP nsapi is 'sort of' working as every time we request a
PHP page, we get the same initialization message in our log files. i.e.
[16/May/2002:09:41:07] info (10289): php4_init reports: Initialized PHP
Module
[16/May/2002:09:41:07] info (10296): php4_init reports: Initialized PHP
Module
As you can see, we get two messages.
Our config files are configured as per the message below, and in exact
alignment with the documentation.
i.e.
obj.conf:
Init fn="load-modules" shlib="/u01/apps/netscape/server4/bin/libphp4.so"
funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
Init fn="php4_init" LateInit="yes"
<Object name="default">
AuthTrans fn=php4_auth_trans
....
Service fn="php4_execute" type="magnus-internal/x-httpd-php"
AddLog fn="flex-log" name="access"
</Object>
<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
</Object>
mime.types:
type=magnus-internal/x-httpd-php exts=php,php3,php4,phtml
Any advice welcome!
Thanks
Shawn
"David O" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Hi Everyone,
>
> We're having some problems getting php running as a
> nsapi module on
> iplanet 4.1 (running on solaris).
>
> we have been using the instructions specified on
> http://benoit.noss.free.fr/php/install-php4.html and
> on
> http://php.ca/manual/en/install.netscape-enterprise.php
>
> we have installed php-4.2.0 (we don't want mysql) on
> our machine using
> the following configure command:
>
> /configure --without-mysql
> --with-nsapi=/u01/apps/netscape/server4/
> --enable-track-vars --enable-libgcc
> make
> make install
>
> this appears to have worked. I can execute php files
> on the server
> manually using the command:
>
> php test.php
>
> and they get interpreted properly. sounds good right?
>
> we have updated the netscape config files, mimetypes,
> etc.. as per the
> instructions, the server sees that their are
> configuration changes and
> starts without any problems but when I go to access a
> .php page
> through iPlanet I get a File Not Found / DNS error?
> the server runs
> fine otherwise, it serves up .html, .gif, .jpg, etc.
> files without any
> problems. it also does not crash when we try to access
> a php page - it
> just says "File Not Found" in the browser window???
>
> if I look at the iPlanet error logs, I see the entry:
>
> [02/May/2002:11:02:11] info (18431): php4_init
> reports: Initialized
> PHP Module
>
> [02/May/2002:11:02:11] info (18431): php4_init
> reports: Initialized
> PHP Module
>
> [02/May/2002:11:02:12] info (18432): php4_init
> reports: Initialized
> PHP Module
>
> [02/May/2002:11:02:12] info (18432): php4_init
> reports: Initialized
> PHP Module
>
> for every single request of one .php file...
>
> obj.conf configuration follows below.
>
> A deep, deep thanks in advance for any help that the
> group can
> provide!
>
> David
>
> obj.conf:
>
> Init fn="flex-init"
> access="/u01/apps/netscape/server4/https-coogee/logs/access"
> format.access="%Ses->client.ip% - %Req->vars.auth-u
> ser% [%SYSDATE%] \"%Req->reqpb.clf-request%\"
> %Req->srvhdrs.clf-status%
> %Req->srvhdrs.content-length%"
> Init fn="load-modules"
> shlib="/u01/apps/netscape/server4/plugins/coldfusion/coldfusion.so"
> funcs="DoCFRequest"
> Init fn="load-types" mime-types="mime.types"
> Init fn="load-modules"
> shlib="/u01/apps/netscape/server4/bin/libphp4.so"
> funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
> Init fn="php4_init" LateInit="yes"
> Init fn=php4_init errorString="Failed to initialize
> PHP!"
>
> <Object name="default">
> AuthTrans fn=php4_auth_trans
> NameTrans fn="assign-name" from="/servlets/*"
> name="servlet"
> NameTrans fn="assign-name" from="/examples/*"
> name="servlet"
> NameTrans fn="pfx2dir" from="/coldfusion"
> dir="/u01/apps/coldfusion/docs"
> NameTrans fn="pfx2dir" from="/cgi-bin"
> dir="/u01/apps/netscape/server4/docs/cgi-bin"
> name="cgi"
> NameTrans fn="pfx2dir" from="/release"
> dir="/u01/apps/netscape/server4/docs/cgi-bin"
> NameTrans fn="pfx2dir" from="/oracle"
> dir="/u01/apps/oracle/product/8.1.6/doc"
> NameTrans fn="pfx2dir" from="/ns-icons"
> dir="/u01/apps/netscape/server4/ns-icons"
> name="es-internal"
> NameTrans fn="pfx2dir" from="/mc-icons"
> dir="/u01/apps/netscape/server4/ns-icons"
> name="es-internal"
> NameTrans fn="pfx2dir" from="/viewer"
> dir="/viewer/LogViewer1.02/index.cfm"
> NameTrans fn="pfx2dir" from="/help"
> dir="/u01/apps/netscape/server4/manual/https/ug"
> name="es-internal"
> NameTrans fn="pfx2dir" from="/manual"
> dir="/u01/apps/netscape/server4/manual/https"
> name="es-internal"
> NameTrans fn="document-root" root="/u01/stage/dev"
> PathCheck fn="unix-uri-clean"
> PathCheck fn="find-pathinfo"
> PathCheck fn="find-index"
> index-names="index.html,home.html"
> PathCheck fn="check-acl" acl="default"
> ObjectType fn="type-by-extension"
> ObjectType fn="force-type" type="text/plain"
> Service fn="php4_execute"
> type="magnus-internal/x-httpd-php"
> Service fn="DoCFRequest" method="(GET|POST)"
> type="magnus-internal/cold-fusion"
> Service method="(GET|HEAD)"
> type="magnus-internal/imagemap"
> fn="imagemap"
> Service method="(GET|HEAD)"
> type="magnus-internal/directory"
> fn="index-common"
> Service fn="send-cgi" type="magnus-internal/cgi"
> Service method="(GET|HEAD|POST)"
> type="*~magnus-internal/*"
> fn="send-file"
> AddLog fn="flex-log" name="access"
> </Object>
>
> <Object name="cgi">
> ObjectType fn="force-type" type="magnus-internal/cgi"
> Service fn="send-cgi"
> </Object>
>
> <Object name="jsp092">
> ObjectType fn="type-by-extension"
> ObjectType fn="change-type"
> type="magnus-internal/jsp092"
> if-type="magnus-internal/jsp"
> Service fn="NSServletService"
> type="magnus-internal/jsp092"
> </Object>
>
> <Object name="es-internal">
> PathCheck fn="check-acl" acl="es-internal"
> </Object>
>
> <Object
> ppath="/u01/apps/netscape/server4/docs/cgi-bin/*">
> Service fn="send-cgi" type="magnus-internal/cgi"
> </Object>
>
> <Object name="x-httpd-php">
> ObjectType fn="force-type"
> type="magnus-internal/x-httpd-php"
> Service fn=php4_execute
> </Object>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
--- End Message ---
--- Begin Message ---
Hey all,
This is really weird. I've just upgraded the php
version from 4.0.5 to 4.2.1. I'm running Apache on
Windows 98. I've been following the installation
instructions... I've done the necessary changes to
httpd.conf
LoadModule php4_module
C:/php.4.2.1/sapi/php4apache.dll
AddType application/x-httpd-php .php
Move php4ts.dll to the C:/windows/system. Update the
php.ini at C:/windows with the php.ini-dist
I'm able to run php when I restart the Apache web
server. HOWEVER, it doesn't seem to know variable like
HTTP_USER_AGENT. What did I do wrong? It has been
working fine before I upgraded the php version.
Here is a simple php script (test1.php)
<?php
if(strstr($HTTP_USER_AGENT,"MSIE")) {
echo "You are using Internet Explorer<br>";
} else {
echo "Your HTTP_USER_AGENT is $HTTP_USER_AGENT<br>";
}
?>
In this case... I got "Your HTTP_USER_AGENT is" and
blank (eventhough, I'm using IE).
Here is another simple php script (test2.php)
<?php
echo "You could not be logged in $user";
echo ".... $HTTP_USER_AGENT";
?>
I got "You could not be logged in ...." when I called
the script htt://127.0.0.1/tests/test2.php?user=twp
Please advice. Thanks in advance.
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
--- End Message ---
--- Begin Message ---
Did you leave register_globals set to off in your php.ini? If so, you need
to declare your $_ENV superglobal variable at the beginning of your script
(see the section in the php manual on register_globals and the superglobal
arrays).
HTH
Mike
----- Original Message -----
From: "TeWoei Poon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 2:04 PM
Subject: [PHP-INST] weird problem...
> Hey all,
>
> This is really weird. I've just upgraded the php
> version from 4.0.5 to 4.2.1. I'm running Apache on
> Windows 98. I've been following the installation
> instructions... I've done the necessary changes to
> httpd.conf
>
> LoadModule php4_module
> C:/php.4.2.1/sapi/php4apache.dll
> AddType application/x-httpd-php .php
>
> Move php4ts.dll to the C:/windows/system. Update the
> php.ini at C:/windows with the php.ini-dist
>
> I'm able to run php when I restart the Apache web
> server. HOWEVER, it doesn't seem to know variable like
> HTTP_USER_AGENT. What did I do wrong? It has been
> working fine before I upgraded the php version.
>
> Here is a simple php script (test1.php)
> <?php
>
> if(strstr($HTTP_USER_AGENT,"MSIE")) {
> echo "You are using Internet Explorer<br>";
> } else {
> echo "Your HTTP_USER_AGENT is $HTTP_USER_AGENT<br>";
> }
> ?>
> In this case... I got "Your HTTP_USER_AGENT is" and
> blank (eventhough, I'm using IE).
> Here is another simple php script (test2.php)
> <?php
>
> echo "You could not be logged in $user";
>
> echo ".... $HTTP_USER_AGENT";
>
> ?>
>
> I got "You could not be logged in ...." when I called
> the script htt://127.0.0.1/tests/test2.php?user=twp
>
> Please advice. Thanks in advance.
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I recently installed PHP 4.1.2 on Apache 1.3.20 with SSL.
But when I start up Apache it warns me that PHP was compiled with "plain
Apache 1.3 API" support and my crash under "EAPI" and I should recompile with
"-DEAPI"...
I can't seem to find a configuration option for this. Is this possible? Does
PHP support this?
Phil
--
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
-Benjamin Franklin, 1759
--- End Message ---