Web Hosting Talk







View Full Version : Php 4.2.0


Nicholas Brown
04-26-2002, 07:27 PM
Hiyas :)

Ive just upgraded to 4.2.0 using this configure command:


(too long, see phpinfo below :)


Im running Apache 1.3.23 with mysql 3.23.45.

in my /usr/local/lib/php.ini ive specified:


; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = "EGPCS"

; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data. This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = On


but....as you can see here: http://www.br0wnie.com - theres lots of nice Mysql errors.

my php info is here: http://www.br0wnie.com/info.php

any ideas? Im about ready to replace the libphp4.so with the old one :mad:

Any help is greatly appreciated :)

Cheers

roly
04-26-2002, 08:24 PM
Warning: Access denied for user: 'brownie@localhost.localdomain' (Using password: YES) in /home/brownie/public_html/config.php on line 75

Warning: MySQL Connection Failed: Access denied for user: 'brownie@localhost.localdomain' (Using password: YES) in /home/brownie/public_html/config.php on line 75
Unable to connect to databaseWRONG MYSQL USER/PASS!

Nicholas Brown
04-26-2002, 08:26 PM
affraid not :)

they work perfectly fine via the mysql console and worked ok with php 4.1.2

roly
04-26-2002, 08:28 PM
Originally posted by Nicholas Brown
affraid not :)

they work perfectly fine via the mysql console and worked ok with php 4.1.2
just put back the old libphp4.so
its not needed unless your script absolutly requries php 4.2

roly
04-26-2002, 08:30 PM
another idea is it may have chnaged something in mysql (the ./configure)

Nicholas Brown
04-26-2002, 08:40 PM
we have a breakthrough!

I specified the path to mysql - but i was getting errors (cant remember what they were now :o) so....

The source code i was using...i downloaded on the day 4.2.0 was released. I re-downloaded the PHP source and compiled using

./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr

nice and simple...

and wham! it works. Now, i know that when I start to make my build up - any errors are now my own fault :)

Hope this helps anyone else having problems

:)