RSS
 

Posts Tagged ‘server’

Whoopsie…

30 Nov

Just noticed that I made a mistake when I reinstalled my webserver.

Installed server – Check.
Updates? – Check.
Installed LAMP – Check.
Moved all files – Check.
Moved databases – Check.
Moved configuration files – Check.
Check if site works – Fail.
Enabled htaccess – Check.
Site works? – Check.

Now here’s where it went wrong, I never checked that any sub-pages work, just the front page. So in short, fail.
I forgot to enable rewrite for Apache. *Doh!*

Oh well.
Shit happens and then you fix your mistakes while maintaining the illusion that next time you’ll remember it.

 
No Comments

Posted in Tech

 

New Natty Server

05 Apr

That’s Natty Narwahl, as in Ubuntu Server 11.04, not a typo of “nutty”.

I figured that since I moved my blog and some other webby stuff over to the Mac Mini, I’d take the opportunity to try out some different configurations and distros on my old webserver.

ClearOS 5.2 SP1

It took a few tries to get the installation about right. Oddly, I missed DHCP from the installation and had to add it afterwards via ssh from my laptop (yum install app-dnsmasq did the trick). Was a bit of a hassle to get most of the things I wanted in place, but due to the lack of all the configuration-files I am used to I decided to throw ClearOS in the bin.

Ubuntu Server 11.04 a.k.a. “Natty Narwahl” (x64, beta1)

This felt a lot more like home. Admittedly, I had all but forgotten about the usual problem I encounter when I install Debian or Ubuntu on this machine, all because of the integrated GeForce 6150 LE… what happens is I get a black screen after the grub-menu. I tried a bunch of different “solutions”, which in turn only messed up my installation even further. After about 2 hours I figured it’s easier to just start over.

Next round I did a software raid, which I regretted about 15 seconds after it finished partitioning and started installing. So, now the server is up and running in it’s third Natty-incarnation for today. For once I actually took the time to plan the partitioning a little bit better than I usually do (read: I didn’t hit “Use entire disk” within the second it comes up). Ended up with 4 partitions (/boot, swap, / and /home) split over 2 disks. So far, so good.

Typically I like to just select the preconfigured tasks which are predefined (LAMP, Samba, DNS, etc) and then spend a few hours afterwards installing all the things I need, can’t live without and whatnot. I was a bit pleasantly surprised by the manual select-option, so I spent 20 minutes selecting packages I know I need and saved a bunch of time once the installation was done. Yay me & hooray.

DynDNS?

I have to love the repositories for Ubuntu, when things like ddclient are readily available. Oh, speaking of ddclient and dyndns, they have a really nifty feature on their site which lets you create the ddclient.conf -file online and then just copy-paste in the correct configuration on your box. Log in to dyndns.com and go to: Support -> Tools -> Update Client Configurator (direct link).

That’s it for today.

 
1 Comment

Posted in Tech

 

New server for the blog

31 Mar

Mac Mini After a bunch of screw-ups and huge annoyances, I managed to move my blog to another server in the house. This time it’s hosted on the “new” (used) Mac Mini.

I never would have figured that it would be so bloody hard to move a wordpress installation from one server to another. Turns out it’s a really bad idea to have a plugin like WP Supercache enabled before you do the move. I ended up having to export all my posts and pictures via WordPress own exporter and then import them again on a fresh WP installation.

So a bunch of grey hairs later, I’ve been up and running for a day or two on the Mac Mini. :)

Now the next step would be to get a new gigabit router, preferably with wireless… something like Buffalo’s WZR-HP-G300NH would be really nice. It’s a shame they are so hard to find in Sweden. I’ve been playing a little with it at our office the last time I was in Helsinki, and I was really impressed by the features it packs into it’s little black body with double-antennas.

Speaking of OS X, I have a bunch of annoyances with using the Mac. Yes, yes, I know I’m definitely not an apple-fanboi. I’ll admit the mini is quite cute, but why – oh why- would they ever do something as stupid as mess around with keyboard shortcuts. Since I don’t have an Apple Keyboard™, it’s really confusing remembering which button was mapped to what, not to mention changing some shortcuts completely. Add to the confusion the fact you just have to have the mouse nearby the whole time.

You know you’re a Windows and/or Linux kinda guy when…

…you hit Alt+D and expect yourself to jump to the Address-bar in most modern browser… is this the case on OS X?
No. You end up bookmarking the damn page. Cmd+L apparently is the favored method on a Mac.

…you select a file in your file browser of choice, press Delete and expect the file to be deleted… is this the case on OS X?
Nope. You just get a *bloing* sound from the Mac. I’m not going to say anything about the fact that a MacBook Pro doesn’t even have a delete-button…

…you press F2 to rename files and Enter to launch something. Did this happen on the Mac?
Bloody no. Why on earth would anyone want to rename with pressing Enter? And how the hell am I supposed to launch stuff?

…you open the file browser, browse to your desired location and want to cut+paste a file from here to there. Now on a Mac the first question is, where’s Cut in Finder??
I sure as hell don’t like having to drag and drop when I have a keyboard in my lap.
Let’s see… on Win7 I’d do something like: Win+E, Alt+D, type location, Enter, select file with arrows (or multiple with Ctrl+Space) and hit Ctrl+X.
I completely fail to see how that’s even remotely possible to do on OS X.
And no, I do not want under any circumstances to drag and drop with the mouse.

So much for the supposed “superiority” of OS X… but at least it’s pretty to look at.
If you’re into that sort of thing.

 
No Comments

Posted in Tech

 

Ubuntu Server 10.10 with multiple network interfaces

19 Oct

Of course I forgot to mention this: I managed to fix the damn weird DNS issues I was having on the server.

The problems:

  1. /etc/resolv.conf was being overwritten by my ISP’s DHCP server.
  2. unable to have both the internal LAN (eth1) and internet (eth0) working at the same time

1. First off to get all the DNS servers included into resolv.conf I had to add them to /etc/dhcp3/dhclient.conf like this:
supersede domain-name-servers 85.xx.xx.xx, 192.168.xx.xx, 8.8.xx.xx;

(Don’t forget the semi-colon in the end!)

2. This was just a screwup by the automatic install script in Ubuntu. I resolved it by just adding this to /etc/network/interfaces:
auto eth1
iface eth1 inet static
address 192.168.xx.xx
netmask 255.255.255.0
network 192.168.xx.0

So I’m up and running again. :)

 
No Comments

Posted in Tech