Tag: linux

  • Renewing (an expired?) Let’s Encrypt SSL certificate with Easy Engine

    The routine is expected to be as follows: [crayon-656ea89a3720d094839559/] Right? Well, yes, if your environment is up-to-date.  Result of the last command should be like: Renewing SSl cert for https://re-wp.com Reload : nginx [OK] SUCCESS: Certificate was successfully renewed For https://re-wp.com Your cert will expire within 89 days. Expiration DATE: Tue Sep 12 08:23:00 UTC […]

  • Recursively replacing or removing a string from text files in a directory

    I had a client with 3 WordPress sites hacked, having injected a dirty ad redirect in every possible javascript file of these sites. Around 1500 files were infected with one and the same script, so the best solution for curing them would be to remove that specific line that was causing all the trouble. Following set of […]

  • Scanning and cleaning a Linux machine (server or desktop) with ClamAV antivirus

    Resources on WordPress Scanning and cleaning a Linux machine (server or desktop) with ClamAV antivirus

    A client of mine got some infected emails in their mail server, leading to infected Thunderbird on Windows, crashing the whole operating system. In order to clean up the mess, I had to scan the mail server and remove the emails that were spreading the virus. ClamAV turns out to be a pretty good option for […]

  • Gifcast – easy GIF screencasting for Linux

    I recently needed to record my screen and output it to a .gif file. I know it’s a weird thing to do – compared to webm video for example, gifs are way bigger in size, way lower quality and don’t have sound. So.. why? Well, mostly because in most cases GIFs are treated as images(because […]

  • Monitoring slow queries in MySQL

    Resources on WordPress Monitoring slow queries in MySQL

    If you are in doubt that some really slow queries are taking place on your server and they put you on too much load, then use this change in the configuration file to enable logging of slow queries: The config files usually is /etc/mysql/my.cnf. Uncomment these: slow-query-log = 1 slow-query-log-file = /var/log/mysql/mysql-slow.log long_query_time = 1 […]

  • HTTP error on video files upload

    Error happens after the whole file is uploaded (we lifted the post-size and file upload limits). Solution that helped me: nano /etc/apache2/mods-available/fcgid.conf add this: FcgidMaxRequestLen 1073741824 or edit MaxRequestLen to a higher value. Then restart: service apache2 restart