Life of a Server Admin

Where I go for Geek

  • .htaccess
  • Amazon
  • Apache
  • cPanel
  • Hubspot
  • MySQL
  • Networking
  • Mac/OSX
  • Unix / Linux
  • WordPress
  • Update Ubuntu on DigitalOcean via Command Line

    Update Ubuntu on DigitalOcean via Command Line

    November 13, 2023

    //

    unix / linux

    //

    Command Line, Digital Ocean, Server Maintenance, Ubuntu

    As an experienced web developer, regularly updating Ubuntu on your DigitalOcean Droplet is crucial for maintaining a secure and efficient environment. This guide provides a straightforward method using the command line, combining commands for efficiency and offering solutions for common upgrade issues.

    Read more

  • Secure WordPress File Permissions: A Developer’s Guide to Hardening Your Site

    Secure WordPress File Permissions: A Developer’s Guide to Hardening Your Site

    November 7, 2023

    //

    unix / linux, WordPress

    //

    File Permissions, Site Hardening, WordPress Best Practices, WordPress Security

    Learn how to secure your WordPress site with optimal file permissions. Our comprehensive guide for developers delves into the practices that safeguard your website, ensuring that flexibility doesn’t compromise security.

    Read more

  • Tracking HubSpot forms with Google Tag Manager

    Tracking HubSpot forms with Google Tag Manager

    October 31, 2023

    //

    Hubspot

    //

    Form Submission, Google Analytics, Google Tag Manager, HubSpot, WordPress

    Learn how to effectively track HubSpot form submissions with Google Tag Manager and Google Analytics. This comprehensive guide provides step-by-step instructions for web developers to enhance their website’s form submission tracking. Discover how to create custom HTML tags, set up triggers, and configure tags to send data to Google Analytics. Additionally, learn how to create…

    Read more

  • How to Track Marketo Forms in Google Analytics Using Google Tag Manager

    April 23, 2019

    //

    Marketo

    //

    Source: https://chrisgoddard.blog/2018/02/03/how-to-track-marketo-forms-in-google-analytics-using-google-tag-manager/

    Read more

  • Location of Clam AV Configuration file

    September 6, 2016

    //

    unix / linux

    //

    /etc/cron.daily/clamscan

    Read more

  • Location of Google PageSpeed Module on CentOS

    August 7, 2016

    //

    unix / linux

    //

    /usr/local/apache/conf/pagespeed.conf

    Read more

  • Check all PHP files in your site that have been modified in the last 30 days

    April 30, 2016

    //

    unix / linux

    //

    This will check all PHP files in your site that have been modified in the last 30 days. Just be sure to replace /path/to/your-site with the actual path to your site as you probably can imagine. You can also change php to a different file extension to search more thoroughly. find /path/to/your-site -type f -name…

    Read more

  • Find backup folders

    April 17, 2016

    //

    unix / linux

    //

    find /home/ -type d -name “*_bak” -ls > /home/bakfolders.txt

    Read more

  • Find large files and folders on server

    December 4, 2015

    //

    unix / linux

    //

    du -h –exclude virtfs /| grep ^[0-9.]*G | sort -nr > /home/diskspace.txt

    Read more

  • Find hacked WordPress files

    November 25, 2015

    //

    WordPress

    //

    Go to the root of the folder that WordPress is installed in and run the following command: find . -name “*.php” -print0 | xargs -0 egrep -l ‘if\(!isset\(\$GLOBALS’ >> infectedfiles.txt Then run the next command to view the output of the file: cat infectedfiles.txt

    Read more

  • Cisco VPN issue with OS X Mavericks – solved

    May 8, 2014

    //

    osx

    //

    If you are having an issue with the Cisco VPN client after upgrading to OS X Mavericks, here is the solution… open a terminal edit the sysctl.conf file sudo vim /etc/sysctl.conf comment out the following line. kern.ipc.maxsuckbuf=512000. Your file should look like this after you edit… # # Tuning network for broadband # # START…

    Read more

  • Rsync files and directory from local server to a remote server

    February 20, 2014

    //

    unix / linux

    //

    # rsync -avz xyz_folder/ user@xyz_server.com:/xyz_folder/

    Read more

  • How to Edit the Hosts File in Mac OS X with Terminal

    February 14, 2014

    //

    osx

    //

    Let’s get started making some edits to /etc/hosts! Launch Terminal, found in /Applications/Utilities/ or launched through Spotlight Type the following command at the prompt: sudo nano /private/etc/hosts Enter the administrator password when requested, you will not see it typed on screen as usual with the command line Once the hosts file is loaded within nano,…

    Read more

  • Quickly Disable or Enable All WordPress Plugins via the Database

    February 13, 2014

    //

    WordPress

    //

    Before beginning, make a backup copy of your database. Then, login to your database using phpMyAdmin (or whatever), and navigate to the “active_plugins” column of the “wp_options” table using the following SQL query (edit the default WordPress table prefix “wp_” if needed): SELECT * FROM wp_options WHERE option_name = ‘active_plugins’; Once the active_plugins column appears,…

    Read more

  • How to recursively count files in a linux directory?

    February 13, 2014

    //

    unix / linux

    //

    I want to count the number of files in a directory and it´s subdirectories find DIR_NAME -type f -print | wc -l The f in -type f stands for files and wc -l for word count lines. Remove the -type f to include directories in the count Source: http://stackoverflow.com/questions/9157138/how-to-recursively-count-files-in-a-linux-directory

    Read more

  • Checking Free Disk Space

    February 13, 2014

    //

    unix / linux

    //

    Both Linux and UNIX offers two commands for checking out free disk space: (a) df command : Report file system disk space usage (b) du command : Estimate file space usage df command examples – to check free disk space Type df -h or df -k to list free disk space: $ df -h OR…

    Read more

  • cPanel & WHM Admin Essentials

    February 8, 2014

    //

    cPanel

    //

    Video webinar here: http://videos.cpanel.net/cpanel-whm-admin-essentials/

    Read more

  • Log file to look for PHP errors

    February 8, 2014

    //

    cPanel

    //

    Path: /usr/local/apache/logs/error_log tail -f /usr/local/apache/logs/error_log

    Read more

  • Part 1: How I Built a cPanel Hosting Environment on Amazon AWS

    February 1, 2014

    //

    cPanel

    //

    Link: http://blog.cpanel.net/part-1-how-i-built-a-cpanel-hosting-environment-on-amazon-aws/

    Read more

  • Part 2: How I Built a cPanel Hosting Environment on Amazon AWS

    February 1, 2014

    //

    cPanel

    //

    Link: http://blog.cpanel.net/part-2-how-i-built-a-cpanel-hosting-environment-on-amazon-aws/

    Read more

  • Part 3: How I Built a cPanel Hosting Environment on Amazon AWS

    February 1, 2014

    //

    cPanel

    //

    Link: http://blog.cpanel.net/part-3-how-i-built-a-cpanel-hosting-environment-on-amazon-aws/

    Read more

  • Setting up Nameservers in a cPanel & WHM Environment

    February 1, 2014

    //

    cPanel

    //

    Link: http://etwiki.cpanel.net/twiki/pub/AllDocumentation/WHMDocs/DNSNewbieGuide.pdf

    Read more

  • How Do I Find The Largest Top 10 Files and Directories

    January 20, 2014

    //

    unix / linux

    //

    Type the following command at the shell prompt to find out top 10 largest file/directories: cd /path/to/some/where du -hsx * | sort -rh | head -10 Source: http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/

    Read more

  • Start Command In Background

    January 16, 2014

    //

    unix / linux

    //

    You can put a task (such as command or script) in a background by appending a & at the end of the command line. The & operator puts command in the background and free up your terminal. The command which runs in background is called a job. You can type other command while background command…

    Read more

  • chmod directory only or file only

    January 3, 2014

    //

    unix / linux

    //

    Chmod just directories find -type d -print0 |xargs -0 chmod 755 Chmod just files find -type f -print0 |xargs -0 chmod 644 Source: http://forums.whirlpool.net.au/archive/323231

    Read more

1 2 3
Older Posts→
  • .htaccess (3)
  • amazon (3)
  • apache (4)
  • cPanel (6)
  • Hubspot (1)
  • Marketo (1)
  • mysql (10)
  • osx (4)
  • unix / linux (32)
  • WordPress (3)
  • 2023 (3)
  • 2019 (1)
  • 2016 (4)
  • 2015 (2)
  • 2014 (15)
  • 2013 (8)
  • 2012 (3)
  • 2011 (7)
  • 2010 (7)
  • 2009 (15)
  • Update Ubuntu on DigitalOcean via Command LineNovember 13, 2023
  • Secure WordPress File Permissions: A Developer’s Guide to Hardening Your SiteNovember 7, 2023
  • Tracking HubSpot forms with Google Tag ManagerOctober 31, 2023
  • How to Track Marketo Forms in Google Analytics Using Google Tag ManagerApril 23, 2019
  • Location of Clam AV Configuration fileSeptember 6, 2016

©

2025

Life of a Server Admin

2025