Installation halts on warning (in step 1) Warning! Apache not obeying .htaccess

Hieronymus

Joined: 2007-08-06
Posts: 11
Posted: Mon, 2007-08-06 19:51

Gallery version: 1.5.6
PHP Version 5.2.3

Hy,

I'm having trouble upgrading my old gallery. After the server went to PHP5, the old gallery (1.3.6) didn't work. So I'm trying to update to the latest gallery 1.

I followed the instructions on:
http://codex.gallery2.org/Gallery1:Upgrading
and then on:
http://codex.gallery2.org/Gallery1:Configuration_Wizard

The setup stops at step 1. There are two warnings, no errors. So it should continue, shouldn't it?
The warnings are as follows:
Allow the Gallery .htaccess file to set application specific configuration options for the Gallery application. This is controlled by the webserver owner so it's not always possible for you to change it. The main drawbacks to not having this are that you may not be able to upload files > 2MB (eg, big ZIP files) and you may not be able to use mod_rewrite (see below)...

Warning!
Apache is not obeying your .htaccess file. Try entering the following into your web server's httpd.conf file:

<Directory /sabretooth.mnt/assoc/www/declub/gallery>
AllowOverride Options FileInfo
</Directory>

and (apperently connected to the first error):

Check to see if your webserver is compiled with mod_rewrite. Mod_rewrite allows the Gallery to use shorter URLs that are easier to read and look nicer when you mail them to your web-challenged relatives. It's not an essential feature.

Warning!
Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on I'd suggest that you make sure that your .htaccess file works and then if it still doesn't work you may need to reconfigure and rebuild Apache with this flag:
--enable-module=rewrite

I have no clue how to fix this. I'm not an admin on this server, just a humble user. I don't even care about the rewrite rules. I just want to get on with the installation.

Anyone ideas how I can get to the next steps?

Greatz,

Jeroen

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2007-08-06 23:14

Hi,

you can not continue with step2?

These messages are just warnings. They are indeed related to each other.
But its safe to ignore them.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Hieronymus

Joined: 2007-08-06
Posts: 11
Posted: Tue, 2007-08-07 11:38

I can click te continue button, but then I get the same page! It won't continue to step 2.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-08-07 11:45

Check if the sessions work (The session counter must increase). the test is reachable from the diagnostic page.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Hieronymus

Joined: 2007-08-06
Posts: 11
Posted: Tue, 2007-08-07 14:38

Hmmm... that seems to be the problem.
I get a session ID. But the counter doesn't increase if I refresh the page (F5 in FireFox).

Is there anything specific I should ask the system administrators?

Thanks so far,

Jeroen

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-08-07 14:47

Just ask the system admin about the session support of PHP.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Hieronymus

Joined: 2007-08-06
Posts: 11
Posted: Wed, 2007-08-08 10:21

Hy,

according to the sys-admin the problem isn't sessions in PHP, but register_globals is turned off.

Now, I tried to get G1 working and then decide later if I want to update to G2. This is now a must. Do you know if it's possible to still 'save' the album dir and the comments with the pictures (I don't know how they are storred)?

Greatings,

Jeroen

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2007-08-08 11:28

Gallery 1.x works fine with register_globals off. Actually its rather that we recommend this setting!

If the session counter does not increase then definitely your PHPs session support does not work.
Gallery 1.x will not work proper.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Hieronymus

Joined: 2007-08-06
Posts: 11
Posted: Wed, 2007-08-08 13:52

OK, I'll pass it on...

 
Hieronymus

Joined: 2007-08-06
Posts: 11
Posted: Fri, 2007-08-10 19:37

Well, I got a new response from the sysadmin team, but it's not from the PHP expert. (He's on vacation)

He tried the installation with the register_gobals set to on. Then it works. I haven't reproduced those results yet, but maybe there is another way that prevents setting the $HTTP_SESSIONS_VARS en $HTTP_GET_VARS. Very odd.

***

Now I tried the installation with register_globals = on; in php.ini in the /gallery/setup dir.
I can get to step 4 now, but then just when the installation wants to save the config, I get this error:

Fatal error: Cannot re-assign $this in /sabretooth.mnt/assoc/www/declub/gallery/classes/gallery/User.php on line 37

Is it allright if I copy past the config settings as shown in step 4 to a new config.php? Would that work? Or are there other steps the installation has to do?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2007-08-11 01:00

Hello,

Gallery 1.5.6 does not use $HTTP_SESSION_VARS or any other $HTTP_*
Also $HTTP_* vars does not exist at all in PHP5 !

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Hieronymus

Joined: 2007-08-06
Posts: 11
Posted: Sun, 2007-08-12 23:04

Well, I hope the PHP expert gets back from holiday very soon. I also thought his answers aren't making much sense.

On the other hand, I don't want to know all these things and just want to recover the albums and their comments. Do you have any idea what is going wrong in step 4 and if I can copy-past the config settings showed in step 4 directly to a config.php?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2007-08-13 04:44

Hello,

i have no idea why this message appears.
You could copy the settings into config.php, but your Gallery will still not work proper.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6