Mod_Rewrite and Zend Framework 1.10.x and Ubuntu

So all the tutorials on configuring your development server to run Zend Framework successfully say that you need to enable mod_rewrite in apache2 so that .htaccess and Zend_Router* works well.

What they all say is to make sure it’s loaded and enabled. I will raise my hand and say it wasn’t that easy for me to find because Ubuntu lays out Apache2 a little differently from say Fedora. First of all in the /etc/apache2 folder there are a few folders to take note of.

sites-enabled and mods-enabled actually tell you what has been enabled or not and not an uncommented list in some httpd.conf file. Basically the folders in there have symbolic links that come from sites-available and mods-available. This perhaps is a better idea as you can add new mods and not have to recompile apache or whatever.

I digress, to enable mod_rewrite in apache2 in Ubuntu 10.04.1 you need to create a symbolic link from mods-available to mods-enabled to do this you can either use the command:

sudo ln -s /etc/mods-available/rewrite.load /etc/mods-enabled/rewrite.load

or if you prefer GUIs you have to run nautilus as root so you can try

sudo nautilus

and navigate to “/etc/mods-available”, right-click on rewrite.load and select “make link” and the cut the new file created called “link to rewrite.load” paste it in mods-enabled and rename it to “rewrite.load ”

Now all you need to do is restart your web server and you’re all set to reroute anyhow you want.

sudo /etc/init.d/apache2 restart

Too Long

So over the past few months I have not written anything here at all. Simply because I have been really busy with quite a few things and I am working under the assumption that I will be really busy for a while to come. I got some time now and I thought I should write something here.

What has got me busy over the past few weeks has been a Research Proposal. This is for a PhD and I really hope to get a place in the 2010/2011 academic year. It is obviously going to be in computing (Web Services and Quality of Service).

I have also been testing out all these new web 2.0 technologies and all that comes with it. The first was seesmic: I even got the blackberry app and all worked for a bit and then I got tired of it. I believe it was really about the feel of the application rather than how it worked, because I think it works fine I still prefer ubertwitter for those purposes.

Then I thought to myself, my facebook profile: I don’t remember the last time I actively updated that. At first I had my status automatically updated through my twitter updates. I am not sure at which point that bridge was hacked but I started updating my facebook pages in Japanese and trying to sell anyone who bothered to translate what was on there a wii or something like that. Goes without saying… I burnt that bridge really quickly – uninstalled my facebook-twitter app and basically haven’t used that profile for anything besides testing facebook integration with mokocharlie.com version 3 (which is coming out soon by the way).

I decided then to try a cross between my twitter account and a blog in the present incarnation it’s a service called tumblr. I even altered my A record so that this blog was redirected to my tumblr blog. This infatuation lasted for all of 5 minutes playing around with it. What really turned me off the whole thing were the buttons on the top of the blog. They were constantly telling people to join tumblr or subscribe to my blog. I don’t mind having those buttons on my blog. I just want the option to do whatever I want with my page especially when it’s as themable as tumblr is. They even make your profile picture into a favicon and all that, I was impressed with the web 2.0 ruby on rails feel to the whole thing. I just wasn’t that sold…

Finally traded in my Wii, I love the machine and it works beautifully since the day I bought it (the day it was launched), I have had absolutely no issues with it at all. It’s been stable, fun and exhilarating. The problem I have with it though is that week in week out I see all these awesome titles released to the darkside (PS3 and XBox 360) and I feel like I’m missing out on all the action. I have always been a Nintendo fan and I believe if they were to release a higher spec version of the console that was actually able to compete with all those eye watering titles I will get myself one. For now however, I want to play some God Of War 3. And that’s not on the Wii nor on the XBox so it is with a saddened heart that I say this that I am looking to get a PS3 sometime over the next few days at the expense of my Wii — sad times.

A few updates

It has been a while since I actually wrote anything here so I thought I’d post en masse today. First of all I try to keep up to date with Linux today feeds and yesterday i came across this video. “If the matrix ran windows” i think it’s really funny and worth a look find embedded…

Secondly, I have been tweaking my intrepid looks a lot and here’s is what I have come up with. If anyone wants tips on how i did this leave a comment.

I also think blueproximity is one of the best utilites out there. It basically watches for bluetooth devices in the vicinity and reacts to that distancec based on your settings. My laptop for example is pair with by blackberry and I make blueproximity lock my screen / launch screensaver or whatever. You can even make it shut down you laptop or explode it (your choice) but my point is that it is a really maleable tool that makes it very handy.

I have been dabbling a bit with wine as well and wine-doors as you may have noticed the flash and dreamweaver icons on my desktop. They are just there to make me look like a web developer. They actually work in Linux. Provided you have a serial and a disk or setup, You can even get the CS3 incarnations to work. I like the old school ones, though because you know when you write good actionscipt that they will work no matter what.

I have also been learning the proper way of writting PHP classes. With __constructs and _destructs and so on. Been helping out a friend with this lately it is quite handy I must say know some good OOP. Like it’s always written in those OOP books, after learning how to use objects you wonder how you had been working without them before. That is actually true.

I have also made a few minor tweaks to my website. I now have a little widget that gives short bursts of news, and when there is not new news item, it falls back to what i’m doing on twitter… web services mmmmm………