php-install Digest 14 Nov 2001 08:07:10 -0000 Issue 553

Topics (messages 4928 through 4941):

Re: PHP script problem
        4928 by: Jim Thome

Re: pdflib 4.0.1 & php 4.0.6
        4929 by: Jim Thome

PHP 4.0.6 on PWS 4/Win98
        4930 by: Sam K
        4931 by: Grant Johnson
        4932 by: Sam K

getrusage() not supported
        4933 by: Daniel Berwig
        4934 by: Jon Wagoner

help need
        4935 by: Landy Roman

Install php4.0.6 with Oracle9i in Linux Redhat 7.2(Kernel 2.4.9-13)
        4936 by: Kexiao Liao
        4938 by: Austin Gonyou
        4940 by: Kexiao Liao

"Function registration failed" and "Module compiled with debug=0" errors
        4937 by: Richard Lynch

PHPMyAdmin install problem
        4939 by: James Giordano

apache + MySQL + php4 + ssl
        4941 by: EdwardSPL.ita.org.mo

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 ---
Move all your code to the top of the page.  Sessions use cookies, and those headers 
must be sent to the browser before anything else.

-Jim

>>> Celso G. Correa <[EMAIL PROTECTED]> 11/13 5:16 AM >>>
Dear Srs,
A few days ago, I upgraded my PHP installation from 3.0.18 to 4.0.6 version.
I tested the new version with the following script :

<html>
<head>
<title>Links</title>
</head>
<?
session_cache_limiter('public');
$cc = session_start();
session_register("cont");
$cont = session_id();
$ssid = session_id();
echo "Sessão01 : " . $ssid;
session_destroy();
?>
<body>
</body>
</html>

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

My environment is :
- OS : Windows NT 4.0
- PHP version : 4.0.6
- Web Server : IIS 4.0

Part of php.ini configuration is :

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
error_reporting  =  E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
track_errors = Off
;error_prepend_string = "<font color=ff0000>"
;error_append_string = "</font>"
;error_log = filename
;error_log = syslog
warn_plus_overloading = Off

[Session]
session.save_handler = files
session.save_path = C:/Temp/php
session.use_cookies = 0
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 20
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

Thanks.
Celso G. Corrêa

--
PHP Install 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 ---
What is your config line for both pdflib and PHP?

>>> "Brent Meshier" <[EMAIL PROTECTED]> 11/12 8:23 PM >>>
I've tried just about every configuration possible to compile pdflib for php
as a shared module.  The result is libpdf_php.so with a size of 47k.  I
restart apache (1.3.20) and get the following error:

PHP Warning:  Invalid library (maybe not a PHP library) 'libpdf_php.so'  in
Unknown on line 0

Any ideas?  I've been trying for over 4 hours now!

Brent Meshier
http://www.meshier.com/ 


-- 
PHP Install 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 ---
Folks,

Is there anyone out there who knows how to configure Win98 and PWS to work
with PHP? There are a number of posts in this newsgroup asking a similar
question, and people seem to either not respond or recommend an alternative
server. PHP.net insist that it should work on PWS, and the installer
performs all the necessary registry changes. Why does the server not know
how to parse the pages?

I, amongst others, would be very keen to get PHP working in a PWS
environment.

Thank you for your help....

Sam K


--- End Message ---
--- Begin Message ---
It works.  I have used it.  The installer did it just right, 
automatically.  It is a config or a query question.  I am sorry I cannot 
be of more help, but I no longer have any MS machines.

Make sure you are asking via http://localhost and not file://c|


Sam K wrote:

>Folks,
>
>Is there anyone out there who knows how to configure Win98 and PWS to work
>with PHP? There are a number of posts in this newsgroup asking a similar
>question, and people seem to either not respond or recommend an alternative
>server. PHP.net insist that it should work on PWS, and the installer
>performs all the necessary registry changes. Why does the server not know
>how to parse the pages?
>
>I, amongst others, would be very keen to get PHP working in a PWS
>environment.
>
>Thank you for your help....
>
>Sam K
>
>
>


--- End Message ---
--- Begin Message ---
Yes, Grant. Fundamental stuff - it is running an HTTP request. I have used
exactly the same installed in a Win2K/IIS 5 environment and it works 100%.
The execute permissions are also set on the directory I want to use to
support PHP files.

It seems to definitely be an issue of configuration. Is there any additional
steps which need to be taken in the registry or any files which need copied
to specific locations for this to work?

Cheers

Sam K

"Grant Johnson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It works.  I have used it.  The installer did it just right,
> automatically.  It is a config or a query question.  I am sorry I cannot
> be of more help, but I no longer have any MS machines.
>
> Make sure you are asking via http://localhost and not file://c|
>
>
> Sam K wrote:
>
> >Folks,
> >
> >Is there anyone out there who knows how to configure Win98 and PWS to
work
> >with PHP? There are a number of posts in this newsgroup asking a similar
> >question, and people seem to either not respond or recommend an
alternative
> >server. PHP.net insist that it should work on PWS, and the installer
> >performs all the necessary registry changes. Why does the server not know
> >how to parse the pages?
> >
> >I, amongst others, would be very keen to get PHP working in a PWS
> >environment.
> >
> >Thank you for your help....
> >
> >Sam K
> >
> >
> >
>
>


--- End Message ---
--- Begin Message ---
I'm trying to run a script in my server (IIS 5) that uses the function
getrusage(), but it returns the following warning:

Warning: getrusage() is not supported in this PHP build in file_name.php on
line 377

Does anyone know how I can solve this problem?

Thanks in advance.


--- End Message ---
--- Begin Message ---
Looking at the php manual page, I would guess that this is not supported in
Windows.  It says this php function is an interface to the unix getrusage
command.  Since windows would not support this command, I imagine they just
left it out of the windows port.

-----Original Message-----
From: Daniel Berwig [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] getrusage() not supported 


I'm trying to run a script in my server (IIS 5) that uses the function
getrusage(), but it returns the following warning:

Warning: getrusage() is not supported in this PHP build in file_name.php on
line 377

Does anyone know how I can solve this problem?

Thanks in advance.



-- 
PHP Install 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 ---
using linux suse 7.2 and apache 1.3.19

when i do localhost i see php module is install but php pages wont display
please help

--- End Message ---
--- Begin Message ---
Hi Php ,
    When I installed php4.0.6 with Oracle9i(Enterprise Edition) in Linux
Redhat 7.2(Kernel 2.4.9-13). I got following error message:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

                                                          *** ATTENTION
***
Something is likely to be messed up here, because the configure script
was not able to detect a simple feature on your platform.
This is often caused by incorrect configuration parameters. Please see
the file debug.log for error messages.

I attached the debug.log with this e-mail.

The command for install php4.0.6 is:
./configure --with-oci8=/opt/app/oracle/product/9.0.1
--with-apxs=/opt/apache/bin/apxs(run as root)


"opt/app/oracle/product/9.0.1"  is the home directory of oracle 9i.
Oracle9i is running well  in my Linux box.
Apache Server is 1.3.19 with Dynamic shared object(with apache home
directory "/opt/apache/").  If using "/opt/apache/bin/httpd -l", it will
show:
http_core.c
mod_so.c
suexec: disabled; invalid wrapper /opt/apache/bin/suexec

I wonder if your current php4.0.6 can support Oracle9i. I am looking
forward to your reply! Thanks.

Kexiao



CONFIGURE:   './configure' '--with-oci9=/opt/app/oracle/product/9.0.1' 
'--with-apxs=/opt/apache/bin/apxs'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
CXX:        
CXXFLAGS:   
INCLUDES:    -I/opt/apache/include  -I$(top_builddir)/Zend 
-I/opt/oracle/php/php-4.0.6/ext/mysql/libmysql
LDFLAGS:    
LIBS:       -lcrypt -lresolv -lm -ldl -lnsl  -lresolv
DLIBS:      
SAPI:       apache
PHP_RPATHS: 
uname -a:   Linux hermes.campus.uidaho.edu 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 
i686 unknown

gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8  
conftest.c -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 1>&5
--- End Message ---
--- Begin Message ---
I don't see anything wrong in there. Anyone else?

On Tue, 2001-11-13 at 17:37, Kexiao Liao wrote:
> Hi Php ,
>     When I installed php4.0.6 with Oracle9i(Enterprise Edition) in Linux
> Redhat 7.2(Kernel 2.4.9-13). I got following error message:
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> -----------------
> 
>                                                           *** ATTENTION
> ***
> Something is likely to be messed up here, because the configure script
> was not able to detect a simple feature on your platform.
> This is often caused by incorrect configuration parameters. Please see
> the file debug.log for error messages.
> 
> I attached the debug.log with this e-mail.
> 
> The command for install php4.0.6 is:
> ./configure --with-oci8=/opt/app/oracle/product/9.0.1
> --with-apxs=/opt/apache/bin/apxs(run as root)
> 
> 
> "opt/app/oracle/product/9.0.1"  is the home directory of oracle 9i.
> Oracle9i is running well  in my Linux box.
> Apache Server is 1.3.19 with Dynamic shared object(with apache home
> directory "/opt/apache/").  If using "/opt/apache/bin/httpd -l", it will
> show:
> http_core.c
> mod_so.c
> suexec: disabled; invalid wrapper /opt/apache/bin/suexec
> 
> I wonder if your current php4.0.6 can support Oracle9i. I am looking
> forward to your reply! Thanks.
> 
> Kexiao
> 
> 
> 
> 
> ----
> 

> CONFIGURE:   './configure' '--with-oci9=/opt/app/oracle/product/9.0.1' 
>'--with-apxs=/opt/apache/bin/apxs'
> CC:         gcc
> CFLAGS:     -g -O2
> CPPFLAGS:    -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
> CXX:        
> CXXFLAGS:   
> INCLUDES:    -I/opt/apache/include  -I$(top_builddir)/Zend 
>-I/opt/oracle/php/php-4.0.6/ext/mysql/libmysql
> LDFLAGS:    
> LIBS:       -lcrypt -lresolv -lm -ldl -lnsl  -lresolv
> DLIBS:      
> SAPI:       apache
> PHP_RPATHS: 
> uname -a:   Linux hermes.campus.uidaho.edu 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 
>i686 unknown
> 
> gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8  
>conftest.c -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 1>&5
> 
> ----
> 

> -- 
> PHP Install 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]
-- 
Austin Gonyou
Systems Architect, CCNA 
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
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




Austin Gonyou wrote:

> I don't see anything wrong in there. Anyone else?
>
> On Tue, 2001-11-13 at 17:37, Kexiao Liao wrote:
> > Hi Php ,
> >     When I installed php4.0.6 with Oracle9i(Enterprise Edition) in Linux
> > Redhat 7.2(Kernel 2.4.9-13). I got following error message:
> > ------------------------------------------------------------------------
> > ------------------------------------------------------------------------
> > -----------------
> >
> >                                                           *** ATTENTION
> > ***
> > Something is likely to be messed up here, because the configure script
> > was not able to detect a simple feature on your platform.
> > This is often caused by incorrect configuration parameters. Please see
> > the file debug.log for error messages.
> >
> > I attached the debug.log with this e-mail.
> >
> > The command for install php4.0.6 is:
> > ./configure --with-oci8=/opt/app/oracle/product/9.0.1
> > --with-apxs=/opt/apache/bin/apxs(run as root)
> >
> >
> > "opt/app/oracle/product/9.0.1"  is the home directory of oracle 9i.
> > Oracle9i is running well  in my Linux box.
> > Apache Server is 1.3.19 with Dynamic shared object(with apache home
> > directory "/opt/apache/").  If using "/opt/apache/bin/httpd -l", it will
> > show:
> > http_core.c
> > mod_so.c
> > suexec: disabled; invalid wrapper /opt/apache/bin/suexec
> >
> > I wonder if your current php4.0.6 can support Oracle9i. I am looking
> > forward to your reply! Thanks.
> >
> > Kexiao
> >
> >
> >
> >
> > ----
> >
>
> > CONFIGURE:   './configure' '--with-oci9=/opt/app/oracle/product/9.0.1' 
>'--with-apxs=/opt/apache/bin/apxs'
> > CC:         gcc
> > CFLAGS:     -g -O2
> > CPPFLAGS:    -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
> > CXX:
> > CXXFLAGS:
> > INCLUDES:    -I/opt/apache/include  -I$(top_builddir)/Zend 
>-I/opt/oracle/php/php-4.0.6/ext/mysql/libmysql
> > LDFLAGS:
> > LIBS:       -lcrypt -lresolv -lm -ldl -lnsl  -lresolv
> > DLIBS:
> > SAPI:       apache
> > PHP_RPATHS:
> > uname -a:   Linux hermes.campus.uidaho.edu 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 
>2001 i686 unknown
> >
> > gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8  
>conftest.c -lcrypt -lresolv -lm -ldl -lnsl  -lresolv 1>&5
> >
> > ----
> >
>
> > --
> > PHP Install 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]
> --
> Austin Gonyou
> Systems Architect, CCNA
> Coremetrics, Inc.
> Phone: 512-796-9023
> email: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
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...

-- 
Like Music?  http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
Email address : [EMAIL PROTECTED]

I was wondering if anyone could shed some light on this problem I am
having. I have installed a new version of MySQL and PHP on a Windows
2000 Professional box running IIS 5. I have downloaded PHPMyAdmin to a
directory under wwwroot called PHPMyAdmin. When I access it by calling
:

http://<computername>/PHPMyAdmin

It resolves it to printing out the PHP code in straight text with
error messages at the bottom like :

Warning: Variable passed to reset() is not an array or object in
C:\Inetpub\wwwroot\PhpMyAdmin\libraries\common.lib.php on line 296

Warning: Variable passed to each() is not an array or object in
C:\Inetpub\wwwroot\PhpMyAdmin\libraries\common.lib.php on line 297

Here is the meat of the config.inc.php file :

// The $cfgServers array starts with $cfgServers[1].  Do not use
$cfgServers[0].
// You can disable a server config entry by setting host to ''.
$cfgServers[1]['host']          = 'localhost'; // MySQL hostname
$cfgServers[1]['port']          = '';          // MySQL port - leave
blank for default port
$cfgServers[1]['socket']        = '';          // Path to the socket -
leave blank for default socket
$cfgServers[1]['connect_type']  = 'tcp';       // How to connect to
MySQL server ('tcp' or 'socket')
$cfgServers[1]['stduser']       = '';          // MySQL standard user
settings (this user must have read-only
$cfgServers[1]['stdpass']       = '';          //   access to the
&quot;mysql/user&quot; and &quot;mysql/db&quot; tables)
$cfgServers[1]['adv_auth']      = FALSE;       // Use advanced
authentication?
$cfgServers[1]['user']          = 'root';      // MySQL user
$cfgServers[1]['password']      = '';          // MySQL password (only
needed with basic auth)
$cfgServers[1]['only_db']       = '';          // If set to a db-name,
only this db is displayed at left frame
                                               // It may also be an
array of db-names
$cfgServers[1]['verbose']       = '';          // Verbose name for
this host - leave blank to show the hostname
$cfgServers[1]['bookmarkdb']    = '';          // Bookmark db - leave
blank for no bookmark support
$cfgServers[1]['bookmarktable'] = '';          // Bookmark table -
leave blank for no bookmark support</PRE>

When I type in phpinfo(); in a file called test in the root it works
fine. When that same file is copied underneath the PHPMyAdmin
directory, it too errors out :

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:

If anyone could help me understand why this isn't working and what the
error messages mean I would be greatly appreciative. Thanks for all
your help.

JGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
--- End Message ---
--- Begin Message ---
Hello,

Who was successed in compile and install ( apache 1.3.20 , mysql 3.23.xx
, php 4.0.6 and ssl ) ?
So , can you help me ?
Thanks,

Edward.


--- End Message ---

Reply via email to