Servers
Everything I’ve written on Servers, newest first.
From the archive
Notes from my old blog on mohamedsharaf.net (2010–2018), rewritten and checked. Some are dated; the dates tell you how much.
- Servers · 25 December 2018
Run a Laravel app on cPanel by linking public_html
Serve a Laravel project on shared cPanel hosting without exposing the whole app folder.
- Servers · 19 December 2018
How old is that server disk? Check its power-on hours
Read a drive’s real age from its SMART data with smartctl, and turn the hours into days.
- Servers · 3 August 2018
Keep iptables rules after a reboot on CentOS
Why your firewall rules disappear after a restart on CentOS, and the settings that keep them.
- Servers · 14 January 2016
Restore many cPanel backups in one go
A small loop that restores every cPanel account backup in a folder, one after another.
- Servers · 3 January 2016
A few cPanel commands I keep using over SSH
Install cPanel, back up one account, and force a full backup run, straight from the command line.
- Servers · 15 November 2014
Installing cPanel on a Xen virtual machine from a local ISO
Notes from building cPanel servers as Xen VMs from an ISO stored on the host, and what changed since.
- Servers · 9 March 2011
Copy an EasyApache profile to another cPanel server
How to reuse the same Apache/PHP build on several cPanel servers instead of clicking through it again.
- Servers · 5 March 2011
Wildcard subdomains on a cPanel server
Make anything.yourdomain.com reach your site, so your app can decide what each subdomain shows.
- Servers · 4 March 2011
Delete a whole directory over SSH
The one-line command to remove a folder and everything inside it on Linux, and the care it deserves.
- Servers · 1 November 2010
Connecting two Windows Server 2003 domains
Two domain controllers, two separate domains: the two realistic ways to bring them together.