[SOLVED] Need to change name of directory Gallery is installed in

kaya

Joined: 2004-06-02
Posts: 48
Posted: Fri, 2014-02-14 19:12

Please fill out the following form and take a look at the linked pages. The more information you supply, the better we can help you. Remove this FAQ information from your post before submitting.

FAQ:
- How do I install Gallery 2?
http://codex.gallery2.org/index.php/Gallery2:How_do_I_Install_Gallery2
- How can I find a solution for my problem?
Visit http://codex.gallery2.org for: Frequently Asked Questions, Debugging Instructions, Known Issues and much more
Also try your luck with the advanced search function of this website
- What are the installation requirements for Gallery 2?
http://codex.gallery2.org/index.php/Gallery2:Installation_Requirements
- What information is required when asking for help in the forums?
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.


Gallery version (not just "2"): 2.1.1
PHP version (e.g. 5.1.6): 5.2.17
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 2.2.23
Database (e.g. MySql 5.0.32): 5.1.73-cll
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux):
Browser (e.g. Firefox 2.0):

I must change the name of the directory that Gallery is installed in.
I tried just renaming the directory on the server, but that's a no go.
I have looked in config.php and see no reference to this directory by name,
although it is in the .htaccess file, which also tells me not to change anything.

Installation is g2data outside of root.
somesite.com/namechangeneeded/gallery/main.php

Is there an easy way to do this?
thank you

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2014-02-14 22:52

disable rewrite.
change directory name
re-setup rewrite

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
kaya

Joined: 2004-06-02
Posts: 48
Posted: Fri, 2014-02-14 23:01

Please I need more info,
what file do I 'disable rewrite' in
and how is it coded.

thank you

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2014-02-14 23:17

Gallery Admin -> Rewrite

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
kaya

Joined: 2004-06-02
Posts: 48
Posted: Sat, 2014-02-15 19:03

If I deactivate URL Rewrite from
site admin/modules

then change the directory name on the server

Will I be able to get back into site admin to turn URL Rewrite back on?

Sorry to be so dense,
I haven't worked with Gallery in a very long time and don't remember much of anything.

thank you

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2014-02-15 19:14
Quote:
Will I be able to get back into site admin to turn URL Rewrite back on?

Yes. the url will change when you rename the directory.

Sometimes you have to manually delete the .htaccess in gallery's root directory.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
kaya

Joined: 2004-06-02
Posts: 48
Posted: Sat, 2014-02-15 19:57

I can log into site using the new directory path
I go to activate URL rewrite and get a screen identical (with the new directory folder exception) as what was there before,
but the red x does not go away, and I don't get the tabs across the top saying:
Rules SetUp and Test

So it is not activated, but the tests are as before success and a warning (but that was there all along)

Now what?

help

 
kaya

Joined: 2004-06-02
Posts: 48
Posted: Sat, 2014-02-15 20:15

Got that last bit , now lets see if this works

 
kaya

Joined: 2004-06-02
Posts: 48
Posted: Sat, 2014-02-15 20:21

yipee.Thanks.