Create Virtual Host that can be access locally for wordpress development. Create Directory sudo mkdir /var/www/wordpress.local Create test html file sudo nano /var/www/wordpress.local/index.html Add code to test fie <html> <head><title>wordpress.local</title></head> <body>wordpress.local</body> </html> Apache comes with a default virtaul host file call 000-default.conf. We will use that as a template. sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/wordpress.local.conf Open virtual […]Continue Reading
ArchivesCategory: wordpress
02FebSchedule mysql backup using cron
![](http://www.alienfactory.com/wp-content/themes/alienfactory/core/thumb.php?src=/wp-content/uploads/2020/02/Backup580.png&w=640&h=240&zc=1&q=90)
Create file in home directory called .mylogin.cnf add the following [client] user = username password = password set permissions to chmod 600 /home/alienfactory/.mylogin.cnf Cron all DB 0 1 * * * /usr/bin/mysqldump –defaults-extra-file=/home/alienfactory/.mylogin.cnf -u username –single-transaction –quick –lock-tables=false –all-databases > full-backup-$(date +\%F).sql Cron Specific DB 0 1 * * * /usr/bin/mysqldump –defaults-extra-file=/home/alienfactory/.mylogin.cnf -u app_user –single-transaction […]Continue Reading