Use this powerful n8n workflow to fully automate the installation and configuration of a LAMP (Linux, Apache, MySQL, PHP) stack, development tools, and user setup on any remote server using SSH.
Download this n8n workflow template and start using it instantly.
Setting up a complete LAMP (Linux, Apache, MySQL, PHP) development server—including virtual hosts, security hardening, user creation, and installing necessary developer tools like Composer and WP-CLI—can take significant manual time. This robust n8n workflow eliminates that inefficiency. It converts hours of repetitive terminal commands into a single, reliable automation run, saving immense time and ensuring consistency across all your server deployments. The entire process is orchestrated through a sequence of SSH commands managed by the n8n platform, demonstrating the power of using n8n templates for advanced DevOps tasks. This specific n8n workflow is highly customizable via initial parameters, allowing you to define the PHP version, MySQL password, and developer credentials upfront.
This automation starts with a manual n8n trigger, initiating the sequential deployment process.
host, user), database credentials (mysqlrootpassword), desired phpversion, and new developer user credentials (username, userpassword). This data is passed throughout the subsequent SSH n8n node calls.curl, git, wget).rewrite, ssl), and creates a dynamic virtual host configuration based on the provided domain_name parameter.php-mysql, php-mbstring). It also installs Composer globally and adjusts common PHP settings in php.ini.www-data group, and SSH keys are generated for them. Permissions on /var/www/html are correctly set.index.php landing page that visually confirms the status of Apache, MySQL, and PHP, concluding the successful n8n workflow execution.To deploy this comprehensive n8n workflow, follow these steps:
ilPh8oO4GfSlc0Qy).sudo access).serverhost, serveruser, mysqlrootpassword, php_version, and username to match your desired setup.This n8n workflow utilizes core nodes essential for orchestration and remote execution:
Start (n8n trigger): n8n-nodes-base.manualTrigger
Function: Serves as the immediate n8n trigger to begin the automated server setup process.
Key Configuration: Activated manually when the server provisioning is required.
Set Parameters (Set n8n node): n8n-nodes-base.set
Function: Defines all customizable environment variables (host, passwords, versions) that subsequent SSH nodes will use for dynamic script execution, making this n8n template highly reusable.
Key Configuration: Stores variables like phpversion ('8.2') and mysqlrootpassword.
System Preparation, Install Apache, Install MySQL, Install PHP, Install Dev Tools, Create Dev User, Final Configuration (SSH n8n node): n8n-nodes-base.ssh
Function: The central component of this n8n workflow. Each SSH n8n node connects to the remote server using the defined SSH Private Key credentials and executes a complex, multi-line bash script to install, configure, and secure the respective component (Apache, MySQL, PHP, etc.).
Key Configuration: All nodes use the same SSH credential and contain comprehensive, embedded shell scripts that leverage parameters defined earlier (e.g., using {{ $json.phpversion }} within the script).
Setup Complete (Set n8n node): n8n-nodes-base.set
* Function: Aggregates the resulting information and key access URLs (server URL, phpMyAdmin link) to provide a clean, accessible summary output item after the n8n workflow finishes executing.
Use this practical n8n workflow to generate secure Time-based One-Time Passwords (TOTP) programmatically. Quickly implement 2FA using the dedicated n8n node.

Automate comprehensive Google Tasks management—Create, Read, Update, and Delete—using this powerful n8n workflow. Learn how to use the n8n node for AI-driven productivity.

Use this robust n8n workflow to manage a complete booking system. It validates user input, checks business hours, public holidays, and Google Calendar availability before confirming an appointment. Essential n8n templates for complex scheduling.

Use this advanced n8n workflow to generate complete, curriculum-aligned lesson plans, assessment tools, and AI integration guides for UK teachers, saving preparation time. Explore specialized n8n templates.

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.







































