Skip to content

Instantly share code, notes, and snippets.

@lamngockhuong
Last active December 30, 2017 16:30
Show Gist options
  • Select an option

  • Save lamngockhuong/8620f63f84e424a56becf5771ae2e573 to your computer and use it in GitHub Desktop.

Select an option

Save lamngockhuong/8620f63f84e424a56becf5771ae2e573 to your computer and use it in GitHub Desktop.
[LAMP control on linux] #linux #lamp #apache #mysql #terminal #ubuntu

LAMPP NOTE

Apache

Start apache

sudo systemctl start apache2 or sudo service apache2 start or sudo /etc/init.d/apache2 start

Restart apache

sudo systemctl restart apache2 or sudo service apache2 restart or sudo /etc/init.d/apache2 restart

Stop apache

sudo systemctl stop apache2 or sudo service apache2 stop or sudo /etc/init.d/apache2 stop

Disable apache (no auto start)

sudo systemctl disable apache2

MySQL

Start MySQL

sudo systemctl start mysql or sudo service mysql start or sudo /etc/init.d/mysql start

Restart apache

sudo systemctl restart mysql or sudo service mysql restart or sudo /etc/init.d/mysql restart

Stop MySQL

sudo systemctl stop mysql or sudo service mysql stop or sudo /etc/init.d/mysql stop

Disable MySQL (no auto start)

sudo systemctl disable mysql



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment