Manuals
RU EN

Server · 19

Online PHP and MySQL Editor

Server 6 min read

An online PHP and MySQL editor is useful when there is no IDE on the server and a template fix does not justify a full deployment from a laptop. MicroEditor opens website files and short SQL queries in the browser: change text in the user area, adjust a widget config, or inspect a row in a service table.

This is an operations tool, not a replacement for a Git-based workflow. On production it should be used selectively, with a backup and with the understanding that a PHP syntax error can break a page immediately.

Where it fits

  • Fix text in a template on a production VDS.
  • Run a short SELECT or UPDATE without a heavy database client.
  • Show a client a small change without installing a development environment.
  • Quickly enable or disable a ticker widget in a template.
  • Correct a typo in a KYC rejection reason.

Open the editor, save a test file in a safe location, then run a short SELECT. Make sure the editor database user has no broader permissions than required.

Production precautions

Copy a file before editing it. Do not run `UPDATE` without `WHERE` by eye. Do not store the database password in bookmarks on a shared machine. An editor session is privileged access: use HTTPS, log out after work, and restrict by IP when possible.

  1. Back up the file or table dump.
  2. Make the edit.
  3. Check the page or query.
  4. Restore from the copy if things break.
OPcache. Sometimes PHP serves old code after a file is saved. Include cache reset in the runbook, otherwise "the change did not apply" becomes a false alarm.

Broker and quotes workflow

Typical small edits include symbol dictionaries in config files, account text, email templates, and showcase widget thresholds. Products: white label, account area, KYC, quotes, ticker, BO, Forex.

Large deployments of chart libraries and assets are easier through storage: MicroDrive. Machine reboot and console access: MicroPanel. The editor is for targeted intervention.

SQL without drama

Start with `SELECT` and `LIMIT`. On trading history tables, an unlimited query can freeze both the editor UI and fpm. For schema migrations, use a normal process and a backup, not a query window on Friday.

The editor's MySQL user should be limited to the required databases. A separate account from the application root user reduces risk.

When not to use it

A major terminal refactor, a full script version update, or replacing Charting Library is an archive deployment and Git task, not an online-editor task. Otherwise you lose change history and make rollback harder.

Do not edit payment provider secrets in plain view during a shared support session.

Acceptance

Create a test file, save it, confirm it appears on the site, run a SELECT against a test table, and verify access is denied for a user without permissions. Add the editor URL and access owners to the internal runbook.

MicroEditor saves time on small PHP and SQL changes in the browser. Use it with backups, narrow permissions, and awareness of opcache, and it will help operate a white-label storefront without the heavy artillery of an IDE.

Permissions and audit

Enable logging: who opened a file, who saved it, and who ran SQL. Without audit, a "temporary" balance change through SQL becomes an unexplained hole. Ideally, deny UPDATE on ledger tables for the editor role and leave only SELECT plus template edits.

Separate environments: provide a staging editor with a production-like data copy, without payment secrets, for support training.

Typical safe operations

Replacing a footer phone number, editing offer text, enabling a maintenance banner, correcting a KYC rejection translation, and running a SELECT by user id for diagnostics. Anything that changes money or positions belongs in the broker admin area with an audit log, not in arbitrary SQL.

If you need to edit a JSON symbol config, validate JSON before saving. Broken JSON can take down the chart and ticker at once: quotes, ticker.

Rollback process

Keep a timestamped `.bak` next to the file or in a separate snapshot directory. Agree on retention. During an incident, file rollback is faster than searching Git if the change was made in the online editor, but long term the patch must return to Git.

Nearby tools: MicroPanel, MicroDrive. The editor sits between them in intervention weight.

Git synchronization

If a file is edited in MicroEditor, set a rule: after the hotfix, move the patch into the repository the same day. Otherwise the next deployment will overwrite it. Ideally, hotfixes are forbidden on files deployed from CI except for ticketed emergencies.

For content strings, an admin translation panel is better than editing a PHP template in the browser. Keep the editor for emergencies and small HTML changes.

Support training

Run a two-hour internal session: what can be edited, what cannot, how to roll back, and where to report opcache issues. Provide a sandbox. After the course, grant staging access; production access should be request-based. This turns MicroEditor from scary "root in the browser" into a controlled tool.

Editor operating rhythm

Review the save audit log weekly. Look for unnecessary UPDATE queries and production edits during market hours without a request. Reconcile hotfixes with Git. Rotate editor passwords and tokens together with the general VDS access policy.

A sandbox for support interns is mandatory. A first production hotfix without a mentor is a lottery.

If ACLs allow it, block execution and editing of payment configuration files and `.env` through the editor UI. It is easier to prevent opening them than to rely on caution.

Make the editor start page show a warning and a link to the procedure. A newcomer should see "do not touch ledger" before seeing the file list. Add favorite paths for email templates, the footer, and the maintenance banner so support does not wander through the whole tree.

Export the audit monthly and look for anomalies. Five minutes of review catches bad habits before they become financial issues.

Document a ban on edits in the last minutes before mass promotion expirations and before news events if the terminal runs on the same server. An extra risk of a 500 in a template is not needed at peak load. Make changes during low-activity windows.

For the SQL tab, show a default LIMIT 50 hint in the UI. Support should see the warning before execution. Save safe query examples such as "find user" and "latest trades" as snippets; this is faster and safer than writing a JOIN from scratch every time.

FAQ

Online php and mysql editor?

Website files and SQL in the browser. Useful for quick template fixes on a VDS without an IDE.

How long does “Online PHP and MySQL Editor” take?

About 6 minutes to read. In practice it depends on your hosting and database setup.

Do I need a dedicated server?

For most scripts, shared hosting or a VDS with PHP and MySQL is enough. See the VDS section and PHP/MySQL requirements.

How to install a php script on hosting?

See the related manual for this query. how to install a php script on hosting

Php mysql requirements for a script?

See the related manual for this query. php mysql requirements for a script

Section
Panel, files, and editor

Server and code utilities without a heavy hosting panel.