php-install Digest 21 May 2002 21:27:00 -0000 Issue 847
Topics (messages 7062 through 7066):
Re: a php cgi problem
7062 by: Erik
iPlanet 4.1, PHP 4.2.1, Solaris 8 - Compiles and Initializes but will not execute.
HELP!
7063 by: Shawn Lyndon
how to specify alternate php.ini location for apache module version
7064 by: Alex Howansky
Re: PHP, Apache and threads: very strange
7065 by: Wagner R. Teixeira
I canīt compile php
7066 by: Ing. Marco Antonio Reyes Acosta
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,
that's easy man apache expects perl cgi in "cgi-bin" you must first set de
proper apache directive see /logs/error_mog.log for more inforemation php
cannot execute stuff in cgi-bin unless it is specially configured to do that
you mus setup the proper directives first ..........
"Brian Kim" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I installed php 4.0.4 (cgi binary) and apache 1.3.14 on window 2000. When
I
> run
> <?php phpinfo(); ?> in the 'DocumentRoot' directory, it works. But when I
> run
> a php cgi script stored in the "cgi-bin" directory, it gives an error:
> "Internal Server Error.
> The server encountered an internal error or misconfiguration and was
unable
> to complete your request."
>
> So I tried to add "#!c:/php/php.exe" to the first line of the above
> cgi-script,
> it works, but this time, #!c:/php/php.exe is displayed in the output of
the
> cgi-script.
> I followed the standard instructions, but I am not sure what went wrong.
> Any idea on how to fix this problem?
>
> Brian
> -----------------------------
> My httpd.conf has the following lines:
> ...
> DocumentRoot "D:/Web"
> <IfModule mod_alias.c>
> ...
> ScriptAlias /php/ "C:/php/"
> ScriptAlias /cgi-bin/ "D:/Web/cgi-bin/"
> <Directory "D:/Web/cgi-bin">
> AllowOverride None
> Options None
> Order allow,deny
> Allow from all
> </Directory>
> </IfModule>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.344 / Virus Database: 191 - Release Date: 2002-04-02
>
--- End Message ---
--- Begin Message ---
We appear to have exactly the same behaviour as noted below by David O in
his posted in 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 ---
Apache allows specification of a configuration file (other than the default)
by using the -f option at the time the daemon is started. So, I can have
multiple instances of the same Apache binary running, each using a different
configuration file.
What I would like to do, is have each one of those instances also use a
different php.ini. I want the effect of the -c option for the PHP stand-alone
version, but in the Apache module version. However, it doesn't seem that I can
specify the location of the php.ini file for the Apache module version other
than via the compile-time option --with-config-file-path.
Specifically, I want some sites to run with Zend Optimizer, and some with APC.
Since these products can not run together, it seems clear that I must have
separate Apache processes handle them, as opposed to just different virtual
servers within the same process. Since neither product can be loaded
dynamically, I'll need to have different php.ini files for each set of sites.
However, it doesn't seem that I can accomplish my goal unless I compile two
separate libphp4.so files (the only difference being the
--with-config-file-path option), and then have the already separate httpd.conf
files refer specifically to them.
Is there a better way to accomplish this?
--
Alex Howansky
Wankwood Associates
http://www.wankwood.com/
--- End Message ---
--- Begin Message ---
Thanks for your time, Rich.
The undefined symbol missing has to do with Posix Threads, not with zlib.
Anyway, I installed Apache 1.3.24 and everything is OK now. I think it's
because Apache 2 uses threads much more intenselly than older versions, and,
as long as I know, Posix Threads are std only in API, not in implementation,
and FreeBSD doesn't support then at kernel level...
That's it.
Cheers,
Wagner.
PS: thanks for the link. Very useful and probably will avoid some postings
from me in the future ;-)
> -----Original Message-----
> From: Richard Anglin [mailto:[EMAIL PROTECTED]]
> Sent: segunda-feira, 20 de maio de 2002 20:57
> To: Wagner R. Teixeira; [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] PHP, Apache and threads: very strange
>
>
> download zlib, install and recompile:
>
> http://www.faqts.com/knowledge_base/view.phtml/aid/5087
>
> -regards
>
> Rich
> ----- Original Message -----
> From: "Wagner R. Teixeira" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 20, 2002 4:08 PM
> Subject: [PHP-INST] PHP, Apache and threads: very strange
>
>
> > Hi, guys.
> >
> > I'm installing PHP 4.2.1 with Apache 2.0.36. I can compile both the way
> I've
> > been doing for years, but this time when I start Apache I get the
> following
> > error message:
> >
> > ==================
> > Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
> > Cannot load /usr/local/apache2/modules/libphp4.so into server:
> > /usr/local/apache2/modules/libphp4.so: Undefined symbol
> > "pthread_getspecific"
> > /apache/bin/apachectl start: httpd could not be started
> > ==================
> >
> > httpd.conf, line 230 (automatically inserted during PHP build) is:
> > LoadModule php4_module modules/libphp4.so
> >
> > PHP Configure command is:
> >
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --enable-dbase --enable
> > -ftp --with-mysql=/usr/local/mysql
> --with-pgsql=/usr/local/pgsql --enable-
> tr
> >
> ans-sid --enable-sysvsem --enable-sysvshm --enable-wddx
> --enable-debug=no --
> > enable-safe-mode --with-imap=/usr/local/src/imap/client/imap-4.5
> >
> > Apache Configure command is:
> >
> ./configure --enable-module=so --enable-module=unique_id
> --with-perl=/usr/bi
> > n/perl
> >
> > The OS is: FreeBSD 4.5-RELEASE
> >
> > Could anybody help me?
> >
> > Thanks in advance.
> > Wagner.
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.361 / Virus Database: 199 - Release Date: 07/05/02
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.361 / Virus Database: 199 - Release Date: 07/05/02
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 07/05/02
--- End Message ---
--- Begin Message ---
hi, Iīm new here, and my english is not good.
I have a server with SO BSDI4.2, I installed apache_1.3.24
this works well, but I tried to install php4 and I configure like this:
./configure --with-mysql=/usr/local/mysql --with-apache=/usr/local/src/apache
--enable-track-vars
the final message is :
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
but when I try to compile with make the error is this:
Makefile:34: *** missing separator. Stop.
but the line 34 in Makefile is this:
install_targets = install-sapi install-modules
.include "$(top_srcdir)/build/rules.mk"
.include "$(top_srcdir)/build/library.mk"
can you help me.
tanks,
===============================================
INTERNET ... Una solucion tecnologica mas de CIATEQ
===============================================
Ing. Marco Antonio Reyes Acosta
Sistemas y Electronica
CIATEQ, A.C.(Centro de Tecnologia Avanzada)
Av. del Retablo 150, Col. Fovissste
Queretaro, Qro. c.p 76150
Tel: (01442)-2-11-26-00 ext. 627
(01442)-2-11-26-27
email: [EMAIL PROTECTED]
icq #: 42487397
===============================================
Los acentos han sido omitidos
===============================================
--- End Message ---