I have my drupal in html/drupal

my gallery2 in html/g2/gallery2

Am getting these warnings continuosly

    * Your location settings are valid, but your Gallery2 is installed outside the Drupal root directory. It is highly advisable to move G2 into the Drupal folder or to create a symbolic link in the Drupal directory pointing to your G2 installation (see instructions on codex.gallery2.org).
    * Your location settings are valid, but your Gallery2 is installed outside the Drupal root directory. It is highly advisable to move G2 into the Drupal folder or to create a symbolic link in the Drupal directory pointing to your G2 installation (see instructions on codex.gallery2.org).

I should create a link, How do I do this on remote. do I just create a link locally then FTP it? I guess thats not an option..

Do I create the link with Drupal? if so how?

Comments

vm’s picture

A) move your gallery2 folder inside your drupal folder

or

B) create a symlink form one to the other and be advised not all hosts allow you to do so.

more information on symlinks = http://en.wikipedia.org/wiki/Symbolic_link & http://www.google.com/search?hl=en&q=symlinks&aq=f

my suggestion is to move your Gallery installation folder INSIDE your Drupal installation folder

ie:

html/drupal
html/drupal/gallery2

holeepassion’s picture

I am wondering why can't I move the whole directory to the same place as my other modules.

It is currently inside my drupal installation, that is www/holeepassion.com/

Now, I tried and was not successful. Now I have the cache in the sites/all/modules. It seems that it only copied that particular folder. Now, I have issues viewing some of the pictures on gallery2.

I tried to merge them but it gives me warming issues. I think I did backup before I did that move. I am wondering if using the backup is the best option now ??? It seems that now all the updates on gallery2, would be in sites/all/modules/, that is the reason some of the pictures cannot be viewed !!!

Geez, talking about issues after issues ....

thanks in advance

http://www.holeepassion.com

Positive actions for saving EARTH

cog.rusty’s picture

It would be pointless to move Gallery 2 to sites/all/modules because Gallery 2 is not a Drupal module. It is an independent application.

I don't understand what you tried to merge with what, what you moved, and what you mean by "updates on gallery2".

Following every last detail of the instructions is your best chance to get it working, or at least to identify any problem that may come up.

Anonymous’s picture

By default, Fantastico on Hostgator installs Gallery 2.3 into the root directory. My Drupal directory is not in the root directory. Can anyone tell me if I can just move the Gallery 2.3 Directory inside the Drupal directory without changing any files? Must I change files if I move it inside the Drupal Directory and if so, which files must be changed?

Thank you for helping a newbie to Drupal and Gallery 2.3.

-Freedomfries

=-=
VeryMisunderstood - April 24, 2008 - 04:51

A) move your gallery2 folder inside your drupal folder

or

B) create a symlink form one to the other and be advised not all hosts allow you to do so.

more information on symlinks = http://en.wikipedia.org/wiki/Symbolic_link & http://www.google.com/search?hl=en&q=symlinks&aq=f

my suggestion is to move your Gallery installation folder INSIDE your Drupal installation folder

ie:

html/drupal
html/drupal/gallery2

cog.rusty’s picture

To create a symlink,

If you have shell access to your server and you can type commands:

Go to your "html" directory, and type:
ln -s g2/gallery2 drupal/gallery2

This will create a symlink under "drupal", named gallery2, which will look just like a drupal subdirectory.

If you don't have shell access but only FTP.

- Create a text file and name it, for example, makesymlink.php
- Inside the file, type:

symlink("g2/gallery2", "drupal/gallery2");
print "Done!";

- Upload this file to your "html" directory.
- WIth your FTP program, right-click on the "drupal" directory and change its permissions to 777 (temporarily), so that the server can write the symlink in it.
- With your browser, visit http://www.yoursite.com/makesymlink.php (not drupal). The makesymlink.php script will run.
- Now you should see the message "Done!" and a "gallery2" symlink will appear under "drupal", looking like a subdirectory.
- Cleanup: Go back to your "html" directory and change drupal's permissions back to 755. Delete the makesymlink.php file.

It is not as complicated as it sounds if you get the general idea. Of course, if you prefer, you can skip the symlink and just move gallery2 under "drupal".

holeepassion’s picture

I have isssues with searching website in drupal for gallery2 which cannot be clicked to get to the photos.

I have my website httpdocs/holeepassion.com - drupal setup. I however set all my modules in holeepassion.com/sites/all/modules directory

My gallery 2 is set at holeepassion.com directory as I used the installer from the host. I cannot seem to be able to move the directory and do not want to mess things up as I have spent a lot of time to get to this point.

Anyway, I am wondering how to set up the symlink in this case. Do I even need the symlink since the directory is actually in drupal directory anyway.

However, the pictures' locations do not meet the search results in Drupal website.

Example:

http://www.holeepassion.com/v/naturalbeauty/dragonflies (no gallery2 directory - cannot get to the photo in Drupal website search)

http://www.holeepassion.com/gallery2/v/naturalbeauty/dragonflies/ (actual link to the photos)

How do I sync these links ???

Could the internal error 500 when searching in gallery 2 pages, be the result of this issue also ???

Your assistance is much appreciated.

Thanks

http://www.holeepassion.com

Positive actions for saving EARTH

vm’s picture

The problem with your gallery paths could be an incorrectly setup .htaccess in gallery2.

gallery1.0 was released this morning, ensure you are using that release.

holeepassion’s picture

Hi misunderstood ... thanks for that .. .I would check it out ... u meant gallery version 3 ???

am a little nervous updating since I just got it working, nicely apart from the search and integration with drupal search addresses .... another reason was that I tried to upgrade to the latest gallery module but I could not get it to work, so am a little wary of updating ... unless i get step by step instructions ....

another question I have is that for drupal .htacess I have disabled
# Options +FollowSymLinks

I am not very technical here, so I would be beating around the bush, so I need a pointer please. In gallery 2 .htaccess, not sure what should be the correct settings. Also in the drupal .htaccess, I have

rewritebase /

do I need to do the same for the gallery, for example

rewritebase /gallery2, so that it would go to gallery2 for gallery website ????

very confused ....

thanks

http://www.holeepassion.com

Positive actions for saving EARTH

vm’s picture

Gallery 2 - Gallery 3 whichever version you are using.

Even in your examples above you have gallery2 as a folder.

For G2 or G3 specific settings you may be far better off filing a support request in the gallery modules issue queue. I don't know how widely used this module is as many don't seem to like to use 3rd party apps and bridge them to gallery. I no longer do this myself.

holeepassion’s picture

Thanks verymisunderstood ... I am wondering how u produce decent gallery yourself then without third party application ??? with similar features to gallery 2. I want something simple like the ability just add comment ability, or rating.

Do you have a sample of what you've done to see if it fits my application. It is kinda dodgy, half working website like that. Cannot search the gallery from Drupal and search in gallery2 produce errors.

How do I file a support request as I have never done this before.

Thanks again ...
Have a great day

http://www.holeepassion.com

Positive actions for saving EARTH

holeepassion’s picture

thanks ...

http://www.holeepassion.com

Positive actions for saving EARTH

vm’s picture

Depends on the application. Gallery is a full featured script with many many options.

That said, if the desire is simple enough I use image.module with the image_gallery.module that is included.

one can take a more advanced path and use imagefield.module, imagecache.module, views.module and the necessary addons. There are tutorials out there that helped me come to terms with this path though they aren't for the faint of heart.

holeepassion’s picture

thanks for that .. i think i stick with gallery2 for now ... i am not very technical and cannot bother to learn about all this at the moment .. just have to disabled search i guess ...

http://www.holeepassion.com

Positive actions for saving EARTH

bfdexp’s picture

I ran this PHP file, now I have a 500 Server error.

Drupal gets the 500 error and Gallery 2 works fine...

Anyway to get rid of this symlink I just created???

kavishr’s picture

Hey guys, I've installed gallery2,configured its plugins and it works fine. But when I try to embed gallery2 with drupal, I don't see any gallery modules in site building->modules. Could any1 tell me which folder should I copy in C:\wamp\www\drupal-6.16\sites\all\modules to be able to access the gallery2 modules there.

help would be highly appreciated.

Thanks.

cog.rusty’s picture

You should install and enable Drupal's gallery module http://drupal.org/project/gallery to access your gallery installation.

kavishr’s picture

It worked.

Thanks cog.rusty. My small project should be done quickly now..