Skip to content
Learn Netverks

Lesson

Step 35/36 97% through track

production-checklist

Production checklist

Last reviewed May 28, 2026 Content v20260528
Track mode
server_script
Means
Server runner
Reading
~1 min
Level
advanced

This lesson

This lesson teaches Production checklist: the syntax, APIs, and habits you need before advancing in PHP.

Teams ship Production checklist on every PHP codebase—skipping it leaves gaps in debugging and code reviews.

You will apply Production checklist in contexts like: LAMP/LEMP stacks, Laravel apps, WordPress themes/plugins, and shared hosting.

Write PHP in the editor and click Run on server—the dev runner executes your script and returns stdout/stderr (set LEARNING_RUNNER_ENABLED=true locally).

When functions, arrays, and basic OOP from intermediate lessons are familiar.

Shipping PHP means more than uploading files. Use this checklist before go-live—frameworks automate much of it, but you should know what runs underneath.

Configuration

  • display_errors=Off, log_errors=On, sensible error_log
  • OPcache enabled with appropriate memory and validate_timestamps off in prod
  • Secrets in environment variables, not committed files
  • HTTPS everywhere; HSTS when stable

Application

  • Prepared statements; least-privilege DB user
  • CSRF on forms; secure session cookie flags
  • File upload limits and non-executable storage
  • Dependency audit: composer audit

Operations

  • Deploy script runs migrations; rollback plan exists
  • Backups for database and user uploads
  • Monitoring: 5xx rates, slow queries, disk space
  • Rate limiting on auth and public APIs

Self-check

  1. Why disable display_errors in production?
  2. What does OPcache do?

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • OPcache enable?
  • Secrets in .env?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump