Installing MySQL And PHP Flashcards

1
Q

Command to install MySQL and PHP

A

$sudo pat-get install MySQL-server php7.0 (or current version)-MySQL php7.0-from monit

An error occurred during install of php due to incorrect version, fixed with correct version:
To find current version, do:
apt-cache search | grep php

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a ppa and how do you install it

A

Personal Package Archive - used for installation of specific packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to install nginx

A
  1. add-apt-repository ppa:nginx/stable
  2. apt-get update (to update the new repository)
  3. apt-get install nginx
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to check if nginx is active

A

netstat -tupln

Checks for open ports

How well did you know this?
1
Not at all
2
3
4
5
Perfectly