Thursday 22 May 2008

Deprecated Functions

I think these 2 days can be categorised as trying to make old things run with newer libraries.

My main work website is on hosting rails at the moment, but I have a VPS Im trying to move everything to. Well when I looked at my local copy of the site, it wouldnt work on Locomotive anymore and I had no idea why.

Today I'm trying to compile openAL into an iphone app.  My demo app for cocoa uses alutloadwavfile.  

Both days, ive spent time trying to figure out 
1) where i was in the project when i left it
2) why it wont run
3) what the replacement for the bloody deprecated function is

doh!

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.