PDA

View Full Version : Setup problem after clean install


samkang
25th of April 2002 (Thu), 03:20
I have made a clean installation of exhibit version 1.1 engine on my Linux system. The setup.php return zero error, which mean my installation should be ok.
Then I try to change the path using "multieditor" (installation step 8 ) but not working, the system always return back to the same screen.
Can someone help to check what's wrong? You can visit my exhibit web (http://samkang.dns2go.com/gallery/index.php) and the exhibit editor (http://samkang.dns2go.com/gallery/input/index.php) for checking.

My configuratin is as following:
Linux : Redhat 7.2
MySQL : 3.23.49a
PHP : 4.2.0
Apache : 1.3.24

thanks,

Sam

Pekka
25th of April 2002 (Thu), 04:04
All the FORM codes eare empty: like



So it seems $PHP_SELF variable does not return anything.

--------

OK, I found the cause:

http://www.php.net/manual/en/language.variables.predefined.php says
---------------------------------------
In PHP 4.2.0 and later, the default set of predefined variables which are available in the global scope has changed. Individual input and server variables are by default no longer placed directly into the global scope; rather, they are placed into the following superglobal arrays.
---------------------------------------

Nice, they changed things so that PHP 4.2 needs different code!

So, you can make things work in PHP 4.2 by replacing in all files

$PHP_SELF

with

$_SERVER['PHP_SELF']

OR

by setting register_globals to 'On' in your php.ini file.

Let me know if this works, and I'll have to put out a separate installer for PHP 4.2.

Pekka

samkang
25th of April 2002 (Thu), 04:25
Thanks Pekka!!

It works now

Sam

Pekka
25th of April 2002 (Thu), 05:28
Good. Which fix you did, replace variables or edit php.ini?

samkang
25th of April 2002 (Thu), 05:29
edit php.ini