Skip to main content

Complete LAMP stack (Linux, Apache, MySQL, PHP) automated server setup

Workflow preview

Workflow preview
100%
Complete LAMP stack (Linux, Apache, MySQL, PHP) automated server setup preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This automated n8n workflow enables the rapid setup of a complete LAMP (Linux, Apache, MySQL, PHP) stack on a Linux server, executing the entire process in approximately 10 seconds. It configures t...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.ssh, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Complete LAMP stack (Linux, Apache, MySQL, PHP) automated server setup
Workflow name
Complete LAMP stack (Linux, Apache, MySQL, PHP) automated server setup

This automated n8n workflow enables the rapid setup of a complete LAMP (Linux, Apache, MySQL, PHP) stack on a Linux server, executing the entire process in approximately 10 seconds. It configures the server, installs necessary components, and sets up a development user for seamless operation.

Fundamental Aspects

  • Start - Initiates the workflow
  • Set Parameters - Configures server parameters
  • System Preparation - Prepares the system for LAMP installation
  • Update System - Updates the system and installs essential packages
  • Install Apache - Sets up the Apache web server
  • Install MySQL - Installs MySQL and phpMyAdmin
  • Install PHP & Extensions - Installs PHP with required extensions
  • Install Development Tools - Adds development utilities
  • Create Development User - Creates a dedicated user for development
  • Final Setup & Configuration - Finalizes configurations
  • Setup Completion - Provides a summary of the setup

Setup Instructions

  • Import the workflow into n8n
  • Configure parameters in the Set Parameters node
  • Run the workflow
  • Verify the LAMP stack setup on the server

Required Resources

  • Linux server with SSH access
  • Root-level administrative privileges

Features

  • Install Database Server - Deploys MySQL with phpMyAdmin
  • Configure Web Server - Sets up Apache for web hosting
  • Install PHP - Includes PHP with essential extensions
  • Create Development User - Establishes a user for development tasks

Parameters to Configure

  • server_host: Your Linux server IP address
  • server_user: SSH username (typically 'root')
  • server_password: SSH password
  • php_extensions: List of PHP extensions to install
  • dev_tools: List of development tools to install
  • username: Development username
  • user_password: Password for the development user

Workflow Actions

  • Install: Deploys the LAMP stack, configures Apache, MySQL, and PHP
  • Create User: Sets up a development user with appropriate permissions
  • Configure: Finalizes server settings and tool installations

The workflow automatically manages

  • Ubuntu/Debian package installation
  • Service startup and configuration
  • Web server and database setup
  • User and permission management
  • Development tool integration

Update the parameters in the "Set Parameters" node with your server specifics and run the workflow!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Start

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Set Parameters

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 3 - System Preparation

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 4 - Install Apache

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 5 - Install MySQL

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 6 - Install PHP

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 7 - Install Dev Tools

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 8 - Create Dev User

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 9 - Final Configuration

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 10 - Setup Complete

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 11 - Start Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Parameters Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - System Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Apache Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - MySQL Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - PHP Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Tools Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - User Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Final Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Complete Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Complete LAMP stack (Linux, Apache, MySQL, PHP) automated server setup
Complexity advanced
Nodes 20
Categories DevOps
Author Oneclick AI Squad
Published 18 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6136/6136.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Complete LAMP stack (Linux, Apache, MySQL, PHP) automated server setup do?

This automated n8n workflow enables the rapid setup of a complete LAMP (Linux, Apache, MySQL, PHP) stack on a Linux server, executing the entire process in approximately 10 seconds. It configures t...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.