Well, it’s been a harrowing adventure, I think. I’m teaching myself PHP and naturally needed a development server. Before christmas I would have had the choice of trying to coax an old Pentium II generic-beige-box thing back to life (it came to my little retirement home of ancient and decrepit technology with an advanced case of Dust-Bunnies Disease) back to life or running a virtual server off of my slowly aging desktop. I didn’t like the idea of trying to bring a computer sitting comfortably at the end of my little tech island holding other odds-and-ends back into a production setting where it had to be relied upon to do some pretty hefty lifting for a Pentium II. I also didn’t like the idea of cluttering my aging gaming PC (the main desktop, and “gaming” is used loosely, it runs 4-year-old games great, because that’s what it was built for, anything newer than that and it starts to show it’s middle aged-ness) with more processes like a PHP server. Not only that, but virtual servers on the same computer you’re using never work the same way as an actual external box.
But, Santa gives good gifts to good little boys, and I got a respectable new desktop computer to use for modern gaming (“modern” being things like Spore and that type of game, definitely not a Crysis box, but then again point out an actual Crysis box to me). So, I had a brilliant idea. You know what a 4-year-old (in human years, in tech years it’s about 50 or so) gaming PC could do fairly easily? That’s right, it can do a fair immitation of a PHP development server, so rather than adding it to the Geriatric Home for Oldies-but-Goodies, I downloaded Ubuntu Server 9.04 (Yes, Ubuntu, because I’m a Windows Wimp interested in becoming a real geek, but just needs to have something not quite as fiddly as Linux during the School season) and wiped out that 250 GB drive faster than most can blink.
From the install screen I picked LAMP and OpenSSH and then let it go. It rebooted and I used WinSCP to SSH into my box (which is sitting 2 feet away, but I don’t want to use a screen to watch a terminal blink at me, besides, that’s more authentic, and when I own an actual server out there on the web it’ll be more like this experience). It took me about an hour and lots of web searching, but I finally found out that Apache2 uses /var/www as the location for the web server, and that is owned by root, and you can’t modify that until you chmod or chown. I understand chown and get that it really isn’t the secure way to do things, but I don’t know how to get chmod to work.
Well, why don’t you learn? Some of you might ask. Well, because I get Windows, it makes sense, GUI’s are understandable and easy, and I’ve spent most of my life with them. I’m trying to learn, but, running primarily on Windows and Linux as a hobby, you don’t learn very many of the commands, what I really should do is bite the bullet, leave Windows 7 (which would make me sad) and just go Linux only for a while. Cold turkey, it’d be hard but eventually I’d adapt, and hopefully I’ll learn some of the tricks to Linux, and move a little past being the basic Ubuntu user, not that there’s anything wrong there, I just want to know what I’m doing and get some real geek cred.
That was a little off topic. So after a little bit of fiddling I got the thing to work for me and I went about teaching myself a little PHP, and then the issues started. The computer has a few issues, age being one of them. And with age comes shaking out of the motherboard. Now, on the board in that pc there’s a little fan on top of one of the chips, not entirely sure which, but it has to do something, well the fan got stuck and now whatever it is, is overheating which leads to many issues. Really, I’m a horrible person for trying to get this dying PC to keep working, but I want to get this thing to work.
Now, I said it worked for me. And it does, as a personal development server, it’s just fine, there’s no problem of security, because it’s behind a router, so you can go ahead and punch as many holes and chown as many files as you want. But, I need to know how to do this stuff securely for the actual web. Not only that, but I want to get to know more than just PHP. So, I took it upon myself to fiddle with Apache, decided it wasn’t enough and installed Bind9. I tried to set it up so that on computers that know how I can redirect URL requests to the server. And that’s where I killed it.
Yep, me and my non-knowledge ended up in me messing with a config file somewhere that messed up Bind which in turn made Apache angry, and the whole thing stopped accepting requests made to the machine’s IP address. So, I whipped out my CD again and clean installed the thing, that was yesterday. About once an hour I’ve given up trying to get everything the way I want with the amount of wrong turns I’ve made, and it takes about five minutes to install a clean version of the whole server. So, I think as of this writing I’m on the 11th install on this poor old system.
In other news, I can write a little bit of PHP, so if you want to hire me, I need the money, I type fast and since I’m colour blind I won’t question you on your design choices. Still working on payment though, I’m eventually making it over to my bank to get the online thing setup (because I waited too long to make my profile, or something, so I have to go in and talk to them) and then I hope I can link it to a Paypal or Google Checkout account.
I know I’ve said this before, but I’m going to try to update this blog a little more, you know, build a community and stuff like that. Because, I need people who I can crawl to when I’ve decided that Linux is hard and I need somebody to walk me through the basics again, and again, and again.
