A Simple Operation Guide to Ubuntu VPS on MySQL, Apache, PHP – VPS Tutorial

By | August 7, 2019

In this tutorial, we will introduce some useful operations on mysql, apache on ubuntu vps, you can follow our steps to save your some time to manage your vps.

ubuntu vps tutorials and examples

File Operations

delete files and directories

  1. rm -rf
rm -rf

MySQL Operations

install mysql

  1. apt-get install mysql-server
apt-get install mysql-server

start mysql

  1. service mysql start
service mysql start

stop mysql

  1. service mysql stop
service mysql stop

restart mysql

  1. service mysql restart
service mysql restart

Apache Operations

install apache sever

  1. apt-get install apache2
apt-get install apache2

open apache rewrite functionality, which allow you to use .htaccess file

  1. a2enmod rewrite
a2enmod rewrite

restart apache

  1. service apache2 restart
service apache2 restart

PHP operations

install php

  1. apt-get install libapache2-mod-php5 php5-gd php5-mysql php5-curl php5-mcrypt php5-common php-apcphp5enmod mcrypt
apt-get install libapache2-mod-php5 php5-gd php5-mysql php5-curl php5-mcrypt php5-common php-apcphp5enmod mcrypt

Leave a Reply