Deploying a web application through a one-click managed host hides almost every layer of the underlying infrastructure. When our team built the MCS AFAT platform on a Microsoft Azure Ubuntu 24.04 LTS virtual machine, configuring the full LAMP stack from scratch revealed how closely server administration and cybersecurity are connected.
Provisioning an Infrastructure-as-a-Service (IaaS) instance starts at the network perimeter. Rather than exposing the entire virtual machine to the public internet, we configured Azure Network Security Group rules to permit inbound traffic strictly on three essential ports: port 22 for encrypted SSH administration, port 80 for HTTP web requests, and port 443 for HTTPS traffic. Even at this initial stage, restricting administrative access to an RSA public-private key pair instead of password authentication eliminates automated brute-force password guessing against the root or default user account.
Inside the Linux environment, installing Apache2, MySQL Server, and PHP required deliberate privilege separation. Web server files inside /var/www/html were assigned to the non-privileged www-data system user so that a compromise in a PHP script cannot directly modify system-level binaries or kernel configurations. Similarly, configuring Apache’s mod_rewrite module and enabling .htaccess overrides demonstrated how web server directives control URL routing and REST API communication between the WordPress block editor and the backend.
Working directly at the Linux command line also highlighted the operational trade-off between control and maintenance. Self-hosting gives an administrator complete visibility into firewall rules, service logs, and PHP extensions, which is invaluable for Information Security students learning defensive hardening. However, that control comes with ongoing responsibility: the administrator must apply operating system security patches, monitor disk and memory usage on a constrained 1 GiB instance, and configure transport encryption. Experiencing every step of that stack firsthand turns abstract cloud security concepts into practical engineering judgment.

Image Credit: Original Azure deployment screenshot / diagram created by Talal Tahir.
Leave a Reply