Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By russgri on
Question:
In using the following code, what does the "co gallery2" do?
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/gallery co gallery2
If I created a folder in advance, namely gallery2 and in SSH migrated to that folder www.mysite.com/gallery2 and ran the following code and it created another folder and and it populated www.mysite.com/gallery2/gallery2
so...I am assuming the appended co gallery2 creates a folder gallery2
Please confirm
What is the co?
Comments
Check out
'co' is the checkout command for cvs.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Does this create an new folder?
I am wondering if this co gallery2 is responsible for creating the extra gallery2 folder? or could it be the result of a deleted symlink?
Trying another version of this question
I can't afford to wreck my site by putting Gallery2 in the wrong directory.
Question:
Does the following ssh call create the folder 'gallery2'
Quote:
cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/gallery co gallery2
when I migrate to www.mysite.com/gallery2 and make the call I get
www.mysite.com/gallery2/gallery2....both populated with the same data.
From bad advice, I had a symlink of gallery2 but I deleted it...at least it is not visible.
I ask a question on this forum about symlinks and did not receive an answer so I relied on advice from the drupal forum
It is a mess...
Can I use anothe folder name such as preferably "wct_gallery2"? to eliminate the symlink problem.
Or how do I delete symlinks when they aren't even visible?
Russ Griechen
Does the following ssh call
No, this command has nothing to do with your site. It is a command for the cvs repository of drupal.org.
Same with what?
Don't worry, symlinks are not invisible. If you deleted one then it's gone.
Figure out what exactly is in your directories. Check in /public_http/gallery2 to see whether you have any symlink or any real directory there, and where you are.
ls
cd gallery2
ls
pwd
The last one should tell you if you are really in public_html/gallery2 or if you have been redirected somwhere else (if it was a symlink).
Or get a visual FTP program, such as FIleZilla.
If you meant my answer about how to create a symlink
http://drupal.org/node/55048
you realize that I still don't know what exactly you want to do. You mentioned symlinks, and what I had to offer was only explanations and examples.
You must explain what you try to do. You used the word "migrate" earlier. What did you mean?
Is it an existent Gallery2 site you want to move?
Is it a fresh Gallery2 installation completely separate from Drupal, like a second site in a directory?
Are you trying to integrate Gallery2 with Drupal with some method?
The first part of my reply
The first part of my reply was wrong.
This cvs command will download gallery2 from a cvs and will put it in a 'gallery2' directory under your current one.
What if...
What if I use:
cd public_html
and then
$ cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/gallery co gallery2
Would that load into /public_html/gallery2 with one folder
...and would that one folder be a symlink...just wondering
Yes
Yes you would then get a directory gallery2 under public_html. And no it won't be a symlink (to what??).
edited to add: Why use CVS checkout? Why not simply download gallery's archive?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Thank you, CogRusty...neat
Thank you, CogRusty...neat name...
I have a site http://westernchallenge.org for an organization.
Drupal/Civicspace is in /public_html on a shared server
home/user/public_html = root
I want to install Gallery2 and integrate it into the look and feel of my site...I is a pro-bono for an organization of hunting buddies.
I was under the impression that to integrate it I would have to make a symlink folder...rather than dump it into public_html.
When I load into http://westernchallenge.org/gallery2 it loads http://westernchallenge.org/gallery2/gallery2 and location bar shows http://westernchallenge.org/gallery2/gallery2
Right now I have http://westernchallenge.org/gallery2/gallery2 empty and have gallery2-0.4-full.tar.gz setting In /public_html and showing in CPanel .
I was going to delete the gallery2 and gallery2 symlink and extract the *.tar.gz and rename it to gallery2...or can I use anyother name?
When operable it is supposed to be accessed by http://westernchallenge.org/gallery
When I try to delete it with Filezilla it deletes but it is still visible in Cpanel. I have SSH available in Cpanel and on my desk top but Cpanel ssh cannot rm it ...says it is a dir and says symlink is a directory.
The orginization is in an annual two week national tour and there cameras are full.
I'll grant permissions if you want to look at it. pm or email
Russell Griechen
Hmm... Did you refresh
Hmm... Did you refresh cpanel's screen after you deleted the file with Filezilla? Did you try to delete it with cpanel? Just to be sure.
I am very puzzled by that redirection to http://yoursite/gallery2/gallery2. I can't figure out how a symlink would do that...
Because (a) if the first galery2 is a symlink it can't retain its name and hold a subdirectory, and (b) if it is a subdirectory it can't redirect. (Any other idea anyone?)
Can you double-check that these 2 really exist, and whether they are directories or symlinks? What path do you see when you go to gallery2/gallery2 with FileZilla?
I suspect that something else is going on and either Drupal or .htacces is redirecting you. A checklist:
- Have you created any aditional site entry under drupal's /sites directory, except the default one?
- Have you created any new settings.php file for the gallery site which contains a base_url for the gallery site?
- Have you already installed drupal's gallery.module, and set up a path in drupal's admin>settings>gallery?
I am unfamiliar with gallery, so I looked at the install.txt file in drupal's gallery module
http://drupal.org/project/gallery
From what I read there, the cleanest way is to put Gallery2 in a directory under drupal (under your webroot in your case). You don't need any symlinks.
Just extract the tar.gz. It will go in a subdirectory, probably gallery2. Leave it or rename it any way you want. This name won't matter to the URL. Just make it known to drupal's gallery.module. As you said, the gallery will be accessible at http://yoursite/gallery (according to the install.txt).
I am still curious about the symlink mystery. Let me know If you solve it.
---------------
Edited to add: If you use the cvs command, do it from your webroot. It will create a gallery2 directory.
Thanks
Thanks for your help.
I will report the results later.
I have a better understanding now ...thanks to you.
best regards
Russell Griechen
No problem. I am learning
No problem. I am learning myself as I try figure out an explanation.