You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 247 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - The Definitive Post On CVS Setup! betaNC install info [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Tue Oct 21, 2003 12:14 am Reply with quoteBack to top

CVS UPDATE FOR NC PHP-NUKE BUNDLE: THE 12 STEP PROGRAM

NOTE: You can do a complete automatic install or update of the latest version of NC php-nuke using the following steps. You must have shell access to your hosting account. Many of these instructions are done from your shell account.


Using the NC_CVS_Update.sh script.

1. Download the latest version of the NC_CVS_Update.sh script HERE-

http://cvs.nukecops.com/cvs.php/shellscripts/NC_CVS_Update.sh


2. Create a directory on your server called

betaNC


3. Edit NC_CVS_Update.sh script with your settings (instructions are inside the script itself), and save.

NOTE: If this is a fresh/first time install, UNcomment the following lines-

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs checkout betaNC


4. Upload/FTP (in ASCII mode) the NC_CVS_Update.sh script to your server, into your host ROOT directory (see #8, below, on locating your root directory. Typically, when you FTP into your host, the directory you start out in is your root directory. This is not true in all cases, of course).


5. Make the NC_CVS_Update.sh executable, chmod it to 755.


6. Now create a blank/empty text file named

.cvspass

and upload it/FTP it (in ASCII mode) to your host ROOT directory (see #8, below to locate your root directory).

One of the easiest ways is to create a file called cvspass.txt, upload it, then rename it .cvspass


7. Now shell (SSH) into your account.


8. Locate your host root. To locate your host root, type

cd

Then press enter. Then type

pwd

Then press enter.

This will tell you where your root is.
EXAMPLE: /home/yourroot


9. Type

bash NC_CVS_Update.sh

NOTE: The command you use varies dependent upon your host service. Some people are able to type the following instead

./NC_CVS_Update.sh

Yet, other people are able to type the following instead

sh NC_CVS_Update.sh


10. After pressing ENTER, you should be udating!


11. When it is done, exit your shell session.


12. YOU ARE DONE. You now have an updated NukeCops (NC) version of php-nuke in your betaNC directory. If this is a NEW installation, you will need to edit your nuke config.php as well as create a database, both of which is beyond the scope of this document. Read the PHP-NUKE docs.

NOTE: IF YOU PLAN ON USING THIS AGAIN OR PUTTING IT INTO A CRON JOB, DON'T FORGET TO re-edit your NC_CVS_Update.sh script and put the comments back in on the two lines you removed them from.

#cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login

#cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs checkout betaNC

Then RE-Upload/FTP the NC_CVS_Update.sh script to your root directoy.

----------------------------------------------------------------------

ADDITIONAL INFO

1. You can set up a CRON job (if you have access to CRON) to run this automatically. That way you will always have the latest files, automatically. Set up a cron job and put

bash NC_CVS_Update.sh

If you DON'T have access to CRON, then go here and get this script called 'fake cron'.

http://smarterscripts.com/cron


2. Everything mentioned so far assumes that your php-nuke setup is in a FOLDER on your server named

betaNC

To make the 'betaNC' point to your REAL folder (lets call it 'Nuke' for this example) do the following while in your shell:

A. Navigate to the directory that holds your php-nuke FOLDER.

EXAMPLE: If my php-nuke directory is
/home/myroot/www/Nuke

Then I would navigate to the following directory-
/home/myroot/www

B. Type in
ln -s [YOUR NUKE FOLDER NAME] betaNC
So. Using the previous example, I would type in
ln -s Nuke betaNC

This will create a symbolic link from betaNC to Nuke, so that they both end up pointing to the same place. You can check your results by opening your browser and going to the betaNC directory (www.yourdomain.com/path/betaNC). You should end up on your nuke site.

Of course, you could always reverse the folders if you want by changing the folder names in the example, above. (For instance, making your NUKE folder point to your betaNC folder instead of the other way around.)

To REMOVE that symbolic link, shell back into your account and navigate to the same directory where you created it, and type

ln -i betaNC
(someone please correct this, I think -f works some places)

-------------
Good Luck

-XEULAS


Last edited by XEULAS on Thu Nov 27, 2003 12:09 pm; edited 10 times in total
Find all posts by XEULASView user's profileSend private messageVisit poster's website
Daniel-cmw
Site Admin
Site Admin


Joined: Mar 02, 2003
Posts: 1662

Location: The UK!

PostPosted: Tue Oct 21, 2003 12:57 am Reply with quoteBack to top

Great, im sure this will help many people.


Thanks

_________________
Read Me
Find all posts by Daniel-cmwView user's profileSend private message
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Wed Oct 22, 2003 1:13 am Reply with quoteBack to top

Please verify my post to make sure there are no mistakes.


Last edited by XEULAS on Thu Nov 27, 2003 10:10 am; edited 1 time in total
Find all posts by XEULASView user's profileSend private messageVisit poster's website
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Fri Oct 24, 2003 9:02 am Reply with quoteBack to top

....updated....


Last edited by XEULAS on Thu Nov 27, 2003 10:13 am; edited 2 times in total
Find all posts by XEULASView user's profileSend private messageVisit poster's website
grumm3t
Nuke Cadet
Nuke Cadet


Joined: Nov 12, 2003
Posts: 3


PostPosted: Wed Nov 12, 2003 5:16 pm Reply with quoteBack to top

Mine works with normal:

cvs -d:pserver:anonymous@cvs.nukecops.com:/home/cvs co betaNC

*for full checkout
Find all posts by grumm3tView user's profileSend private messageAIM Address
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Nov 13, 2003 4:57 pm Reply with quoteBack to top

Nice post... I actually get more PMs from folks than anything regarding it in the forums. So we can use this and point folks here.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Thu Nov 27, 2003 9:05 am Reply with quoteBack to top

....updated....
Find all posts by XEULASView user's profileSend private messageVisit poster's website
NanoCaiordo
Private
Private


Joined: Dec 21, 2003
Posts: 41

Location: Italia

PostPosted: Mon Jan 05, 2004 8:25 am Reply with quoteBack to top

Ciao all, I'm pretty new with php and mySQL (only 3 weeks) and I'm proud of my selves for what i'm doing. I know that everytings work fine so I'm sure I wrong somewhere, I'm tryng to make NC_CVS_Update.sh (755) work for my site (tryng only to see the difference between mine and the last CVS version) and the best that i can get is an empty log update txt file.

today=`date +%Y%m%d`
#CVSROOT=/home/cvs
#export CVSROOT

cd /home/username/www/

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs checkout betaNC

#cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs status betaNC > betaNC-$today.status

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs diff betaNC > betaNC-$today.diff

#cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs update -I config.php betaNC

#cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs logout

After uploaded both files NC_CVS_Update.sh (755) and .cvspass in /home/username/ running the cronojobs with bash, sh or ./ commands they give me the same empty log file.

Any help?

Must said THANK to ALL of you for what you are doing!!!


Problem fixed i was giving the wrong path....

_________________
I met php the 03/December/2003 :: Unforgetable Day!
www.coolmaker.ws

Last edited by NanoCaiordo on Tue Mar 16, 2004 8:51 am; edited 1 time in total
Find all posts by NanoCaiordoView user's profileSend private messageVisit poster's website
gandolf8
Nuke Cadet
Nuke Cadet


Joined: Jan 24, 2004
Posts: 4


PostPosted: Sat Jan 24, 2004 4:48 pm Reply with quoteBack to top

I'm using 1&1's free 3 year plan. I was wondering if you could please help me?

When I get to step 9:
Quote:
9. Type

bash NC_CVS_Update.sh

NOTE: The command you use varies dependent upon your host service. Some people are able to type the following instead

./NC_CVS_Update.sh

Yet, other people are able to type the following instead

sh NC_CVS_Update.sh

It starts updating until I get this:
Code:
u35649540:/kunden/homepages/29/d91718790/htdocs > bash NC_CVS_Update.sh
Logging in to :pserver:anonymous@cvs.nukecops.com:2401/home/cvs
CVS password:
cvs server: Updating betaNC
U betaNC/.htaccess
U betaNC/README
U betaNC/admin.php
etc...
etc...
etc...
U betaNC/admin/modules/tracking.php
U betaNC/admin/modules/users.php
cvs server: Updating betaNC/admin/modules/mysqltap
cvs server: failed to create lock directory for `/home/cvs/betaNC/admin/modules/mysqltap' (/home/cvs/betaNC/admin/modules/mysqltap/#cvs.lock): Permission denied
cvs server: failed to obtain dir lock in repository `/home/cvs/betaNC/admin/modules/mysqltap'
cvs [server aborted]: read lock failed - giving up
cvs server: Updating betaNC
cvs server: Updating betaNC/GoogleTap
cvs server: Updating betaNC/admin
cvs server: Updating betaNC/admin/case
cvs server: Updating betaNC/admin/language
cvs server: Updating betaNC/admin/language/tracking
cvs server: Updating betaNC/admin/links
cvs server: Updating betaNC/admin/modules
cvs server: Updating betaNC/admin/modules/mysqltap
cvs server: failed to create lock directory for `/home/cvs/betaNC/admin/modules/mysqltap' (/home/cvs/betaNC/admin/modules/mysqltap/#cvs.lock): Permission denied
cvs server: failed to obtain dir lock in repository `/home/cvs/betaNC/admin/modules/mysqltap'
cvs [server aborted]: read lock failed - giving up
u35649540:/kunden/homepages/29/d91718790/htdocs >


How do I gain permission? I'm sorry if this is a really stupid question. I'm a really big newb.
Find all posts by gandolf8View user's profileSend private messageVisit poster's website
ZennouRyuu
Nuke Cadet
Nuke Cadet


Joined: Jan 26, 2004
Posts: 4


PostPosted: Mon Jan 26, 2004 10:40 am Reply with quoteBack to top

gandolf8 wrote:
I'm using 1&1's free 3 year plan. I was wondering if you could please help me?

When I get to step 9:
Quote:
9. Type

bash NC_CVS_Update.sh

NOTE: The command you use varies dependent upon your host service. Some people are able to type the following instead

./NC_CVS_Update.sh

Yet, other people are able to type the following instead

sh NC_CVS_Update.sh

It starts updating until I get this:
Code:
u35649540:/kunden/homepages/29/d91718790/htdocs > bash NC_CVS_Update.sh
Logging in to :pserver:anonymous@cvs.nukecops.com:2401/home/cvs
CVS password:
cvs server: Updating betaNC
U betaNC/.htaccess
U betaNC/README
U betaNC/admin.php
etc...
etc...
etc...
U betaNC/admin/modules/tracking.php
U betaNC/admin/modules/users.php
cvs server: Updating betaNC/admin/modules/mysqltap
cvs server: failed to create lock directory for `/home/cvs/betaNC/admin/modules/mysqltap' (/home/cvs/betaNC/admin/modules/mysqltap/#cvs.lock): Permission denied
cvs server: failed to obtain dir lock in repository `/home/cvs/betaNC/admin/modules/mysqltap'
cvs [server aborted]: read lock failed - giving up
cvs server: Updating betaNC
cvs server: Updating betaNC/GoogleTap
cvs server: Updating betaNC/admin
cvs server: Updating betaNC/admin/case
cvs server: Updating betaNC/admin/language
cvs server: Updating betaNC/admin/language/tracking
cvs server: Updating betaNC/admin/links
cvs server: Updating betaNC/admin/modules
cvs server: Updating betaNC/admin/modules/mysqltap
cvs server: failed to create lock directory for `/home/cvs/betaNC/admin/modules/mysqltap' (/home/cvs/betaNC/admin/modules/mysqltap/#cvs.lock): Permission denied
cvs server: failed to obtain dir lock in repository `/home/cvs/betaNC/admin/modules/mysqltap'
cvs [server aborted]: read lock failed - giving up
u35649540:/kunden/homepages/29/d91718790/htdocs >


How do I gain permission? I'm sorry if this is a really stupid question. I'm a really big newb.


I am currently experiencing the exact same thing reguarding the mysqltap module from the CVS server. Unfortunately from what I know about CVS, this is somthing that we can do nothing about and it will be upto the admin of the CVS server to reconcile. My temp suggestion would be to use the daily snapshots made available at beta.nukecops.com those are ok.
Find all posts by ZennouRyuuView user's profileSend private message
Hynee
Nuke Soldier
Nuke Soldier


Joined: Dec 27, 2003
Posts: 16

Location: Melbourne, AUSTRALIA

PostPosted: Thu Feb 26, 2004 9:07 pm Reply with quoteBack to top

OK, sorry to disrespect your definitive guide, but I still can't get it working! The auto-update capabilities are too good to be ignored, so I want you to help me through it.

Let's focus for now on how to get an existing site auto-updating, for simplicity.

Step 1: To stop CVS prompting for a password, you need to setup an empty .cvspass file in your home directory (echo $HOME will tell you where this is). Then use the command
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login
to set it up.
Correct?

Step 2: Then upload NC_CVS_Update.sh to your site, change the line
cd /home/mysite/www
To point to directory below you nuke installation, as the instructions say.
Change the line
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs update -I config.php betaNC
To point to your nuke directory. Eg, if it is /home/mysite/www/nuke, change it to
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs update -I config.php nuke

Correct?

Step 3: Test it by running the script,
sh NC_CVS_Update.sh
(You might need to chmod 755 it first).

Step 4: Set it up as a cron job.

Correct?

_________________
Webmaster at phpNuke sites www.hynee.com
and www.fihs.net
Find all posts by HyneeView user's profileSend private message
reikimaster
Sergeant
Sergeant


Joined: Jan 31, 2004
Posts: 148


PostPosted: Tue Mar 02, 2004 12:36 pm Reply with quoteBack to top

Apparently I CAN run cvs from inside my shell. So...
I typed touch .cvspass to create that file and leave it empty.
then I tried:
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login

upon which I apparently connected and was then prompted for a password.
A little help at this point would be appreciated. Smile

I thought having that .cvspass file there was to prevent the password thing. If I can't login obviously nothing else about this isn't gonna work.
Find all posts by reikimasterView user's profileSend private message
reddem0n
Nuke Soldier
Nuke Soldier


Joined: Jan 26, 2004
Posts: 18


PostPosted: Fri Apr 02, 2004 1:18 pm Reply with quoteBack to top

After doing all the steps mentioned above and then when I get to step 9 to bash the file it gives me error messages. I even made sure I created the .cvspass file as well in the root directory but I still receive this message. Here's the error message I get everytime I try to bash the nc file.

Code:

cvs update: authorization failed: server cvs.nukecops.com rejected access to /home/cvs for user anonymous
cvs update: used empty password; try "cvs login" with a real password
Find all posts by reddem0nView user's profileSend private message
reddem0n
Nuke Soldier
Nuke Soldier


Joined: Jan 26, 2004
Posts: 18


PostPosted: Sat Apr 03, 2004 11:03 pm Reply with quoteBack to top

I'm guessing they changed the password to the ftp thing, because every time I try to update it, it doesnt work always the same password error.
Find all posts by reddem0nView user's profileSend private message
reddem0n
Nuke Soldier
Nuke Soldier


Joined: Jan 26, 2004
Posts: 18


PostPosted: Wed Apr 07, 2004 2:23 am Reply with quoteBack to top

bump

can someone please help
Find all posts by reddem0nView user's profileSend private message
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.093 Seconds - 155 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::