PDA

View Full Version : Fresh Install of Urchin V5


ProWebUK
09-19-2003, 09:11 AM
as usual with my howto guides i take no responsibility if anything goes wrong, If you have any problems feel free to post here although i do not guaranatee i will be able to help.

the howto assumes that you do not currently have any version of urchin on your server.

ok, lets start

Firstly:

// text like this is information

# commands_are_shown_like -this

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

log in as root

# mkdir urchin

# cd urchin

// For RH 7.2 / 7.3
# wget http://www.urchin.com/download/urchin5/download/urchin5101_redhat72.tar.gz

// For RH 8
# wget http://www.urchin.com/download/urchin5/download/urchin5101_redhat8x.tar.gz

// For RH 9
# wget http://www.urchin.com/download/urchin5/download/urchin5101_redhat9x.tar.gz

# tar zxvf urchin500*

# rm -f urchin5101_redhat*

# chmod 755 install.sh

# ./install.sh

// you will be asked a few questions by the install script, type the appropriate answers, for the port number, we are going to use 8080 for this howto.

// DO YOU WANT TO START URCHIN AFTER THE INSTALLATION? -

if you want urchin to be under httpp (unsecure) type y (for yes), if you want to put urchin under https (secure) type n as we will need to configure it.


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

CHECK THE FILES / PATHS USED BELOW ARE CORRECT, THEY ARE BASED ON PLESK 6 SO MAY BE WRONG, IF SO, USE THE 'LOCATE' COMMAND TO FIND OUT THE CORRECT LOCATION OF THE FILE

IGNORE THIS SECTION IF YOU DO NOT WANT URCHIN IN HTTPS (SECURE) SPACE)

# cp /etc/httpd/conf/ssl.crt/server.crt /usr/local/urchin/var
# cp /etc/httpd/conf/ssl.key/server.key /usr/local/urchin/var
# pico -w /usr/local/urchin/var/urchinwebd.conf.template

you will now be in pico, on line 7 replace "ServerName Localhost" with your hostname like this "ServerName srv01.yourdomain.com"

press [CTRL] + [X] to exit, when you are asked if you want to save the chnages, type Y and press enter.

# pico -w /usr/local/urchin/util/urchin_daemons

scroll down to line 35, you should see this:

"$INSTALLDIR/bin/urchinctl" start

Replace it with:

"$INSTALLDIR/bin/urchinctl" -e start

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

the final section, all users should do this running in ssl or not!

# cp /usr/local/urchin/util/urchin_daemons /etc/rc.d/init.d/urchin
# chmod 755 /etc/rc.d/init.d/urchin
# pico -w /etc/rc.d/rc.local

// at the of the file just add the following line:

/etc/rc.d/init.d/urchin start

press [CTRL] + [X] to exit, type y when it asks you if you want to save changes and press enter to exit.

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

Notices!

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

firstly i would like to point out that the howto is based on the one from unoffical-support.com, it has been rewrtten and modified for PSA6 users.

You can now log in at (if you chose secure) https://hostname:8080 or (if you chose unsecure) http://hostname:8080

hostname should be replaced with your servers hostname and 8080 is the port you chose during the installation... if you did not chnage it the urchin default is 9999

MAKE SURE IF YOU HAVE A FIREWALL YOU OPEN THE USED PORT

when you setup a profile for users in urchin you will be required to give the full system path to the sites access_log file

If you get permission files you will need to do:

// log directory
# chmod 555 /httpd/logs/DOMAIN.COM/logs/
# chmod 777 -r /httpd/logs/DOMAIN.COM/logs/

NOTE THE ABOVE ARE NOT THE ACTUAL PATHS... I AM UNSURE OF THESE IN DIRECTADMIN SO YOU WILL HAVE TO CHECK

please post with comments, or any chnages that have to be made to this howto (i cant test it - sorry :( )any problems also feel free to post here... i have installed urchin on almost every RH server apart from DA so i might be able to help :P

Enjoy it ;)

Chris

ProWebUK
09-19-2003, 09:18 AM
To upgrade from V4 to V5 please follow the above guide. After running the following step:

# ./install.sh

Make sure you select the 'upgrade' option and not install.

Most of the options you choose after that shown in the above guide will need to be ignored. You do not need to follow any more of the guide, if you wish to put it under https follow the section regarding that, the rc.local fsection does not need to be done for an upgrade :)

Chris

UltimeWWW
09-21-2003, 07:21 AM
Any way to automate the creation of profiles, just like in Ensim?

I could work it but I can't find the file that DA runs when creating a new site.

Thanks ;)

ProWebUK
09-21-2003, 04:12 PM
Also unsure of the file executed when a site is created...

sorry :(

interfasys
12-16-2003, 09:06 AM
I'm about to have a go at it.
Anything new since this HowTo was first posted?

ProWebUK
12-16-2003, 09:19 AM
Nope, i think the version may be 0.001 out... if so the wget wont work (Urchin remove previous versions), I will update the links (if needs be) in a moment.

Chris

ProWebUK
12-16-2003, 09:24 AM
Just updated the links and version numbers shown.

Chris

interfasys
12-16-2003, 09:33 AM
Thanks!

Since most paths were the ones for Plesk 6, I was wondering if you ran into big problems there and if a simple locate solved the problems.

ProWebUK
12-16-2003, 10:38 AM
The onlt thing that is really specifi to plesk would be the location of users log files. this is used in the format shown below.

// log directory
# chmod 555 /httpd/logs/DOMAIN.COM/logs/
# chmod 777 -r /httpd/logs/DOMAIN.COM/logs/

Simply replace the paths with the actual paths to your users files :)

Chris

interfasys
12-21-2003, 10:15 PM
Urchin was already installed on my server, I've followed the ssl instructions, restarted urchin, but I cannot use the https protocol. Only http works. Isn't there a place to tell urchin to run in secure mode?

interfasys
12-21-2003, 10:23 PM
Apparently we need to use the -e switch for restarts...

#/usr/local/urchin/bin/urchinctl -e restart

ProWebUK
12-21-2003, 10:35 PM
Dont think you followed the guide completely ;)

under the https section there is:

# pico -w /usr/local/urchin/util/urchin_daemons

scroll down to line 35, you should see this:

"$INSTALLDIR/bin/urchinctl" start

Replace it with:

"$INSTALLDIR/bin/urchinctl" -e start

===================

follow the remainder of the guide and you will be able start using service urchin <OPTION>

in some cases its urchind instaed of urchin.

Chris

interfasys
12-21-2003, 10:44 PM
I did follow the guide, but even though the -e switch is in the urchin_deamons, using urchinctl without -e did not activate ssl.

I just did a quick test again and I can confirm that it won't work without the -e switch in the command line.

Maybe I have an error somewhere else....

ProWebUK
12-22-2003, 07:24 AM
once you have done that you need to move the binary if you have not already done so:

cp /usr/local/urchin/util/urchin_daemons /etc/rc.d/init.d/urchin
# chmod 755 /etc/rc.d/init.d/urchin

once you have done that as i stated you can use

service urchin start
service urchin stop
service urchin status

is this what you are doing...?

interfasys
12-22-2003, 09:49 AM
Now that I've slept a bit, I see things more clearly ;)

I already had a:
/usr/local/urchin/bin/urchinctl start
in
/etc/rc.d/rc.local

and I didn't want to mess my current install, so I bypassed the last steps.

I've added the -e in rc.local and I should be fine unless you tell me that having a urchin script in /etc/rc.d/init.d/ will improve my life (it will be easier to start/stop/restart, but is that it?).

ProWebUK
12-22-2003, 10:01 AM
Originally posted by interfasys
Now that I've slept a bit, I see things more clearly ;)

I already had a:
/usr/local/urchin/bin/urchinctl start
in
/etc/rc.d/rc.local

and I didn't want to mess my current install, so I bypassed the last steps.

I've added the -e in rc.local and I should be fine unless you tell me that having a urchin script in /etc/rc.d/init.d/ will improve my life (it will be easier to start/stop/restart, but is that it?).

If you had a previous install, you should have simply run the installation in upgrade mode and then continued as normal. I have upgraded many servers from 4 > 5 with currently 100% success in both maintaining accounts passwords and statistics :D

Chris

interfasys
12-22-2003, 10:09 AM
I had urchin5 installed for me when ordering the server and I think it's part of what's managed on my server, so I don't want to mess it up too much. I'm willing to change rc.local if there is a real advantage though.

ProWebUK
12-22-2003, 10:15 AM
If its part of your management get it done through your provider! if its included with your management you should be running urchin 5101 and if not they should at minimum upgrade upon request.

If you have 5000 you can still upgrade to 5101, i have also run this upgrade as many times as i have run the 4>5 upgrades both upgrades are incredibly easy and quick - you keep your previous configuration etc just need the new binary etc and thats it.

Chris

interfasys
12-22-2003, 10:28 AM
Yes I have version 5101. I only read this thread because I needed to turn on ssl.

Now I've learned a thing or two =)

ProWebUK
12-22-2003, 10:30 AM
Originally posted by interfasys
Yes I have version 5101. I only read this thread because I needed to turn on ssl.

Now I've learned a thing or two =)

pico -w /etc/rc.d/init.d/urchin

scroll down to line 35, you should see this:

"$INSTALLDIR/bin/urchinctl" start

Replace it with:

"$INSTALLDIR/bin/urchinctl" -e start


:D

Thats just doing the same thing another way around!

Chris

interfasys
12-22-2003, 10:39 AM
Yep, except that my server did not come with a /etc/rc.d/init.d/urchin ;)

That the reason I have to take an alternative route, unless I create the deamon myself

ProWebUK
12-22-2003, 10:42 AM
The daemon file is included with Urchin

/usr/local/urchin/util/urchin_daemons

modify that file then move it to /etc/rc.d/init.d/urchin as shown in the main guide :)

Chris

interfasys
12-22-2003, 10:48 AM
Yes, but do I really need it since I can run urchinctl to start/stop urchin?

ProWebUK
12-22-2003, 10:57 AM
Its not required but I would advise using it, its there for a reason and that is to be used :p Even with the daemon in your boot directory it wont affect the previous usage anyway, and I cant see how anyone would be affected by doing this?

Chris

neorder
04-08-2004, 02:23 PM
sorry, but urchin cost 895, what we installed is a trial version, i saw SM offer urchin for free, do you all buy urchin license?

btw, the download links are no longer work.

sander815
06-03-2004, 01:57 AM
uhm, what? its not free?

ProWebUK
06-03-2004, 05:13 AM
Originally posted by sander815
uhm, what? its not free?

for a nice license - your looking at up to $1500+ - they start less than $1000 though.

Chris

sander815
06-03-2004, 06:37 AM
but it used to be free or so? cause thats a lot of money

ProWebUK
06-03-2004, 07:37 AM
Originally posted by sander815
but it used to be free or so? cause thats a lot of money

Its never been free... apart from the demo licenses..

Chris

OxyHost
07-07-2004, 06:33 AM
I think what he may mean is can you buy individual licenses through a service provider plan or something of the sort.