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-
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.
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'.
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
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
XEULAS Captain
Joined: Oct 20, 2003
Posts: 335
Posted:
Fri Oct 24, 2003 9:02 am
....updated....
Last edited by XEULAS on Thu Nov 27, 2003 10:13 am; edited 2 times in total
grumm3t Nuke Cadet
Joined: Nov 12, 2003
Posts: 3
Posted:
Wed Nov 12, 2003 5:16 pm
Mine works with normal:
cvs -d:pserver:anonymous@cvs.nukecops.com:/home/cvs co betaNC
*for full checkout
Zhen-Xjell Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Thu Nov 13, 2003 4:57 pm
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]
XEULAS Captain
Joined: Oct 20, 2003
Posts: 335
Posted:
Thu Nov 27, 2003 9:05 am
....updated....
NanoCaiordo Private
Joined: Dec 21, 2003
Posts: 41
Location: Italia
Posted:
Mon Jan 05, 2004 8:25 am
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.
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
gandolf8 Nuke Cadet
Joined: Jan 24, 2004
Posts: 4
Posted:
Sat Jan 24, 2004 4:48 pm
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.
ZennouRyuu Nuke Cadet
Joined: Jan 26, 2004
Posts: 4
Posted:
Mon Jan 26, 2004 10:40 am
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.
Hynee Nuke Soldier
Joined: Dec 27, 2003
Posts: 16
Location: Melbourne, AUSTRALIA
Posted:
Thu Feb 26, 2004 9:07 pm
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).
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.
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.
reddem0n Nuke Soldier
Joined: Jan 26, 2004
Posts: 18
Posted:
Fri Apr 02, 2004 1:18 pm
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
reddem0n Nuke Soldier
Joined: Jan 26, 2004
Posts: 18
Posted:
Sat Apr 03, 2004 11:03 pm
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.
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