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
2
Q
What is a ppa and how do you install it
A
Personal Package Archive - used for installation of specific packages
3
Q
How to install nginx
A
- add-apt-repository ppa:nginx/stable
- apt-get update (to update the new repository)
- apt-get install nginx
4
Q
How to check if nginx is active
A
netstat -tupln
Checks for open ports