I setup a LAMP server on my desktop Ubuntu install for testing web applications. How do I set it to only run when I tell it to rather than at startup? It is not used as a production web server but instead for testing PHP scripts I write before pushing them to my public web server.
Asked
Active
Viewed 9.0k times
4 Answers
17
Remove from start up:
sudo update-rc.d apache2 remove
sudo update-rc.d mysql remove
Start at will:
sudo service mysql start
sudo service apache2 start
Marco Ceppi
- 48,827
wojox
- 11,840
13
This will start Apache, MySql and ProFTPD.
Just write this in terminal:
sudo /opt/lampp/lampp start
Eliah Kagan
- 119,640
Md Sifatul Islam
- 231
0
To start the server:
sudo /opt/lampp/lampp start
To restart the server:
sudo /opt/lampp/lampp restart
To stop the server:
sudo /opt/lampp/lampp stop
Eliah Kagan
- 119,640
0
If that doesn't work, try removing them forcefully.
sudo update-rc.d -f apache2 remove
sudo update-rc.d -f mysql remove
Alaa Ali
- 32,213