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 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: The setup stops at step 1. There are two warnings, no errors. So it should continue, shouldn't it? Warning! <Directory /sabretooth.mnt/assoc/www/declub/gallery> 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! 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 |
|
Posts: 6818
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
Posts: 11
I can click te continue button, but then I get the same page! It won't continue to step 2.
Posts: 6818
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
Posts: 11
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
Posts: 6818
Just ask the system admin about the session support of PHP.
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 11
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
Posts: 6818
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
Posts: 11
OK, I'll pass it on...
Posts: 11
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?
Posts: 6818
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
Posts: 11
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?
Posts: 6818
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