How to start LAMPP automatically in Ubuntu?

For a web developer LAMPP is the primary application for web development, so to start it every time whenever you login. You can make a script which will automatically start LAMPP on login.

xampp_ubuntu_autostart

Open terminal and run following command.

sudo gedit /etc/init.d/lampp

Use following code in file & save and close the file.

#!/bin/bash
/opt/lampp/lampp start

Now run following command to make this script executable.

sudo chmod +x /etc/init.d/lampp

In Last run following command to install init scripts to all runlevel.

sudo update-rc.d lampp defaults

Restart the system for confirmation, lampp would be start automatically & you can check it by running http://localhost in your browser.

Advertisements

One thought on “How to start LAMPP automatically in Ubuntu?

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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