Good day! Is there any checklist? Here is mine as beginner.
OS Linux:
How to secure mySQL, PHP, Apache, maybe NGINX?
Good advices and links are welcome.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks,
More a question than a contribution to the checklist, but is choosing a different port for ssh a good security measure? Something else than the default 22 ?
For MySQL security, it’s as easy as running this:
mysql_secure_installation
I’d also recommend a MySQL dump nightly, like this:
/root/scripts/mysql_backup.sh
#!/bin/bash
USER='backup_user'
PASS='PASSWORD'
### MAKE SURE TO ADD THE TRAILING SLASH ###
DIR='/path/to/backup/to/'
date=`date +"%m-%d-%Y %T"`
if [ ! -d "$DIR" ]; then
mkdir -p $DIR
fi
mysqldump -u $USER -p"$PASSWORD" --all-databases --master-data |gzip -1 > ${DIR}mysqlbackup_$date.sql.gz
#### You can then add a script to offload to S3/DropBox/e-mail if you like. ####
cron to run:
00 04 * * * /root/scripts/mysql_backup.sh
Thank you JonsJava. Some more good programs:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.