KompoZer can’t open PHP files in Ubuntu? Yes, it can!

Allow me to rant before I get to the actual content of this post (if you prefer not to read it, skip right ahead to steps on solving the problem):


My foray into the world of Ubuntu since installing it in my Acer Aspire One did not come smoothly.

No, I’m not talking about its installation, which was a breeze. Nor was it about hardware compatibility; the Ubuntu Netbook Remix (UNR) distribution made sure that all my hardware worked immediately.

My actual challenge was to choose the right software that would fit my needs, and they were many! Holy cow, if I knew how many free software was out there for Linux, I would have switched sooner!

My main chagrin about a few of these software is its user-friendliness, not in terms of software usability, but in terms of documentation.

Screenshot 1 - KompoZer "Open With" nag screen Take, for example, getting KompoZer to open PHP files. I did the usual configuration of having all files with the .php extension to open with KompoZer, but KompoZer defiantly denies it and kept prompting me to select a different program (you know, the equivalent of Open With… in Windows).

I found that the KompoZer extension called HandCoder would do the trick; all I needed to do was to download HandCoder from its site and add it via KompoZer’s addon manager.

The problem was… there was no fracking download link! Instead, there was only one link with the word “download”, which points to HTML Tidy, which I was not interested at all. I was hard-pressed to find the place to download it, only to find hours later (through a very short description somewhere within the page of some other KompoZer / Nvu extension description) that there is actually a link there, although not very obvious. Alright, I better stop ranting or else I won’t be able to finish this blog post.

Related post:  Importing raw SHP files into MySQL


To open PHP files in KompoZer for Ubuntu, follow these steps:

  1. In the Files and Folders view, right-click on any PHP file.
  2. Select Open With / KompoZer. Or, if you don’t see KompoZer listed, go to Other Application and browse to /usr/bin/kompozer.

    Screenshot 2 - Open PHP With...

  3. Visit the HandCoder website, and click on one of the flags (based on your language preference) to download the XPI file (or just click here to start the download). Click on the flag to download — hah, who freaking knew?! Remember where you save it.

    Screenshot 3 - HandCoder web site

  4. Open KompoZer. In the menu, select Tools / Add-ons.
  5. In the the Add-ons window, click the Install button on the bottom.
  6. Navigate to the location in your computer where you saved it, select the HandCoder XPI file, and click the Open button.

    Screenshot 4 - Select KompoZer extension

  7. Once you see HandCoder listed under the Extensions section, close the KompoZer program and reopen KompoZer again.

You should now be able to open PHP files with Kompozer in Ubuntu.

Spread the love

Check out my other posts: « / »

Posted on 7 March, 2010 under Life in reality and tagged with , , ,


  1. sohbet says:

    nice post =)

  2. XPS says:

    Very good contribution, it works here quite well. Thx!

  3. Mark says:

    I was able to open it by right clicking without loading hand-coder – whatever that does…

    Ubuntu 10,04LTS version, desktop not server

  4. arama motoru says:

    admin thank you

  5. Arama Motoru says:

    Nice work.. Thank you ๐Ÿ™‚

  6. I have so many years did not know it! THANKS A LOT!

  7. JamesR404 says:

    Oeh! Interesting. Was wanting to get this to work under Chrome, but heck, whatever way I can open php files on Ubuntu.

    I’ll give this one a try ๐Ÿ˜€

  8. dean says:

    Nice Post.. Many thanks.

    Worked a treat – just made altering my website a great deal easier. Thanks!

  9. jagdish says:

    kompozer is saying it is not compatible with kompozer

Comments are closed.