php-install Digest 4 May 2002 05:52:56 -0000 Issue 818
Topics (messages 6833 through 6843):
(Sorry Resend) - [PHP-INST] Any ideas? - Page not Found - PHP4, IPlanet 4.1, Solaris
6833 by: David O
Re: php/apache and the dreaded XP
6834 by: hyper
Re: PHP 4.2.0 won't configure for Apache2
6835 by: hyper
Re: PHP 4.2 with Apache 2 under WinXP Pro
6836 by: hyper
Re: Apache 2.0.35 and PHP 4.2
6837 by: hyper
PHP 4.2.0 & GD 2.0.1 - compiling error
6838 by: hyper
Re: php crashes apache?
6839 by: bogey
upgrade and now no formdata?
6840 by: smoulton.jabmist.afraid.org
6841 by: Yasuo Ohgaki
6842 by: Jim Thome
prob w/ php and apache
6843 by: Richard Anglin
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 ---
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
http://health.yahoo.com
--- End Message ---
--- Begin Message ---
> I just got a new desktop, from Dell, and as all of their machines do
> now, it comes with XP installed. On my last set up, i had win2000Pro with
> Apache, Mysql, PHP and they all worked like a charm. Has anyone had any
> luck with XP? I am still considering wiping the OS out totally and
> installing 2000Professional, but since this will only be used for testing
> purposes, its not really worth the work, if this set up will function as it
> should on XP.
Windows XP has some bug, read more at:
http://www.apache.org/dist/httpd/binaries/win32/#xpbug
I got Apache 2.0.35, PHP 4.2.0 working fine on Win XP,
which I can't say about the 1.3.x series.
[ h y p e r ]
--- End Message ---
--- Begin Message ---
> Output of ./configure --with-apxs2 --enable-tracking-vars
should be --with-apxs2=/usr/local/apache2/bin/apxs
(where /usr/local/apache2/bin/apxs is Your apxs path)
[ h y p e r ]
--- End Message ---
--- Begin Message ---
> How to install PHP 4.2 with Apache 2 under WinXP Pro (or other Win NT based
> system). Can't find relating info in faqs/docs, thanx for any info about.
1) Install Apache 2
2) Unpack PHP
3) httpd.conf ->
LoadModule php4_module "c:/path/to/php/experimental/apache2filter.dll"
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
4) Configure php.ini and do other system stuff (copy dll to /system)
As you see the installation is pretty much the same as Apache 1.3, so just follow
the steps of the old installation instructions and just use the above httpd.conf lines.
http://pl.php.net/manual/en/install.windows.php
note: user comments on installing with apache 2
[ h y p e r ]
--- End Message ---
--- Begin Message ---
> I tried when it was 4.2RC3 and could not get the --with-apxs2
> To work..
>
> I was wondering if it was working now?
Yes it's working now (since RC4 from what I test). You have to give the
full path to apxs2, that was (and is) a lot of people's problem:
--with-apx2=/usr/local/apache2/bin/apxs
[ h y p e r ]
--- End Message ---
--- Begin Message ---
I'm trying to compile PHP 4.2.0 with GD support, but get errors.
Would appreciate if anyone could help.
---------- system ----------
System: Slackware 8.0
HTTPd: Apache 2.0.35
PHP: 4.2.0
GD: 2.0.1 (& latest libpng, jpeg, freetype, zlib)
--------- configure ---------
./configure --enable-magic-quotes --enable-bcmath --enable-calendar --enable-ftp
--enable-sockets --enable-sysvsem --enable-sysvshm
--with-apxs2=/usr/local/apache2/bin/apxs --with-pear --with-openssl --with-zlib
--with-bz2 --with-gd --with-mysql
---------- errors -----------
Making all in gd
make[2]: Entering directory `/usr/local/src/php/php-4.2.0/ext/gd'
make[3]: Entering directory `/usr/local/src/php/php-4.2.0/ext/gd'
/bin/sh /usr/local/src/php/php-4.2.0/libtool --silent --mode=compile
gcc -I. -I/usr/local/src/php/php-4.2.0/ext/gd -I/usr/local/src/php/php-4.2.0/main
-I/usr/local/src/php/php-4.2.0 -I/usr/local/apach
e2/include -I/usr/local/src/php/php-4.2.0/Zend
-I/usr/local/src/php/php-4.2.0/ext/mysql/libmysql -I/usr/local/src/php/php-4.2.0/ext/
xml/expat -D_REENTRANT -I/usr/local/src/php/php-4.2.0/TSRM -DTHREAD=1 -g -O2 -pthread
-DZTS -prefer-pic -c gd.c
In file included from gd.c:36:
php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php/php-4.2.0/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php/php-4.2.0/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php/php-4.2.0/ext'
make: *** [all-recursive] Error 1
--- End Message ---
--- Begin Message ---
I had the same problem and the solution was in php.install by Vincent Kruger
Forget the AddModule directive it's fallen away.
LoadModule php4_module c:\php\experimental\apache2filter.dll
AddType application/x-httpd-php .php
To complete your installation Turn Register Globals on and then restart your
Apache2 Server.
All good.
Thanks to all win32php gurus.
:)
Kindest Regards
Vincent Kruger
"The Gabster" <[EMAIL PROTECTED]> píše v diskusním příspěvku
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello everyone...
>
> I am trying to configure httpd.conf to support php 4.2.0 and I added
> this lines:
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
>
> and
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .php
>
> but when I try to start Apache, I receive an "requested operation has
> failed" message...
>
> Also it I copied the php4ts.dll in the WINNT/system32 directory. It is
> suspect to me that the line c:/php/sapi/php4apache.dll references to a dll
> file that I never found on my system (php4apache.dll). Aslo I do not have
an
> "sapi" subdirectory in my C:/PHP directory. Is there something wrong in
the
> php install documentation?
>
> Anyone has an idea what am I doing wrong? (I am running Apache 2.0.35
> version on a win2k machine)...
>
> Thanks a lot,
> gabi
>
>
>
>
>
>
--- End Message ---
--- Begin Message ---
I am running windows 2000, with Apache.
I had PHP 4.0.?? on my system and everything was running fine.
I decided to upgrade to php 4.2.0 as an apache module.
PHP seems to come up ok. PHP pages are displayed,
and PHPINFO works.
However, when I submit a form to a php page, the receiving php page
does not get any of the variables.
Any form pages I had, which used to work, no always behave as if the
data passed from the form is blank.
Did I do something wrong in the install?
Thanks,
-Steve
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
> Any form pages I had, which used to work, no always behave as if the
> data passed from the form is blank.
>
> Did I do something wrong in the install?
Yes. You didn't read NEWS or release note :)
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Steve-
Read the section on external variables on this page:
http://www.php.net/release_4_2_0.php
For security reasons, automatically creating variables from form fields is not enabled
by default as of PHP 4.2.0
--Jim
>>> <[EMAIL PROTECTED]> 05/03/02 19:28 PM >>>
I am running windows 2000, with Apache.
I had PHP 4.0.?? on my system and everything was running fine.
I decided to upgrade to php 4.2.0 as an apache module.
PHP seems to come up ok. PHP pages are displayed,
and PHPINFO works.
However, when I submit a form to a php page, the receiving php page
does not get any of the variables.
Any form pages I had, which used to work, no always behave as if the
data passed from the form is blank.
Did I do something wrong in the install?
Thanks,
-Steve
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
i am getting prob starting apache after compiling/installing php:
here is the output :
# more typescript
Script started on Sat May 04 01:21:40 2002
isis[root]10> ./apachectl start
Syntax error on line 235 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin
/httpd: fatal: relocation error: file /usr/apache/libexec/libphp4.so: symbol zif
_ob_get_status: referenced symbol not found
./apachectl start: httpd could not be started
isis[root]11> exit
...and my env. variables.
# env
HOME=/
HZ=100
LD_LIBRARY_PATH=:/usr/local/mysql/lib:/usr/apache/libexec:/usr/lib
LOGNAME=root
MAIL=/var/mail/root
MANPATH=/usr/man:/usr/local/man:/usr/openwin/man:/apps/X11R5/usr/man
PATH=/bin:/usr/bin:/etc:/usr/etc:/usr/local/bin:/usr/local/etc:/usr/sbin:/usr/
PWD=/etc/apache
SHELL=/bin/csh
TERM=vt220
TZ=US/Eastern
USER=root
_INIT_NET_STRATEGY=none
_INIT_PREV_LEVEL=S
_INIT_RUN_LEVEL=3
_INIT_RUN_NPREV=0
_INIT_UTS_ISA=sparc
_INIT_UTS_MACHINE=sun4m
_INIT_UTS_NODENAME=isis
_INIT_UTS_PLATFORM=SUNW,SPARCstation-20
_INIT_UTS_RELEASE=5.8
_INIT_UTS_SYSNAME=SunOS
_INIT_UTS_VERSION=Generic
--- End Message ---