LAMP stack: Apache, MariaDB, PHP
Put Apache, MariaDB or MySQL and PHP on one VPS, open the firewall, add a site and prove PHP can talk to the database.
LEMP stack: Nginx, MySQL, PHP-FPM
Run Nginx in front of PHP-FPM with MySQL or MariaDB, write a working server block and confirm PHP and the database answer.
Install PHP 8 and PHP-FPM
Install PHP 8 with PHP-FPM from the distribution or from a maintained third-party repository, add extensions and set php.ini values.
Run PHP 7.4 or 5.6 for legacy apps
Run an old PHP 7.4 or 5.6 application next to a current PHP 8, with its own FPM socket, its own user and a plan to retire it.
Upgrade PHP to a newer version
Move a site from PHP 8.2 to 8.3 or 8.4: install the new branch beside the old one, switch Apache or Nginx, test and remove the old packages.
Separate PHP-FPM pools per site
Give each website its own PHP-FPM pool, Linux user, socket, open_basedir and worker limits so one site cannot read or starve another.
Composer for PHP projects
Install Composer with a checked installer, decide between global tools and project packages, and ship lean vendor folders to production.
Deploy Laravel with Nginx
Serve a Laravel app through Nginx and PHP-FPM with correct folder permissions, a production .env, a systemd queue worker and the scheduler.
Deploy Laravel with Apache
Host a Laravel app on Apache with PHP-FPM through proxy_fcgi, mod_rewrite for the bundled .htaccess, HTTPS and a production checklist.
phpMyAdmin behind HTTPS
Install phpMyAdmin from the repositories, serve it only over HTTPS, hide it behind a second password and an IP allow list, and block root logins.
Adminer: one-file database UI
Drop a single Adminer PHP file onto its own HTTPS host, fence it with a password and IP rules, and manage MySQL, MariaDB, PostgreSQL or SQLite.
Other topics
- Your server and account
- Server basics
- Security
- Networking and diagnostics
- Web servers and proxies
- Node.js
- Python
- Go, Ruby, Java and other runtimes
- Databases
- Containers and PaaS
- Websites, CMS and shops
- Self-hosted apps
- VPN and private DNS
- Monitoring and logs
- Email servers
- Game and voice servers
- Control panels
- File transfer and archives
- Linux command line
- Bash scripting
- Git on a server
- Developer tools and CI
- Media and streaming
- Queues and messaging