Locking down apache / PHP / MySQL

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
iain_33
Level 2
Level 2
Posts: 70
Joined: Sat Dec 22, 2018 11:29 am
Location: UK

Locking down apache / PHP / MySQL

Post by iain_33 » Sat May 25, 2019 1:29 pm

I've installed apache2, PHP, MySQL and phpmyadmin on Mint 19.1, for localhost use only, and between my complete ignorance of network settings and paranoia :lol: , I'm trying to find as many settings as I can to lock it down.

I've enabled ufw - are the defaults sufficient?

I've edited /etc/apache2/apache2.conf, and in the <Directory> entries, changed Require all granted to Require ip 127.0.0.1

I've checked /etc/mysql/mysql.conf.d/mysql.cnf and it contains bind-address = 127.0.0.1 as per this page - it also suggests blocking port 3306, how do I do that?

Anything else I should do?
Linux Mint 19.1 MATE (64 bit) on a HP G70 laptop (circa 2008)
Intel Pentium Dual Core T3400 @ 2.16GHz -- 3GB RAM -- 1TB HDD
Intel Mobile 4 Series graphics -- Intel 82801I audio
Atheros AR242x/AR542x wireless network adapter

Post Reply

Return to “Software & Applications”