๐Ÿ“˜ LocalDevine User Guide

Complete user manual for LocalDevine | เธ„เธนเนˆเธกเธทเธญเธเธฒเธฃเนƒเธŠเน‰เธ‡เธฒเธ™ LocalDevine เธ‰เธšเธฑเธšเธชเธกเธšเธนเธฃเธ“เนŒ

๐Ÿ“– Table of Contents

  1. Getting Started
  2. Managing Services
  3. Creating Projects
  4. Virtual Hosts
  5. Database Management
  6. SSL Certificates
  7. Environment Variables
  8. Hosts File Editor
  9. Quick Access
  10. Settings
  11. Troubleshooting

๐Ÿš€ Getting Started

First Steps

  1. Open LocalDevine - Double-click LocalDevine.exe. Recommended: Right-click โ†’ Run as Administrator
  2. Start Services - Click Start on Apache and MariaDB. Wait for green "Running" status
  3. Test - Open browser and go to http://localhost

Dashboard Overview

โš™๏ธ Managing Services

Apache Web Server

ActionSteps
StartClick Start on Apache card โ†’ Wait for Running status
StopClick Stop on Apache card โ†’ Wait for Stopped status
RestartClick Stop then Start (required after config changes)

MariaDB Database

Default Credentials: Username: root | Password: root

PHP

PHP runs automatically with Apache - no separate start needed.

๐Ÿ“ Creating Projects

Create New Project

  1. Go to Projects menu
  2. Click Create New Project
  3. Fill in: Project Name, Template (PHP/HTML), Create Database option
  4. Click Create

Available Templates

TemplateDescription
PHP BasicPHP project with index.php
HTML BasicBasic HTML/CSS/JS project

Access Your Project

๐ŸŒ Virtual Hosts

Virtual Hosts let you use custom local domains instead of localhost/project

Create Virtual Host

  1. Run LocalDevine as Administrator (required!)
  2. Go to Virtual Hosts menu
  3. Click Add Virtual Host
  4. Fill in: Name, Domain (e.g., mysite.local), Path
  5. Click Add โ†’ Restart Apache

Recommended Domains

DomainNotes
*.localโœ… Recommended
*.testโœ… Recommended
*.devโŒ Not recommended (used by Google)

๐Ÿ—„๏ธ Database Management

Access Adminer

  1. Click ๐Ÿ—„๏ธ Database button on dashboard
  2. Login with: Server 127.0.0.1, Username root, Password root

Import/Export

ActionSteps
ImportSelect database โ†’ Click Import โ†’ Choose .sql file โ†’ Execute
ExportSelect database โ†’ Click Export โ†’ Choose SQL format โ†’ Export

๐Ÿ” SSL Certificates

Generate self-signed SSL certificates for HTTPS development.

Generate Certificate

  1. Go to SSL menu
  2. Click Generate Certificate
  3. Enter domain name (e.g., mysite.local)
  4. Click Generate

Trust Certificate

  1. Click Trust button next to the certificate
  2. Windows will ask for confirmation
  3. Certificate is added to trusted root

๐ŸŒ Environment Variables

Manage .env files for your projects.

  1. Go to Environment menu
  2. Select a project
  3. View and edit environment variables
  4. Click Save

๐Ÿ“ Hosts File Editor

Edit Windows hosts file without opening Notepad.

  1. Go to Hosts File menu
  2. Click Add Entry
  3. Enter IP Address and Hostname
  4. Click Add

โš ๏ธ Note: Requires Administrator privileges

๐Ÿ“‚ Quick Access

Easy access to important folders from Settings.

ButtonLocationPurpose
โš™๏ธ Bin FolderProgram Files\LocalDevine\...\binApache, PHP, MariaDB executables
๐Ÿ“„ Config FolderC:\LocalDevine\configphp.ini, httpd.conf
๐ŸŒ WWW FolderC:\LocalDevine\wwwYour projects
๐Ÿ“‹ Logs Folder%APPDATA%\LocalDevine\logsApplication logs

โš™๏ธ Settings

Port Configuration

ServiceDefault PortHow to Change
Apache80Settings โ†’ Apache Port
MariaDB3306Settings โ†’ MariaDB Port

Other Settings

๐Ÿ”ง Troubleshooting

Apache Won't Start

Possible causes: Port 80 in use, config errors

# Check what's using port 80
netstat -ano | findstr :80

MariaDB Won't Start

Solution: Delete C:\LocalDevine\data\mariadb\*.pid files and try again

Virtual Host Not Working

Can't Login to Adminer

Make sure MariaDB is running. Use: Server 127.0.0.1, Username root, Password root


Need help? Report an issue on GitHub