Kali Linux

Start Apache and Mysql in Kali Linux.

Apache and Mysql comes pre-installed in Kali Linux. But whenever we open localhost in our browser we got the error. It is because we have not started the apache service as it is installed but not running.

To start the Apache service in Kali linux use the following command:

sudo /etc/init.d/apache2 start

Similarly if you want to stop and restart the apache service just use the below commands:

I’m available for hire!

This is my email link: iamjagjeetubhi@gmail.com

sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart

Apache service will not be start on boot automatically. To do so we have to run the following command:

sudo update-rc.d apache2 enable

The above command will make the apache service start on boot.

Now to start and the Mysql service in Kali Linux just use the below commands:

sudo /etc/init.d/mysql start
sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql restart

Mysql service will not be start on boot automatically. To do so we have to run the following command:

sudo update-rc.d mysql enable

The above command will make the mysql service start on boot.

Thanks for Reading.

COMMENTS ARE OUR FOOD SO FEED US SAYING THANKS! IF IT HELPS!

4 thoughts on “Start Apache and Mysql in Kali Linux.”

  1. Thanks very nice post, as well as I, am looking for full-time opportunity,. Please do let me know if you could help me out in this case.

    Like

Leave a comment