Wednesday, 21 May 2008

Plesk virtual hosts

Another thing I need to remember for plesk

If you are creating changes to the apache files, do not change the http.includes.
just add a vhost.conf in the conf folder

and do

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com


Tuesday, 20 May 2008

I have seen the future

Got on the tube, saw a man reading a v thin filofax. 
2nd glance, it was an ebook
3rd glance, the screen was amazing.  it didnt seem to be a screen, it looked like paper
4th glance, it was Sony

I remember the times when this happened for me
1. seeing my first Personl computer.  A commodore PET
2. seeing my first mobile phone

it is the future
and the future is now

VPS & Dist CC

I will fill more info on this soon BUT the short version

my VPS hasnt enough memory to compile mod_rails 

so I had to learn distcc which meant learning ssh reverse tunneling which meant installing ubuntu on parallels ( after many attempts )

and the end result

mod_rails crashed my VPS.   so im not sure yet, what the result of all that was.

ssh -R username@vps  3632:localhost:3632 

and then compile using 
CC=distcc ./configure

Thursday, 8 May 2008

Plesk. Ubuntu & Rails

Well its no surprise that Ubuntu and Ruby / Gem  dont like each other that much since they both have competing version managers.   Its even more confusing when Plesk has something like this too..

My solution, ignore them.. I deinstalled ruby using apt-get remove ruby  ...

then compiled from source

./configure --prefix=/usr

which pops it in /usr/bin

I also learnt to put my source into /usr/local/src

It seems to work.....

DNS and Plesk

Ok ok, so I was missing the glaringly obvious step.  

When you register the domain name, the domain name registrar has a box that looks a bit like this :

domain name server   ns1. [   your domain here here ]    =  ip [ your ip here ]

so I simply add in the ip of my server, and select ns1.  ns2 etc.   Then the domain nows where to find info about this subdomain.   

Why was this so confusing.... BECAUSE my frackin domain name registrar does not let you do this and every time I emailed them on what I was trying to do  they made some nonsense up, until I finally figured out exactly what it was I wanted. Then they stopped replying to the emails because I had worked it out.   UK2 stuff you.     

I went to namecheap.com and got a cheap domain name from them and used that instead.  

Bu Bye UK2 , I had no idea you were overcharging so badly

Thursday, 1 May 2008

DNS Plesk and my domain provider

There's something I dont understand and am trying to...
I have, as you may know, a vps with plesk installed. I have a myriad of domain names for different projects. Im quite familiar with using the domain name sellers services to point different parts of the DNS at different ip addresses, however they charge for this service. There is the option on my domain name to host the dns elsewhere.  On Plesk for each domain, you can turn on DNS hosting, it actually seems to happen automatically. So my understanding is this server is now acting as name server for its own domain, but its not active until the domain reseller updates their records.
Figure 1
Figure 2

So it appears to me that I should simply be able to select the domain server my vps creates in plesk and copy those entries into my domain sellers nameserver change boxes...
Figure 3



Except it doesnt seem to work.. what am I doing wrong ?  
Whenever I set it, it doesnt seem to save the change. It just goes back to uk2's

This is what it looks like when i change nameservers....

Figure 4

but if u go back and check after this....
its reverted back to uk2's servers as in Figure 3.


My understanding is the following...

My server starts bind/dns  - registers itself as the authoritive nameserver for clubsite.info with the nameservers at .info.   
Anyone looking up clubsite.info gets forward to the nameserver at .info which forwards it to my server which returns the ip address.


Wednesday, 30 April 2008

Plesk Installing Components - fastcgi

I had some hosting for my wow guild website. I learned to use rails by making a guild portal. It was a bit clunky but it was a nice learning project and it got us going. Recently we switched to the more 'powerful' dkpsystem.com, which is useful but a bit clunky.  but its proved v useful.
So

My virtual server was empty, and I have 4 other sites being hosted on different hosting company servers... bit silly.   I've held back from putting stuff on the server, but when my main website went down due to a changed cc number, I decided i should start pushing 
them all onto the one as it was pretty good. Sadly last time I used it I remembered that it was a bugger to find out how to add fastcgi tho it was there if you looked hard enough.  So I logged in, reset the VPS, nothing like a clean slate eh. 

But

I could only add 1 client and 1 domain, which wasnt right. Next i tried reloading the vps to see if I missed anything.  No change, 1 client, 1 domain and no option for cgi...  many wasted hours ensued and length waits in queues for tech support.  

So
I thought, well maybe I know more this t
ime round. Let me just order a new vps and I'll close the others account. Which I did, but the new server was also missing the same components.
 Meanwhile tech support fixed the domain/client issue on the old server. doh....
... but I was unhappy with that one. Who knows what mess I already made of that.

HERE IS THE ANSWER...  so that if I ever have to do this again.... i know
Go into Plesk. ( not Virtuozzo) and select System:Server:(Services):Updater.  




If your lucky you should see an update package.



Click on this.
Inside you should find a list of things to update AND install if they aren't already.


THERES THE SOLUTION. 

How helpful am I !?


Now. Im adding some nice tags so people can find it  ( including myself )

mod_fcgid psa_mod_fcgid-configurator

and some pics ( ooh blogger is way better )