PDA

View Full Version : Problems installing on PC


pigasus
29th of April 2002 (Mon), 05:46
Hi Pekka,

I've been trying to set up EE on my PC and with the help of a clever friend have accomplished the following:

Installed Apache
Installed PHP & added the few lines to the Apache httpd.conf file as required
Installed MySQL
Opened a database (SallyPhoto) on the 'server'
Located gallery data from EE to Apache\htdocs\gallery
Edited SQL database name, username and password
Ran setup
(So far so good)

I can get to Multieditor, no problem. But when I try to edit the Microthumb path I get an error message:

FORBIDDEN - You don't have permission to access /gallery/input/Notice: Undefined variable: PHP_SELF in d:/program files/apache group/apache/htdocs/gallery/input/multieditor.php on line 1387 on this server.

So near and yet so far. :(

Any ideas?

Thanks,
pigasus

Pekka
29th of April 2002 (Mon), 08:05
put into the very end of fetchsettings.php:



I'll post a new version with this PHP 4.2 fix included in couple of hours.

pigasus
29th of April 2002 (Mon), 09:13
Hi Pekka,

I made the change you suggested. Rebooted and tried again. But I'm still getting the same error message. Is there somewhere else, like multieditor, I'm supposed to define PHP_Self?

Any other suggestions? Or do you think the new version EE will resolve it?

Thanks,
pigasus

Pekka
29th of April 2002 (Mon), 09:43
I'll install PHP 4.2 in to my XP and see how it behaves.

Try replacing all

$PHP_SELF

with

$_SERVER['PHP_SELF']

and see if it helps.

pigasus
29th of April 2002 (Mon), 09:57
Which files include $PHP_SELF?

Pekka
29th of April 2002 (Mon), 10:20
Sorry, forget it.
Set "register_globals = On" in php.ini.

I installed 4.2 and it seems it has "register_globals = Off" by default in php.ini.

That sucks big time because it means I (and most PHP software authors in the world) had to rewrite variable handling for 4.2 and later.

You can set "register_globals = On" and make EE work, but some ISP's might not let you do it.

pigasus
29th of April 2002 (Mon), 10:46
OK! That works - but only up to a point. I can now modify the paths, no trouble. But that seems to be the end of it. When I try to view the gallery at http://127.0.0.1/gallery/ instead of getting the gallery I'm getting the index page. I'm doing something stupid aren't I?

Later:
Oops - I knew I was being stupid. It runs from http://127.0.0.1/gallery/list.php

I think all is now well! :D

Pekka
29th of April 2002 (Mon), 12:43
Good.

I'm now converting EE to suit every version of PHP, and this means a lot of work because all variable handling must be coded differently. Good point is that after it's done it will work with "register_globals = Off" or "register_globals = On"