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!

Advertisements

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

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s