This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # These tasks need to be added to your cron job | |
| # crontab -e | |
| # will bring up the editor. Replace your php and file path in the code below | |
| * * * * * /usr/bin/php /var/www/example.com/htdocs/bin/console mautic:campaigns:trigger >/dev/null 2>&1 | |
| 0 * * * * /usr/bin/php /var/www/example.com/htdocs/bin/console mautic:segments:update >/dev/null 2>&1 | |
| 0 * * * * /usr/bin/php /var/www/example.com/htdocs/bin/console mautic:campaigns:update >/dev/null 2>&1 | |
| 0 * * * * /usr/bin/php /var/www/example.com/htdocs/bin/console mautic:leadlists:update >/dev/null 2>&1 | |
| 0 0 * * * /usr/bin/php /var/www/example.com/htdocs/bin/console mautic:cleanup >/dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Potentially (Hopefully!) block the .*.ico malware that keeps infecting everything | |
| ## Those files contain malicious PHP that injects all sorts of garbage all around the server | |
| ## To see if you have any .ico files run this command: find / -name ".*.ico" -print | |
| ## This command will search the full server | |
| ## The files will be hidden and look something like .u834R9u4.ico | |
| ## Ultimately these will create random themes and/or plugins in your site folders that send spam | |
| ## This is easy to remove (just delete) but it's a PITA as they just keep coming back within days | |
| ## If you'd like to bulk delete them all, run this command: find /var/www -name ".*.ico" -print0 | xargs -0 rm | |
| ## This command will search only the /var/www folder and sub-folder |
OlderNewer