Author: sepedatua

Hey, I'm SepedaTua — a self-taught programmer and sysadmin in my early 40s, running CrushEdge to share the fixes I wish I'd found faster. I spend my days wrestling WordPress, WooCommerce, Linux servers, PHP, Python, and whatever else small-business sites throw at me. After years of trial-and-error (and way too many late-night server crashes), I document the solutions that actually work — safely, with backups first, and no unnecessary fluff. Outside the terminal, I'm a dad to four awesome kids, married to my best friend, and still squeezing in some video games when the house quiets down. If you're stuck on a problem, grab a coffee and let's sort it out together.
Hey, I'm SepedaTua — a self-taught programmer and sysadmin in my early 40s, running CrushEdge to share the fixes I wish I'd found faster. I spend my days wrestling WordPress, WooCommerce, Linux servers, PHP, Python, and whatever else small-business sites throw at me. After years of trial-and-error (and way too many late-night server crashes), I document the solutions that actually work — safely, with backups first, and no unnecessary fluff. Outside the terminal, I'm a dad to four awesome kids, married to my best friend, and still squeezing in some video games when the house quiets down. If you're stuck on a problem, grab a coffee and let's sort it out together.

How to: Convert MySQL Hierarchical Data Flat List Result to Multi-Dimensional PHP Array

Recently, for a fun stuff, I came across a need of an infinite level of categories. I stumbled uponGijs Van Tulder‘s article of “Storing Hierarchical Data in a Database” at SitePoint. Based of Van Tulder article I’m experimenting on my localhost. Below is the contents of my ‘categories’ table:+—–+——-+——–+———-+——+——+ | id | title | parent | parentid | lft |…

Read More »

How to fix: Squid cache_dir (13) Permission denied

I was configuring a newly installed Squid cache on newly installed CentOS 5.2 to use a new partition for it’s cache dir. Squid version: [root@localhost ~]# squid -v Squid Cache: Version 2.6.STABLE6 configure options: ‘–build=i686-redhat-linux-gnu’ ‘–host=i686-redhat-linux-gnu’ ‘–target=i386-redhat-linux-gnu’ ‘–program-prefix=’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib’ ‘–libexecdir=/usr/libexec’ ‘–sharedstatedir=/usr/com’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–exec_prefix=/usr’ ‘–bindir=/usr/sbin’ ‘–libexecdir=/usr/lib/squid’ ‘–localstatedir=/var’ ‘–datadir=/usr/share’ ‘–sysconfdir=/etc/squid’ ‘–enable-epoll’ ‘–enable-snmp’ ‘–enable-removal-policies=heap,lru’ ‘–enable-storeio=aufs,coss,diskd,null,ufs’ ‘–enable-ssl’…

Read More »

iptables vs ufw: How They Work Together on Ubuntu

Before and After: Fighting the Firewall Beast Before: you SSH into your Ubuntu server, start reading about iptables, get hit with words like chains and policies, and five minutes later you’re staring at a command that might lock you out of your own box. After: you use ufw with a few simple commands, knowing it’s just talking to iptables for…

Read More »