How to start LAMPP automatically in Ubuntu?

Sharing is caring!

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.

[code]sudo gedit /etc/init.d/lampp[/code]

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

[code]
#!/bin/bash
/opt/lampp/lampp start
[/code]

Now run following command to make this script executable.

[code]
sudo chmod +x /etc/init.d/lampp
[/code]

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

[code]
sudo update-rc.d lampp defaults
[/code]

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Got Project on mind? Let's ConnectContact Us

Secured By miniOrange