# 0. Check if the old Apache folder even exists
ls -la /Library/WebServer/Documents 2>/dev/null || echo “Directory does NOT exist — Apache probably not installed”
# 1. Still go to your project folder
cd ~/frequency_lab
# 2. (optional but recommended) Use a virtual environment instead of –break-system-packages python3 -m venv .venv
source .venv/bin/activate
pip install reportlab qrcode[pil]
# 3. Now paste/run your full correction block (the big cat << ‘EOF’ thing) # … paste it here and press enter …
# 4. After it finishes, check what actually got created
ls -la ~/frequency_lab
ls -la ~/frequency_lab/Viral_Frequency_Tutorials 2>/dev/null
# 5. Test the most important file
python3 -c “import qrcode; print(‘qrcode imported OK’)”
python3 -c “from reportlab.pdfgen import canvas; print(‘reportlab OK’)”
# 6. If Apache is NOT running → quick alternative with Python’s built-in server # (recommended for testing / local-only sharing)
cd ~/frequency_lab
python3 -m http.server 8000