Demo mode This site is not live. It is currently being tested and developed. Nothing on here represents an offer.
← Exit course WEB-301 Full-Stack Web Development with PHP and Laravel
Course progress, 0 of 17 parts done0%

Summary

Download as PDF

  • A full-stack developer works in Linux because the servers that run PHP applications are Linux machines, with case-sensitive file names, permissions and the same packages as your workstation.
  • Learners on Linux Mint 22 work natively and use Ubuntu's code name, noble, for extra repositories, while learners on Windows run Ubuntu 26.04 in WSL 2, installed with wsl --install, and keep their projects in ~/projects, never under /mnt/c.
  • PHP 8.5 comes from the ondrej/php repository on Mint 22 and from Ubuntu's own packages on Ubuntu 26.04, installed as php8.5-cli plus the pgsql, mbstring, xml, curl, zip, intl and bcmath extensions, and checked with php -v, php -m and php --ini.
  • Composer 2 is installed with its official installer only after its checksum matches the published one, then moved to /usr/local/bin, which is the only Composer step that needs sudo.
  • PostgreSQL 18 comes from the PostgreSQL apt repository as postgresql-18, runs as the cluster 18/main on port 5432, and is explored with psql meta-commands such as \l, \c, \dt, \du and \q.
  • Your own superuser role carries your Linux user name, while the Walk Office uses the login role walks_app, which owns the mandlas_walks database and is not a superuser.
  • pg_hba.conf uses peer authentication for socket connections, where the Linux user must match the role, and scram-sha-256 passwords for TCP connections to localhost, with passwords kept in ~/.pgpass.
  • Node LTS through nvm, Git with the GitHub CLI, and VS Code with Intelephense, the PostgreSQL extension and EditorConfig complete the workstation.
  • PHP's built-in server, php -S, serves a phpinfo page and a PDO test page for development only, proving that PHP reaches PostgreSQL.
  • Most set-up problems are version or connection problems, solved by checking what really runs and by reading each error message for the program, the action and the cause it names.