![]() |
|
Guide aaPanel Free Edition: Install Nginx, PHP & MariaDB - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: aaPanel (https://adminsforum.com/Forum-aapanel) +---- Forum: aaPanel Guides & Tutorials (https://adminsforum.com/Forum-aapanel-guides-tutorials) +---- Thread: Guide aaPanel Free Edition: Install Nginx, PHP & MariaDB (/Thread-guide-aapanel-free-edition-install-nginx-php-mariadb) |
aaPanel Free Edition: Install Nginx, PHP & MariaDB - DEV - 10-10-2026 Set up a PHP hosting stack in aaPanel Free Edition using Nginx, MariaDB, PHP and optional phpMyAdmin. This is the second tutorial, following panel installation on Ubuntu 22.04. Tested on 10 October 2026 with aaPanel Free 8.0.6, Ubuntu 22.04.5, 2 vCPU and 4 GB RAM. The screenshots below are our original lab captures with numbered AdminsForum annotations. Individual installation tutorials Use this overview to choose the stack, then follow the separate service guides:
1. Choose Single WebServer model After the first login, aaPanel offers a software-installation screen. In the screenshot, use the Single WebServer model on the right. This keeps the initial setup straightforward. Select Nginx. We chose the 1.30 branch; the installer delivered Nginx 1.30.5. Choose one web server for this walkthrough. A multi-server configuration is a different deployment choice. 2. Choose your database and PHP The second numbered box shows the supporting components:
3. Leave DNS and Mail Server unchecked The third box highlights DNS and mail options. We left both unchecked. You can manage your website's DNS through your domain or DNS provider without running a DNS server on this VPS. Mail hosting needs its own planning and configuration. 4. Start the installation In the right-hand panel, select Quick install, then click that panel's One-click button. The fourth box highlights these controls. Wait for the installation queue to complete. Avoid launching another package update or repeatedly starting the same task. If a task fails, inspect its log and fix the reported error before retrying that component. 5. Confirm the installed components Open App Store → Installed. This is what our completed installation showed: The numbered boxes highlight the Installed filter, installed software names, running-status indicators and Free Edition/version label.
6. Verify from SSH These commands apply to the paths and PHP branch used in our lab: Code: sudo /www/server/nginx/sbin/nginx -t
/www/server/nginx/sbin/nginx -v
/www/server/mysql/bin/mysql --version
/www/server/php/84/bin/php -v
systemctl is-active mysqld
sudo /etc/init.d/php-fpm-84 status
curl -I http://127.0.0.1/We rebooted the lab and verified that Nginx, MariaDB and PHP-FPM recovered. These checks confirm the base stack; they do not prove that a PHP website or phpMyAdmin login works. Those application checks belong to the website/database tutorials. Before hosting a real website Review panel and phpMyAdmin access, firewall rules, HTTPS and backups. Do not expose the database port just because MariaDB is installed. Use a separate application database and user when creating the website. FTP is optional. Prefer SFTP or a properly secured file-transfer configuration; installing an FTP server alone does not establish encrypted transfers. Frequently asked questions Should I install Nginx and Apache together? This walkthrough uses a single Nginx server. Select a different architecture only when your application or deployment requires it. Which PHP version should I choose? Use a version supported by your application and required extensions. Our PHP 8.4 selection is a tested example, not a compatibility guarantee for every application. Do I need phpMyAdmin and FTP? Both are optional administration tools. The web server, PHP runtime and database serve different roles from those tools. Next: Secure panel/server access, then add your first website, domain, HTTPS certificate and database. Source: aaPanel official Quick Start. |