php-install Digest 14 Nov 2001 20:19:40 -0000 Issue 554
Topics (messages 4942 through 4955):
Re: any extra work need to make php mysql function available?
4942 by: EdwardSPL.ita.org.mo
BEWARE!, Apache 1.3.22 win32 httpd.conf is different ! (was Re: [PHP-WIN] PHP 4.0.6 +
Apache 1.3.22 + WinNT 4)
4943 by: Paco Ortiz
4944 by: Ermanno Iannacci
4955 by: Paco Ortiz
Re: Install php4.0.6 with Oracle9i in Linux Redhat7.2( Ker nel 2.4.9-13)
4945 by: Jaeck Stephan
Re: PHP as DSO with Oracle 8?
4946 by: Jaeck Stephan
PHP Fatal error: Cannot instantiate non-existent class
4947 by: Gianni
Re: mysql and php3
4948 by: EdwardSPL.ita.org.mo
Re: php3_ini
4949 by: EdwardSPL.ita.org.mo
Re: PHP + IMAP
4950 by: EdwardSPL.ita.org.mo
Re: PHP + IMP
4951 by: EdwardSPL.ita.org.mo
Re: "Function registration failed" and "Module compiled with debug=0" errors
4952 by: Yasuo Ohgaki
How Java support for php
4953 by: Gianni
Re: PHP script problem
4954 by: Yasuo Ohgaki
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 ---
Jim wrote:
> hi all,
> i am using redhat. i am able to run php script thro' webpage. but, failed to
> use mysql functions in php. is there any extra work need to initialize these
> functions?
> my code and error are shown as below,
> code ****************************
>
> <?
> echo " text generated by php <br>\n";
> echo $rmnum;
> printf(" b4 connected <br>\n");
> $link=mysql_pconnect("192.168.0.101", "chaze", "sochausee") or die
> ("failed");
> mysql_select_db("stjohn");
You may try :
mysql_select_db('stjohn',$link);
>
> ?>
>
> result ****************************
>
> text generated by php
> b4 connected
>
> Fatal error: Call to undefined function: mysql_pconnect() in
> /home/chaze/public_html/sjc/energy.php on line 7
>
> ****************************
> any comments?
> thanks,
> jim
--- End Message ---
--- Begin Message ---
Hi,
Some advice: THE ClearModuleList LINE IS COMMENTED IN PREVIOUS
httpd.conf FILES AND IN 1.3.22 IS UNCOMMENTED after the LoadModule
section.
hope it helps for Apache Win32 users.
in apache 1.3.22 the httpd.conf goes like this:
...
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
# you add this now for php4
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
good: but beware, some lines later you can see this !
#
# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important. Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
...
this is the point, there is ClearModuleList, and the mod_php4 disappears !.
Try to add this to httpd.conf, after ClearModuleList line:
AddModule mod_php4.c
so you'd have:
...
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_php4.c
AddModule mod_env.c
AddModule mod_log_config.c
...
and now it should work. I went nuts because I used 1.3.20
before and that was uncommented.
Greetings,
F.J. Ortiz
11/13/01 9:27:31 AM, "Ermanno Iannacci" <[EMAIL PROTECTED]> escribió:
>I did this, but do I have to load some .c file?
>
>----- Original Message -----
>From: "Ross Fleming" <[EMAIL PROTECTED]>
>To: "Ouster" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
><[EMAIL PROTECTED]>
>Sent: Monday, November 12, 2001 11:40 PM
>Subject: RE: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
>
>
>> LoadModule php4_module c:/php/sapi/php4apache.dll
>> AddType application/x-httpd-php .php
>>
>> not php4.
>>
>> -----Original Message-----
>> From: Ouster [mailto:[EMAIL PROTECTED]]
>> Sent: 12 November 2001 21:49
>> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>> Subject: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
>>
>>
>> Do I need all the lines that load .c files?
>> Is it not enough to load only .so files?
>> I receive an error, after I wrote LoadModule php4, because there is a
>> ClearModuleList instruction that (I think) removes what I loaded.
>>
>> Thanks
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Ok, I used 1.3.19, and I remember things were as you say.
But I need a clarification, do I need the .c files?
I don't have .c files! I'm using precompiled dlls.
So I commented out all LoadModule *.c lines (and of course the
ClearModuleList line) and Apache works fine, and PHP as well.
Is there some drawback with this behaviour?
Thanks for your reply.
----- Original Message -----
From: "Paco Ortiz" <[EMAIL PROTECTED]>
To: "Ermanno Iannacci" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 1:25 PM
Subject: BEWARE!, Apache 1.3.22 win32 httpd.conf is different ! (was Re:
[PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4)
> Hi,
>
> Some advice: THE ClearModuleList LINE IS COMMENTED IN PREVIOUS
> httpd.conf FILES AND IN 1.3.22 IS UNCOMMENTED after the LoadModule
> section.
>
> hope it helps for Apache Win32 users.
>
> in apache 1.3.22 the httpd.conf goes like this:
>
> ...
> #LoadModule usertrack_module modules/mod_usertrack.so
> #LoadModule unique_id_module modules/mod_unique_id.so
>
> # you add this now for php4
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php
>
> good: but beware, some lines later you can see this !
>
> #
> # Reconstruction of the complete module list from all available modules
> # (static and shared ones) to achieve correct module execution order.
> #
> # The modules listed below, without a corresponding LoadModule directive,
> # are static bound into the standard Apache binary distribution for
Windows.
> #
> # Note: The order in which modules are loaded is important. Don't change
> # the order below without expert advice.
> #
> # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
> ClearModuleList
> #AddModule mod_vhost_alias.c
> AddModule mod_env.c
> AddModule mod_log_config.c
> ...
>
> this is the point, there is ClearModuleList, and the mod_php4 disappears
!.
>
> Try to add this to httpd.conf, after ClearModuleList line:
>
> AddModule mod_php4.c
>
> so you'd have:
>
> ...
> ClearModuleList
> #AddModule mod_vhost_alias.c
> AddModule mod_php4.c
> AddModule mod_env.c
> AddModule mod_log_config.c
> ...
>
> and now it should work. I went nuts because I used 1.3.20
> before and that was uncommented.
>
> Greetings,
>
> F.J. Ortiz
>
> 11/13/01 9:27:31 AM, "Ermanno Iannacci" <[EMAIL PROTECTED]> escribió:
>
> >I did this, but do I have to load some .c file?
> >
> >----- Original Message -----
> >From: "Ross Fleming" <[EMAIL PROTECTED]>
> >To: "Ouster" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> ><[EMAIL PROTECTED]>
> >Sent: Monday, November 12, 2001 11:40 PM
> >Subject: RE: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
> >
> >
> >> LoadModule php4_module c:/php/sapi/php4apache.dll
> >> AddType application/x-httpd-php .php
> >>
> >> not php4.
> >>
> >> -----Original Message-----
> >> From: Ouster [mailto:[EMAIL PROTECTED]]
> >> Sent: 12 November 2001 21:49
> >> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> >> Subject: [PHP-WIN] PHP 4.0.6 + Apache 1.3.22 + WinNT 4
> >>
> >>
> >> Do I need all the lines that load .c files?
> >> Is it not enough to load only .so files?
> >> I receive an error, after I wrote LoadModule php4, because there is a
> >> ClearModuleList instruction that (I think) removes what I loaded.
> >>
> >> Thanks
> >>
> >>
> >> --
> >> PHP Windows Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> >_________________________________________________________
> >Do You Yahoo!?
> >Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
Hi:
>But I need a clarification, do I need the .c files?
no, you don't, in fact, the mod_php4.c is not a file name here,
it's the module's nomenclature.
You load it with LoadModule, but ClearModuleList unloaded it
later. So if you comment ClearModuleList, you have solved
the problem. If you add it again later with AddModule, it will
be also ok.
>...
>So I commented out all LoadModule *.c lines (and of course the
>ClearModuleList line) and Apache works fine, and PHP as well.
>Is there some drawback with this behaviour?
no, there is not, unless you commented some other module you may
need...
Greetings,
F.J. Ortiz
--- End Message ---
--- Begin Message ---
Hi,
I just installed PHP 4.0.6 on Apache 1.3.19 with Ora 9i (9.0.1.0.0.) on SuSE
7.2
The thing that you should use is a patch for the configuire-script of PHP.
Because the pathnames to Oracle-libs are changed from 8i to 9i.
You can find this patch at:
http://www.cba.ua.edu/~spaff/
This sent me Brian Mauter [[EMAIL PROTECTED]]
And (of course) use option --with-oci8=/your/oracle/home/lib
HTH
Stephan
-----Original Message-----
From: Kexiao Liao [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 2:46 AM
To: Austin Gonyou
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Install php4.0.6 with Oracle9i in Linux
Redhat7.2(Ker nel 2.4.9-13)
One thing I would like to mention about:
If use:
./configure --with-oci9=/opt/app/oracle/product/9.0.1
instead of
./configure --with-oci8=/opt/app/oracle/product/9.0.1
It still can not install php. I just check ./configure --help
. The message shows it only support --with-oci8!!!
Kexiao
--- End Message ---
--- Begin Message ---
Hello Kevin,
I had near the same problem.
I use PHP 4.0.6, Apache 1.3.19, Oracle 9i 9.0.1 on a SUSE 7.2.
Apache and PHP were working but after recompiling Apache (--with-apxs
--with-oci8)
it started 'running' but died and status was 'unused', even in debug mode
the logs kept clean.
The only way that helped me was to reinstall apache from the SuSE
installation
After that it was successful.
I don't know why. Perhaps I (and you) did compile a static and a dynamic
version of PHP??
HTH
Stephan
-----Original Message-----
From: Hanser, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 08, 2001 12:55 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP-INST] PHP as DSO with Oracle 8?
...
I have a RedHat Linux 6.2 system that we run Oracle 8i, apache, and php on.
We've always compiled php as an apache module (--with-apache), because of
being unable to use the --with-apxs successfully with oracle support.
Is this a known problem with PHP and oracle? Is there anyone who has
figured out a way to make them work together?
I am able to compile everything fine, but when I try to start apache after
compiling and installing PHP, it does nothing. Nothing is written to the
logs, no process is started......
thanx
Kevin Hanser
System Administrator
Merchant Internet Group, Inc.
ShopsForMe.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi
I try to make a php page with a line like this...
<?
$objCrypt = new Java("GestPayCryptHS");
(...)
but a fatal error occour:
[14-Nov-2001 14:48:55] PHP Fatal error: Cannot instantiate non-existent
class: java in /page.php on line 2
Can anyone help me?
Gianni from Italy
--- End Message ---
--- Begin Message ---
Kraszny Attila wrote:
> Hi
>
> I installed MySQL 3.22 to my redhat linux server, that works in correct.
> But I wanted to connect from a php3 script, and don't working.
> My appache is 1.3.12 and the error message is:
>
> Fatal error: Call to unsupported or undefined function mysql_pconnect() in
> include/header.inc on line 4
>
> Ok, I know - I must install a mysql module, but where can I find that, and
> how can I install, because m yserver is hosting very important web
> pages...
>
> Attila.
Hello,
You must download php3 at this web site :
ftp://ftp.horde.org/pub/SRPMS/rh6/php-3.0.18-6.2horde1.src.rpm
And install it into your RH system , then your php3 can good for working with
mysql...
Good luck !
Edward.
--- End Message ---
--- Begin Message ---
Ranger Fox wrote:
> I am trying to run PHP 3 and 4 on the same server... when I compile 3 for
> use a module I load it up in my httpd.conf and when I go to start httpd, it
> says that php3_ini is undefined.
>
> AddModule php3_module libexec/mod_php3.so
>
> is what I have in httpd.conf for php3
Hello,
Are you going to run php3 and php4 on the same server ?
Edward.
--- End Message ---
--- Begin Message ---
Matthew wrote:
> Hi,
>
> I am currently trying to install PHP to include IMAP support.
>
> Is there an easy way to ensure that this has configured in correctly, and
> PHP _does_ support IMAP?
>
> To get it installed, I am doing ...
>
> ./configure --with-imap
> make && make install
>
> I am attempting at getting IMP Web Mail running (http://www.horde.org/imp)
> which requires PHP with IMAP support.
>
> I am using FreeBSD 3.3 STABLE, Apache 1.3.14, PHP 4.0.2 (have also tried PHP
> 4.0.3pl1 as well).
>
> Any suggestions / assistance, would be gratefully accepted.
>
> Thanks in advance,
> Matthew
>
> PS: I have looked through the mailing list archives, and didn't seem to find
> anything that would suit my problem, unless I have missed something ..
> Thanks.
Hello,
So, are you running imp ?
Edward.
--- End Message ---
--- Begin Message ---
Francisco Torres wrote:
> Fatal error: Call to unsupported or undefined function page_open() in
> /usr/local/apache/htdocs/horde-1.2.3/imp/index.php3 on line 15
>
> hi i have thus why?
> i am try install imp2.2.3 with apache and php 3.0.16
Hello,
Now, there is a new version of imp ( 2.2.7 )...
What is your system ( Linux / Window ) ?
Edward.
--- End Message ---
--- Begin Message ---
It may be wrong, but it seems you have modules loaded in php.ini.
Are there extension="php_pgsql.so", etc, in your php.ini?
--
Yasuo Ohgaki
Richard Lynch wrote:
> Trying to compile 4.0.6 from source on Mandrake 8.0 using:
>
> ./configure \
> --with-apxs=/usr/local/apache/bin/apxs \
> --disable-debug \
> --disable-debugger \
> --enable-pic \
> --enable-inline-optimization \
> --prefix=/usr \
> --with-zlib \
> --with-config-file-path=/etc \
> --enable-magic-quotes \
> --enable-track-vars \
> --with-versioning \
> --enable-sysvsem \
> --enable-sysvshm \
> --enable-ftp \
> --with-xml \
> --with-gettext \
> --with-jpeg-dir=/usr/src/jpeg-6b \
> --with-png-dir=/usr/src/libpng-1.2.0 \
> --with-gd \
> --with-freetype-dir=/usr/src/freetype
>
> Can anybody translate these into English or suggest a course of action...?
> ------ /usr/local/apache/logs/error_log -----------------------
> PHP Warning: Function registration failed - duplicate name - imagearc in Unknown on
>line 0
> [similarly for every single imageXXX function]
> PHP Warning: Function registration failed - duplicate name - mysql_tablename in
>Unknown on line 0
> [similarly for every single mysql_XXX function]
> PHP Warning: mysql: Unable to register functions, unable to load in Unknown on
>line 0
> PHP Warning: pgsql: Unable to initialize module
> [The following is repeated 5 times]
> Module compiled with debug=0, thread-safety=0 module API=20001214
> PHP compiled with debug=0, thread-safety=0 module API=20001222
> These options need to match
> in Unknown on line 0
> -----------------------------------------------------
>
> I don't even *WANT* MySQL or PostgreSQL in the darn thing, okay? I understand MySQL
>snuck in with the built-in stuff, but how did pgsql get into the picture?!
>
> I need the GD stuff though, pretty badly.
>
> Searched the -install and -general archives with no luck...
>
>
--- End Message ---
--- Begin Message ---
How can I install java support for php?
Gianni from Italy
--- End Message ---
--- Begin Message ---
Celso G. Correa wrote:
> When I run this script, I'm receiving back the following warning :
>
> Warning: Cannot send session cache limiter - headers already sent (output started at
>D:\Websites\Php\teste2_sess.php:6) in D:\Websites\Php\teste2_sessphp on line 8
> Sessão01 : cfe7f6288656774275396fcaebf9754e
Take a look at
http://www.php.net/manual/en/ref.session.php
there should be notes about this warning.
You cannot send any before you start session, since cookie is
needed to be sent before any output. (When cookie is used for session)
BTW, your script does not seem valid. The manual & notes should
help to find out what's wrong. Instead of using globals, use
$HTTP_SESSION_VARS, then you don't have to use
session_register()/session_is_registered()/session_unregister().
--
Yasuo Ohgaki
--- End Message ---