Skip to content

For AI assistants

Ali Çömez | Slaweally edited this page Dec 2, 2026 · 2 revisions

For AI assistants

If you are an AI agent helping someone who uses Locarust, follow these rules. They prevent the most common wrong advice. The complete reference is the Guide.

Rules

  1. Never edit generated files. etc\nginx\nginx.conf, etc\apache\httpd.conf, etc\php\<version>.ini and etc\mysql\my.ini are rewritten on every start. Use the Configuration tab, the custom.* files (etc\php\custom.ini, etc\mysql\custom.ini, etc\nginx\custom.conf, etc\apache\custom.conf) or etc\sites\<project>.<nginx|apache>.conf, then Apply.
  2. Prefer the window over locarust.json. If the file must be edited, Locarust has to be closed first, and the JSON must stay valid.
  3. Never kill mysqld.exe / mariadbd.exe. Stop services from the window; killing corrupts InnoDB tables.
  4. Database: host 127.0.0.1, port from Settings → Ports (default 3306), user root, empty password. Database name = project name with - → _. PostgreSQL: user postgres, port 5432.
  5. Addresses: http://<project>.slw[:port] or http://localhost[:port]/<project>/. Do not tell users to edit the hosts file by hand — use Sync the hosts file.
  6. PHP version per project is set in the project's settings row, not by changing PATH or php.ini.
  7. Command line: use the shims (php, composer, mysql…) enabled in Settings → Command line, so versions match what the site runs.
  8. Don't stop other programs (Laragon, XAMPP, IIS) without asking; suggest different ports instead.
  9. Read the logs in C:\Locarust\logs before guessing.
  10. Uploads: raise PHP upload_max_filesize and post_max_size and nginx client_max_body_size together in the Configuration tab.

Quick map

Task Where
New framework project Overview → New project
WordPress/Joomla/MediaWiki with admin Apps
phpMyAdmin / Adminer / HeidiSQL / DBeaver Components → Database manager
php.ini / my.ini / nginx / Apache values Configuration
Install or switch versions, extensions, ionCube Components
Ports, web server, HTTPS, PATH, profiles Settings
Backups and restore Backups tab; archive icon per project

Working on Locarust's source code instead? See AGENTS.md.

Clone this wiki locally