How to stop apache2, mysql from starting automatically as computer starts?

1

I recently upgraded to 18 (Cinnamon). While on 17.3, I setup LAMP so I could work on wordpress sites. But after setting it up, apache2 and mysql start up on boot. This isn't necessary, given that I'm only sometimes working on these sites. Now that I'm on 18, I'm finally getting around to disabling these services (so they don't start on boot).

In 17.x, it's my understanding that

would disable apache2 from running on boot (note that I never tried this when I had 17.3). And on 18, the command should be

But this doesn't work:


Code: Select all

sudo systemctl disable apache2 apache2.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install disable apache2 insserv: warning: current start runlevel(s) (empty) of script `apache2' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `apache2' overrides LSB defaults (0 1 6). initctl: Unable to connect...
0 0
2

We can start MySQL service from windows command line using the below command.

net start mysql

Command to stop MySql service:

net stop mysql

Disable MySql service:

sc config mysql start= disabled

Command to enable MySql service(to automatically start MySQL service when the system starts up):

sc config mysql start= auto

Command to set the startup type to manual:

sc config mysql start= manual

How to restart MySql service?
There is no direct command to restart a service. You can combine stop and start commands like below.

net stop mysql & net start mysql

Related Posts:

How to connect to MySQL server from windows command line
How to install Mysql in Windows...

0 0
3

I read about tools like Nagios, but I guess that’s a bit overkill for my situation.

Does anybody know how I can get started?

Easy. Look into setting up monitoring configurations with Monit. It’s a lightweight and easy to setup system monitoring tool that is very useful to setup in scenarios exactly as you describe; service goes down, restart it and alert me about it.

I’ve mainly use it for Apache web servers, but there are lots of examples of what can be done for other programs/software such as MySQL and such.

Setting up Monit.

The way I set it up is line this. First, install the Monit program itself like this:

sudo apt-get install monit

Once installed, then edit the config here; I prefer to use nano but feel free to use whatever text editor you prefer:

sudo nano /etc/monit/monitrc

Adjust the default daemon values to check services every 60 seconds with a start delay of 120:

set daemon 60 with start delay 60

Then find the...

0 0
4

We often need to start, stop or restart apache web server on Linux system such as Debian and Ubuntu.

This post uses examples to show how to Start, Restart, or Stop apache web server by using service, systemctl or apache2ctl commands.

This method works in most Linux distributions including Debian and Ubuntu.

To start Apache 2, run:
$ sudo service apache2 start

To restart Apache 2, run:
$ sudo service apache2 restart

To stop Apache 2, run:
$ sudo service apache2 stop

To gracefully reload Apache 2, run:
$ sudo service apache2 reload

systemctl command

We need to use systemctl to start Apache 2 on Ubuntu Linux LTS 16.04 LTS or the latest system based Ubuntu Linux.

Start apache command:
$ sudo systemctl start apache2.service

stop apache command :
$ sudo systemctl stop apache2.service

restart apache command:
$ sudo systemctl restart...

0 0
5

How can i make mysql start every time the system boot ? I need that in a dedicated server(ubuntu distro) in which i have my blog, but every time the server goes down, on booting mysql is stopped. Btw i can use only command line.

how to open automatically MYSQL on start up of computer? or is there a downloadable software for it?

I’m using xampp to start my mysql server but i want to start it automatically on start up of my computer. Is there anyway i could make my Xampp (MYSQL) opens automatically on start up?

How to start Apache and MySQL Automatically when Windows 8 comes up

I am using version 3.2.1 of Xampp; I just installed it on Windows 8; and every time I need to go to Xampp Control Panel to start services(MySQL,Apache,…); in windows 7 it starts automatically when w

How to start automatically an application when Google glass start?

I would like to know how to start automatically a specific Glassware once my glasses are turned on ?...

0 0
6
The main problem would be all that lampp stuff in /opt/ It does not take advantage of either the package manager or the process management tools. The latter is biting you right now the former will bite you when a security patch is needed. LAMPP installs things in non-standard places and in some cases even adds redunant, conflicting pieces. It might be ok on a Windows system, where installation is hard, but it is one of the most difficult ways possile to deal with MySQL or Apache on Ubuntu.

My recommendation would be to step back and remove LAMPP and install using the Linux method:

Code:

sudo apt-get update sudo apt-get install lamp-server^Mind the caret (^) it is part of the meta-package name.

That will get you Apache2, MySQL, and PHP. Working versions of Perl and Python are already installed on your system. Using that method then allows you to stay up to date automatically, including security updates, rather than having to fight manually with the system. It also...

0 0
7

We need to restart our Apache2 web server when we want to load new configurations from the configuration files. Restarting the web server to load configuration files is necessary as these configuration files are only read each time when the web server is in the process starting.

Note that the Apache web server does not need to be restarted on every configuration change; sometimes a simple reload will do. In any case, restarting won't hurt.

How to Restart Apache2 on Ubuntu?

To restart Apache2 on Ubuntu, we enter the following command in a terminal such as bash:

/etc/init.d/apache2 restart

Of course, you most likely will need to be the superuser to do that so you might need to enter the following command and then your password when requested:

sudo /etc/init.d/apache2 restart

Restarting Apache2 fails - What to do next...

If the web server fails to restart you will be notified when you run the above command. The best thing to do is undo any...

0 0
8

This section discusses methods for starting and stopping the MySQL server.

Generally, you start the mysqld server in one of these ways:

Invoke mysqld directly. This works on any platform.

On Windows, you can set up a MySQL service that runs automatically when Windows starts. See Section 2.10.4.7, “Starting MySQL as a Windows Service”.

On Unix and Unix-like systems, you can invoke mysqld_safe, which tries to determine the proper options for mysqld and then runs it with those options. See Section 4.3.2, “mysqld_safe — MySQL Server Startup Script”.

On systems that use System V-style run directories (that is, /etc/init.d and run-level specific directories), invoke mysql.server. This script is used primarily at system startup and shutdown. It usually is installed under the name mysql. The mysql.server script starts the server by invoking mysqld_safe. See ...

0 0
9

Description

Ghost is a modern blog platform that makes publishing beautiful content to all platforms easy and fun. Built on Node.js, it comes with a simple markdown editor with preview, theming, and SEO built in.

First steps with the Bitnami Ghost Stack

Welcome to your new Bitnami application running on Amazon Web Services! Here are a few questions (and answers!) you might need when first starting with your application.

What credentials do I need?

You need two sets of credentials:

The application credentials that allow you to log in to your new Bitnami application. These credentials consist of a username and password. The server credentials that allow you to log in to your AWS Cloud server using an SSH client and execute commands on the server using the command line. These credentials consist of an SSH username and key.

Watch the following video to learn quickly how to obtain the application credentials of those applications deployed...

0 0
10

This article was written in 2009 and remains one of our most popular posts. If you’re keen to learn more about PHP, you may find this recent article on CakePHP of great interest.

In this book, I’ll guide you as you take your first steps beyond the static world of building web pages with pure HTML. Together, we’ll explore the world of database driven web sites and discover the dizzying array of dynamic tools, concepts, and possibilities that they open up. Whatever you do, don’t look down!

Okay, maybe you should look down. After all, that’s where the rest of this book is. But remember, you were warned!

Before you build your first dynamic website, you must gather together the tools you’ll need for the job. In this chapter, I’ll show you how to download and set up the two software packages you’ll need. Can you guess what they are? I’ll give you a hint: their names feature prominently on the cover of this book! They are, of course, PHP and MySQL.

If you’re...

0 0
11

Protein Prospector Server Administration

This document provides instructions for Protein Prospector administrative tasks on both LINUX and Microsoft Windows platforms.

Most of Protein Prospector's configuration files are in the directory. The files are all text files and must be edited with a text editor. Suitable programs are Notepad on a Windows platform or vi/emacs on a LINUX platform. You should not use a Word processor to edit the files.

A list of all the parameter files is shown below with a link to the relevant manual section.

Configuration files required by all versions of Protein Prospector:

Configuration files used by Batch-Tag/Search Compare:

One other file that you may need to modify is

Obtain FASTA formatted sequence database files for the seqdb directory (specified in the main configuration file):

Locations to download FASTA formatted database files via ftp:





...
0 0
12

Description

Magento is a powerful open source e-Commerce platform. Its rich feature set includes loyalty programs, product categorization, shopper filtering, promotion rules, and much more.

First steps with the Bitnami Magento Stack

Welcome to your new Bitnami application! This guide includes some basic information you will need to get started with your application.

How to import a Bitnami Virtual Machine?

Check the following instructions to import a Bitnami Virtual Machine:

Importing a Bitnami Virtual Machine in VirtualBox Select the "File -> Import Appliance" menu option and select the .ova file downloaded from the Bitnami website. Then click "Continue". Once it is imported, click the "Start" button in the VirtualBox toolbar.

For a detailed walkthrough, check our Virtualbox tutorial.

Importing a Bitnami Virtual Machine in a VMware product Select the "File -> Import" menu option and select the .ova file downloaded from the...
0 0
13

Recently decided to install a working Apache 2.4 / PHP 5.4.9 and MySQL 5.5 running locally on my Windows 7 laptop for web design, not using XAMPP or WAMP installation methods. Which are great but this round I wanted to match my Linux server.

Apache 2.4 Install

First download Apache 2.4 from http://www.apachelounge.com/download/ (httpd-2.4.1-win32.zip) Apache 2.4.1
with IPv6 apr-1.4.6 apr-util-1.4.1 apr-iconv-1.2.1 pcre-8.21 lua-5.1 libxml2-2.7.8 openssl-1.0.0g zlib-1.2.6. This release is supported by the PHP 5.4 install from windows.php.net for Apache 2.4.

Extract the zip and copy it to the root of C:\. This will be C:\Apache24 when it is all done.

Update 01-17-2013: The version of the php5apache2_4.dll must match the version of PHP you are installing. The link that was reference before has been changed and moved to http://www.apachelounge.com/download/additional/ for versions 5.4.9 and earlier. As of PHP 5.4.10 the module is now included in the...

0 0
14

This is the complete guide to installing, configuring, and troubleshooting weeWX.

WeeWX is software, written in Python, that interacts with a weather station to produce plots, reports, and HTML pages. It can optionally upload the reports to a remote Web server as well as publish to weather services such as WeatherUnderground, CWOP, or PWSweather.com.

Initial development began in the winter of 2008-2009, with the first release in 2009.

The source code is hosted on GitHub, while downloads are available at weewx.com/downloads.

WeeWX is about 13,000 lines of code, plus another 13,000 for the drivers for all the types of supported hardware.

Station hardware

WeeWX includes support for many types of weather stations. In addition to hardware support, weeWX comes with a software simulator, useful for testing and evaluation.

The driver...

0 0
15

This document explains how to install, configure and run Apache 2.4 under Microsoft Windows. If you have questions after reviewing the documentation (and any event and error logs), you should consult the peer-supported users' mailing list.

This document assumes that you are installing a binary distribution of Apache. If you want to compile Apache yourself (possibly to help with development or tracking down bugs), see Compiling Apache for Microsoft Windows.

See also

The primary Windows platform for running Apache 2.4 is Windows 2000 or later. Always obtain and install the current service pack to avoid operating system bugs.

Apache HTTP Server versions later than 2.2 will not run on any operating system earlier than Windows 2000.

The Apache HTTP Server Project itself does not provide binary releases of software, only source code. Individual committers may provide binary packages as a convenience, but it is not a release...

0 0
16
BackupPC Documentation

This documentation describes BackupPC version 3.3.2, released on 25 Jan 2017.

Overview

BackupPC is a high-performance, enterprise-grade system for backing up Unix, Linux, WinXX, and MacOSX PCs, desktops and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain.

Given the ever decreasing cost of disks and raid systems, it is now practical and cost effective to backup a large number of machines onto a server's local disk or network storage. For some sites this might be the complete backup solution. For other sites additional permanent archives could be created by periodically backing up the server to tape.

Features include:

A clever pooling scheme minimizes disk storage and disk I/O. Identical files across multiple backups of the same or different PC are stored only once (using hard links), resulting in substantial savings in disk storage and disk writes.

Optional compression...

0 0