ArchivesCategory: wordpress


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


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