Xampp on Linux, aka Lampp

You know how sometimes you say, ‘I’ll just do this and then I’ll have a coffee and a cigarette’? And the something then goes wrong and turns into a much bigger job which takes you all day and you wind up thinking you should have just stayed in bed.

This has been such a day.

It started with a backup, or at least an attempted backup, but that’s another story. To cut it short, I ended up corrupting my whole MySQL installation, somehow, couldn’t get Lampp to work properly, un-killable instances of MySQL popping up all over the place and so on and so on.

Managed to remove everything, MySQL and Lampp (deleting all my in-development websites, because I couldn’t manage to get a backup of the databases going. Waaah!!)

Anyway, decided I needed a guide re-installing Lampp on my computer, in case I needed to do it again. So here goes. Note, this works on my machine, it might not on your, or my next machine!

  1. Download Lampp from Sourceforge. Note to Joomla devs, you can’t use the latest version, it’s PHP is too advanced (get that!!!) for Joomla. At the time of writing, version 1.6.4 is recommended. Look in File menu on the Sourceforge website for your distribution.
  2. Unzip it using this nifty little command:

tar xvfz path-to-your-download/xampp-linux-1.6.4.tar.gz -C /opt I don’t know why you have to do it like that. I think the guys at Linux just like typing a lot. Don’t be tempted to sudo this command. It just makes everything belong to the root user, and you can’t do anything until you change all the file permissions. What a ball ache.

That installs in into /opt folder. Job done! It also installs MySQL, PHP and Apache, so no need to bother putting those in separately.

Once it’s installed, start it up with sudo /opt/lampp/lampp start and point your browser at localhost/xampp and see what it says. It should say everything’s fine. If it doesn’t, you got problems. Have a look at apachfriends.org for help and friendly advice.

Next, set up security. Open a terminal and type sudo /opt/lampp/lampp security

The terminal will take you through all the steps needed to secure your installation, although if it’s just running on your local machine with no network access, you don’t really need.

Next step, you need to edit the php.ini file, especially for Joomla. Open php.ini, in /opt/lampp/etc and change the line memory_limit = 8M to memory_limit = 32M. You’ll need to open this file as root, or you won’t be able to save the changes.

Finally, if , like me, you’re running an IDE with debugging, you’ll need to enable Xdebug. This is installable from the synaptic Package manager, which remains the route of choice for me. Now you’ve installed it, you need to tell PHP to use it. Find your  xdebug.so file (on my system, it in /usr/lib/php5/20090626+lfs) Open php.ini again (as root, remember! and add the line zend_extension_ts=”/wherever/you/put/it/xdebug.so

JCK Editor and Image Manager plugin

Just spent ages fiddling around with image manager trying to get it to work. I got various problems; thumbnails not showing, unable to upload files, couldn’t edit images blah blah blah.

Finally realised that my .htaccess was interfering with it. You need to allow full access to the folder plugins/editors/jckeditor/plugins/ImageManager/ for it to work. Seems a bit insecure, but there you go!

JCK Editor and the Media Embed plugin

Just spent all day trying to solve the mystery of why the Media Embed editor button which comes shipped with the JCK Editor works fine in an article, but not when I’m using the same editor for an event. BTW, this is nothing to do with HTML filtering in Joomla; the code never even gets entered into the page!

Long story short.. it turns out that this version doesn’t cope with having two instances of a JCK editor on the same page. One is fine, two is overload.

I found the author of the plugin has corrected this and uploaded a revised version to Github. I just replaced the code in /plugins/editors/jckeditor/plugins/MediaEmbed/plugin.js with the new code from Github, and hey presto, it works!

On to the next website bug…

Ed Slater website now live!

I’ve just completed work on a new website for an artists friend of mine, Ed Slater. I designed my own PHP-based gallery component, which works really well. I used a lovely script from TopUp for the javascript pop-up images, but the gallery code I made creates its own thumbnails! Whoop whoop!

For the rest, Ed wanted a simple but stylish website, and I hope I’ve achieved that!

Ed Slater screenshot

The Source website

My latest website has been live for a few weeks now. The site is for a music venue in Carlisle called The Source.

The Source screenshot

The Source screenshot

The brief was to design a site that could sell tickets for gigs, and organise events and gigs fairly painlessly, without having to use a developer every time they wanted to change something.

I used a Joomla installation, coupled with Event Booking Pro by Jomdonation. I needed some core tweaks to get the display I wanted, and there are still a couple of things I want to do better, but broadly it has worked really well.

Ubuntu Boot Update Manager

I have often wanted to find out what services are running at boot, not just at start-up. I’ve finally found Boot Update Manager (BUM).

It provides a GUI for seeing what is running at boot time, and so is different from Start-up Manager, which only logs what runs when you log in.

Installs through the Synaptic Package Manager.

Ubuntu Boot Update Manager screenshot

Ubuntu Boot Update Manager

Jane Rose mosaics goes live

I’ve just finished work on a new website for a friend of Crown Gallery, Jane Rose. I’ve designed her a nice little 5 page website to complement her mosaics teaching practice.

Jane Rose Mosaics

Jane Rose Mosaics

 

 

 

 

 

 

 

I’m dead chuffed with design because I wanted to do a multi-column design without using tables. I managed this with pure CSS, which, so far as I can make out, renders well in a range of the usual browsers. Even doesn’t look too bad in IE6.

Anyway, next project beckons!

Technical Support Heroes!

Just a quick plug for the technical support at Rochen. I was still trying to sort my server out a 1 in the morning, and there was still someone there answering my emails and getting me through it! These guys are the tops, I can’t recommend them highly enough

Akeeba backup

Having recently used Akeeba backup to restore a Joomla site to a new server, I came across a technical problem which I solved, with the help of the TS guys at Rochen.
When I created the new database and it’s user for the new site setup, I used the password generator. This caused the installation to fail, with an error reading “Ajax error” tthen something along the lines of 406 page unacceptable. Apparnetly this is because Joomla only liikes alphanumeric passowrds, so I changed this and it worked! After the installation, I had to manually input the database connection details into the configuration.php file, but after that it worked a dream!

Crown Gallery

Crown Gallery thumbnail

Crown Gallery

www.crowngallery.net This is a website I have designed for a shop that my partner and I are opening in November 2010. It’s a Joomla based site, and the first time I’ve tried using the tableless design you get with the Beez template in Joomla.

Because I wanted to have the site looking pristine, I’ve also had to change some of the coding to get things running right. Putting my new PHP skills to the test!