Stop Apache and MySQL from automatically starting up in Ubuntu

1055655 pts.
Tags:
Apache
MySQL
Ubuntu
For Ubuntu, I don't need Apache and MySQL to run automatically when I startup. When I boot up, they automatically startup. How can I stop this from happening?:

Answer Wiki

Thanks. We'll let you know when a new response is added.

sudo update-rc.d -f apache2 remove
sudo update-rc.d -f mysql remove

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • clark445kent
    Hi,

    Use rcconf to enable/disable a service to auto run on boot.

    sudo apt-get install rcconf

    Now, type sudo rcconf

    After that, you will see a list of services that are installed on your Ubuntu machine. The services marked with star auto run during boot process. To disable Apache, MySql just follow to it using the arrow and space bar. After that, navigate to OK button using Tab key and again press Space to save the configuration.

    I hope it will be helpful for you.

    Thanks & Regards
    Clark Kent
    8,235 pointsBadges:
    report
  • Subhendu Sen

    In most Debian based distros such as Ubuntu Rcconf comes pre-installed. If it is not there, you can install the same. Now open terminal, and type the command as,

    sudo rcconf

    After pressing enter key, a list of services (that are running now) are shown. Observe that, those marked with star are auto run during boot process. Now as per your concern, to disable Apache / Mysql, please navigate to it using arrows and press space bar. Then navigate to OK button using Tab key and again press space bar to save configuration.

    96,890 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: