Configuration Troubles...

deckerboy1

Joined: 2002-09-23
Posts: 10
Posted: Mon, 2002-09-23 23:00

I am running Apache 1.3.26 on Windows 2000 Pro with PHP 4.2.3 and I am currently in the process of trying to get Gallery 1.3.1 up and running...

I ran the configure.bat script through the command prompt, and it gave me the following instructions:

Quote:
Your are now in setup mode, which is *INSECURE*. Your Gallery installation can be configured by pointing your web browser to the URL to 'setup' in this directory. When you are done with your snstallation, don't forget to run the secure.bat script!

So, naturally, I open up IE 5 and browse to the url (gallery is installed under D:/gallery/)D:/gallery/setup/index.php, as i figured this is what the instructions implied. (Maybe I'm going wrong here?)

Anyway, I browsed there, and I see a portion of the php from the source with a gray background, specifically, the following:

Quote:
n"; return $buf; } foreach ($preserve as $key => $val) { if ($key && !$onThisPage[$key]) { print embed_hidden($key); } } // String-ize preserve list $preserve = join(" ", array_keys($preserve)); print embed_hidden("preserve"); ?>

and so now, I have come to the conclusion that I have done something wrong, or something is wrong.

Please help me... and if you need any more information, I wil be glad to provide it. Thanks.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-24 02:40

Ah, the wonders of Microsoft :smile: Ok, so if you use Internet Explorer but give it a filesystem path (D:/blah/blah) then it actually opens it like a file! Instead, you need to give it the URL (http://server/gallery/setup) and then it should work properly.

Amusingly enough, if you enter a URL into the Windows Explorer (which you use to navigate the filesystem) it'll magically act like it's IE.

 
deckerboy1

Joined: 2002-09-23
Posts: 10
Posted: Tue, 2002-09-24 02:51

bharat, i was aware of that interesting feature of internet/windows explorer... although i forgot it at that point :grin:

anyway, i tried typing in:

http://d:/gallery/setup/index.php
http://d:/gallery/setup/
http://gallery/setup/index.php

but none of them seems to work... the browser appears to be looking for a page online... bah...

im sure i must be doing something wrong... any idea as to how to get around this?
thx for the help :smile:

[edit]
I also tried the corresponding urls that would lead to the same file under htdocs in Apache, but with the same outcome: no luck.

Also, I attempted to use Netscape to access these files in the same manner, no luck there either :sad:
-------------------
On a separate note, bharat, it wasnt the WHOLE file that showed up when it didn't open properly the first time, it was only a small part of it (the part that i quoted. which means it must have loaded to some extent (as i said, also, the background was gray, not white like it would be.)
[/edit]

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2002-09-24 10:15

If you want to see the php pages rendered through apache, you need to use http://SERVERNAME or IP/gallery (or wherever its installed).

http://127.0.0.1/gallery/ should point you to the correct page, as apache as a default listens to the localhost ip.

If you use htp://gallery/ you need to have a hosts file corresponding the gallery name to an ip address.

[Edit: fixed a little typo thing..... :smile:]

h0bbel

 
deckerboy1

Joined: 2002-09-23
Posts: 10
Posted: Tue, 2002-09-24 13:28

hmmm... you learn something new every day!

when i was looking through the Apache httpd.conf file, i noticed the "loopback" address (127.0.0.1)... i had wondered how it was possible to access my server from my own computer; now i know.

thanks both of you; now it works :grin:

lets see how far i can get before im back here again :lol:

 
jlc

Joined: 2002-09-24
Posts: 1
Posted: Tue, 2002-09-24 21:19

I had the exact same problem as deckerboy1. It took a long time to figure it out, not knowing php, why the page died by displaying the end of the php page source. It turns out the code uses a short open tag which can be turned off, and it was. I had to go into /etc/php.ini and change the short_open_tag line from Off to On. Once this was done, the configuration page worked perfectly.

The install instructions talk about avoiding safe mode, but they do not mention that the short open tags need to be turned on. I think this needs to be corrected. My system is running Redhat 7.3 with Apache 1.3.23-14 and php-4.1.2-7.3.4.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-25 03:47

Gallery 1.3.2 no longer uses PHP short tags. You can download it from the "bleeding edge" section of the download page.