LAMP icon


Just a tiny tray icon

If you do web development using the stock Apache and MySQL (and PHP or whatever) on Ubuntu Linux 10.04 (Lucid Lynx) and you want to start and stop them with a single mouse click, this is what you want: nothing more, nothing less.

This program is a simple tray icon that shows Apache’s and MySQL’s status and toggles it with a single mouse click.


AUTOSTART: If you want the tray icon to be ready to use after each login you must put /usr/bin/lamp-icon on your desktop’s startup programs list (e.g. for Gnome look at the System -> Preferences menu).

DISABLE APACHE AND MYSQL AT BOOT: By default Ubuntu activates both Apache and MySQL at each boot, while this program’s purpose is to do it on demand, only when needed. To disable Apache autostart at boot you can use the following command:

sudo update-rc.d apache2 remove

For MySQL you must comment the following lines in /etc/init/mysql.conf by adding a # in front of them:

#start on (net-device-up
#          and local-filesystems
#          and runlevel [2345])

The reason for this asymmetry is that Apache still uses the classic System-V boot system, while MySQL now uses the new (and rusty) Upstart.


About Paolo Bernardi

I'm a (mad) computer scientist and software engineer!
This entry was posted in english, linux, my software and tagged , , , , , , . Bookmark the permalink.

4 Responses to LAMP icon

  1. Giuseppe says:

    Thank you for your post, I found it very useful.
    One little note: on my notebook (with LinuxMint 9), the installer created a wrong symbolic link in /usr/bin.
    I updated it to the correct one with these commands:

    cd /usr/bin
    sudo ln -f -s /usr/share/lamp-icon/ lamp-icon


    • Giuseppe says:

      (in fact, the symbolic link was linking to the file: /home/hiems/Projects/LAMP-icon/debian/lamp-icon/usr/share/lamp-icon/

      • Ciao Giuseppe, thank you! I’m going to investigate the problem and fix it soon.🙂

      • OK, that should have fixed it: instead of using a symlink I’ve now put a one-line script into


        that runs the real Python program. I learned something new about building Debian packages (I am quite the newbie at it, anyway), thank you!🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s