recovery:ubuntu24
Table of Contents
Ubuntu 24 Server Recovery
Full rebuild procedure for Amiga-Z server.
If the server dies, follow this document exactly.
1. Fresh OS Install
Install:
- Ubuntu Server 24
- Enable OpenSSH during install
After login:
sudo apt update && sudo apt upgrade -y sudo apt install -y nginx php8.3-fpm php8.3-cli php8.3-common php8.3-curl php8.3-gd php8.3-mbstring php8.3-xml php8.3-zip php8.3-intl php8.3-sqlite3 unzip curl git
Enable services:
sudo systemctl enable nginx sudo systemctl enable php8.3-fpm
2. Restore Website Files
Create directory:
sudo mkdir -p /var/www/html
Restore backup:
tar -xzf amigaz-site-backup.tar.gz -C /var/www/html
Fix permissions:
sudo chown -R www-data:www-data /var/www/html
3. Restore nginx Config
Restore from backup:
/etc/nginx/sites-available/
Test:
sudo nginx -t sudo systemctl reload nginx
4. Verify PHP Modules
php -m | grep sqlite php -i | grep "PDO drivers"
Expected:
PDO drivers => sqlite
If missing:
sudo apt install php8.3-sqlite3 sudo systemctl restart php8.3-fpm
5. Restore SSL (if used)
If using certbot:
sudo apt install certbot python3-certbot-nginx sudo certbot --nginx
6. Validate Services
systemctl status nginx systemctl status php8.3-fpm df -h
Open browser:
- Test main site
- Test wiki search
- Test plugin pages
Emergency Debug Commands
journalctl -xe tail -n 50 /var/log/nginx/error.log tail -n 50 /var/www/html/amigaz/wiki/data/log/error.log
Post-Recovery Checklist
- Confirm wiki search works
- Confirm tagging plugin works
- Confirm backups resume
- Confirm firewall active
- Confirm SSL valid
Final Rule
If you fixed something painful:
โ Document it immediately.
recovery/ubuntu24.txt ยท Last modified: by freedomotter
