Archive for ‘December, 2010’
Posted on 18:30, December 8th, 2010 by Many Ayromlou
Ran into some problems earlier today in trying to bring up a SSL enabled virtual site along side my existing (non-ssl) name-based virtual sites. I needed the SSL enabled vsite for a installation of phpmysqladmin. I ran into a lot of documentations describing how to get the IP based setup working, but almost no info on name based setups. This how-to is geared towards Ubuntu Linux 8.04 LTS and higher. The very first thing you need to do is get your SSL certificate generated and setup. Without this step nothing works. I’m gonna show you self-signed certificate route. Your milage may vary…..Here is how:
I did this on a semi-secure server in /tmp directory (I cd’d to /tmp before I issued the above commands). You might want to do this in roots homedirectory (or in /etc/ssl directory). The process above will — once completed — provide you with three files (server.crt, server.csr, server.key). You need to move server.crt to /etc/ssl/certs and move server.key to /etc/ssl/private. Once that’s done you can get rid of server.csr file.
Now that you have your SSL setup and for the sake of getting a flawless installation of phpmysqladmin, you need to get the mcrypt extension for php. Use the following command to get it installed (otherwise you keep getting a annoying warning on your login screen about mcrypt extension being missing).
Now we need to get Apache all figured out. I’m going to assume here that you understand the relationship between /etc/apache2/sites-available and /etc/apache2/sites-enabled. Basically for each virtual site you need a conf file in sites-available folder with a appropriate symlink in sites-enabled folder pointing to the config file in sites-available. In my situation I had already created 7 non-ssl’d name-based virtual sites and needed to add a ssl’d name-based virtual site to my setup specifically for phpmysqladmin. Two things to keep in mind before we go on:
First we need to enable SSL module in apache. You can do this manually if you like by creating 2 symlinks in /etc/apache2/mods-enabled pointing to /etc/apache2/mods-available/ssl.conf and /etc/apache2/mods-available/ssl.load OR you can use the command below:
You also want to check the file /etc/apache2/ports and make sure it looks like this:
Where aaa.bbb.ccc.ddd is the IP address of your server. This makes apache listen for non-ssl connections on port 80 and ssl connections on port 443.
Phew, okay theory apart, here is a simple recipe that got me going:
Notice that I’m putting the SSL virtual host first and then create a “fake” non-SSL virtual server under the same name on port 80 that redirects you back to the secure site. Also note the SSL engine being turned on with appropriate paths to the certificates and keys we created earlier on. Make sure you also assign the virtual server the appropriate ServerName and ServerAdmin. Note also that the non-SSL “fake” Server does NOT contain DocumentRoot or anything like that.
That should do it. Stop and Start apache and you should be off to the races.
Posted on 17:27, December 5th, 2010 by Many Ayromlou
More and more people use youtube now-a-days to get access to instant music. Be it at parties, in the office or on mobile platforms. The hard part is the constant searches you have to do. You want to listen to some 80’s tunes. How do you go about creating a playlist……do you even remember the name of those one hit wonders. Well, worry not, Tubeify is here. Tubeify is a new mashup of Last.fm, Billboard and YouTube.
The site allows users to search for, discover, play and queue video clips in any web browser. The advanced search capabilities and outstanding usability makes it without a doubt one of the best YouTube jukeboxes around. One of the true gems is the Billboard “timetravel” feature, allowing users to pull up the Billboard chart for any week since 1964 and listen to the tracks that were leading the charts then. You can grab the top100 songs of any week from Billboard and tubeify will create a nice playlist for you using videos from youtube. Hop over to tubeify.com, sign up for a invite (don’t worry it shows up instantly — atleast for now), and start rocking to your favourite tunes from the past 45 years. How long before some label or other company shuts this down? No idea, but enjoy it now.