Debian LAMP Stretch: Difference between revisions
From Braindisconnect
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Linux]] | [[Category:Linux]] | ||
=Debian 9 Stretch LAMP = | =Debian 9 Stretch LAMP = | ||
Install Debian with SSH server. | Install Debian with SSH server. | ||
I usually do a headless server and during the "Software Selection" I only choose SSH Server and Standard System utilities. | |||
apt update && apt -y upgrade && apt install -y net-tools | apt update && apt -y upgrade && apt install -y net-tools | ||
Get IP address with ifconfig | Get IP address with ifconfig | ||
ifconfig | ifconfig | ||
su to root | ssh to machine as the user you created during install and su to root | ||
su - | su - | ||
Line 19: | Line 20: | ||
== Install LAMP plus utilities == | == Install LAMP plus utilities == | ||
apt install -y git curl htop iftop open-vm-tools apache2 apache2-utils mariadb-server mariadb-client php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline | apt install -y git curl htop iftop open-vm-tools webmin apache2 apache2-utils mariadb-server mariadb-client php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-curl php7.0-xml php7.0-gd sudo | ||
Reboot the server | Reboot the server | ||
Line 25: | Line 26: | ||
== Secure the DB == | == Secure the DB == | ||
mysql_secure_installation | mysql_secure_installation | ||
You want to set the root user password and then just hit return for everything else. | |||
== CLI Prompt == | == CLI Prompt == | ||
Follow the [[Debian CLI Prompt]] guide. | Follow the [[Debian CLI Prompt]] guide. | ||
== SUDO == | |||
Add the user to sudoers | |||
usermod -aG sudo user |
Latest revision as of 16:03, 27 March 2019
Debian 9 Stretch LAMP
Install Debian with SSH server. I usually do a headless server and during the "Software Selection" I only choose SSH Server and Standard System utilities.
apt update && apt -y upgrade && apt install -y net-tools
Get IP address with ifconfig
ifconfig
ssh to machine as the user you created during install and su to root
su -
Prep for Webmin
echo "deb https://download.webmin.com/download/repository sarge contrib " > /etc/apt/sources.list.d/webmin.list wget http://www.webmin.com/jcameron-key.asc && apt-key add jcameron-key.asc apt-get install apt-transport-https && apt update && apt upgrade
Install LAMP plus utilities
apt install -y git curl htop iftop open-vm-tools webmin apache2 apache2-utils mariadb-server mariadb-client php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-curl php7.0-xml php7.0-gd sudo
Reboot the server
Secure the DB
mysql_secure_installation
You want to set the root user password and then just hit return for everything else.
CLI Prompt
Follow the Debian CLI Prompt guide.
SUDO
Add the user to sudoers
usermod -aG sudo user