Motoko on the Internet Computer

Keep the app.
Retire the stack.

Build on a network that runs your code, stores your data and serves your application. Start with the PHP migration workflow.

Read-only inventory first. Your approval before changes.

The starting pointFirst migration path: PHP → Motoko
What you preserve

Your app. Your data. Your URLs.

Agree the requirements.
Verify before cutover.

Rebuilt in Motoko

The network operates.

Internet Computer

Run code.
Store data.
Serve the site.

Network infrastructure is upgraded
through public governance.

Recent security advisories · 14–21 October 2026 Affected products, versions and configurations vary.

See what changes with Motoko

First migration path: PHP to Motoko.

Framework-specific guidance for WordPress, Drupal, Joomla, Magento and custom PHP. Plugins and application features are rebuilt by an approved plan.

75-second migration demo

Watch a city website move to Motoko.

Larkhaven’s pages, search, comments and forms, rebuilt for the Internet Computer. Follow the WordPress inventory, mainnet deployment and checks against the original site.

Get the migration skill

Larkhaven is a fictional city built for this demonstration.

Silent · Real command logs replayed · Private account details hidden Explore Larkhaven ↗ · Download video

Read the demo transcript

This 75-second recording has no audio. It shows a city council website built on WordPress being moved to the Internet Computer (ICP) by a coding agent using the migrating-php-apps skill, and the result running on ICP mainnet. Every command shown ran for real; waiting time was removed. Private payment details, funding amounts, balances, the owner controller identifier and internal workspace paths are hidden in this public edit.

Opening card (0:00)

The kicker reads “migrating-php-apps · real run · waiting removed”. The title reads “A WordPress site moves to the Internet Computer.” Below it: “A city council website with a custom theme, forms, comments and search, moved by a coding agent with the migrating-php-apps skill. Every command below ran for real.”

Before: the WordPress site (0:04)

A browser window labelled “Before · WordPress on PHP” shows larkhaven.test, the website of the fictional City of Larkhaven. The view moves down the home page: the hero with a service search, popular services, latest news and what’s on. It then shows the bin collection days page and the comments on the “Draft budget 2027: your priorities” consultation. Captions read “Custom theme”, “Contact Form 7 · Yoast SEO · ACF” and “Comments · search · events”.

The agent’s run (0:14)

A terminal replays eleven steps from the recorded mainnet run. Each segment has a numbered title with its phase, the command, and lines copied from its real output. Long outputs are trimmed to the relevant lines; no text is changed. A progress bar runs along the top.

  • 1 of 11: Phase 1 · Inventory: what does this site actually contain? (0:14). The inventory script, bash php-inventory.sh /var/www/larkhaven, detects WordPress and lists the installed plugins (Yoast SEO, Advanced Custom Fields, Contact Form 7), the installed themes including the custom larkhaven theme, 2,347 PHP source files with 339,710 lines, the files that handle form posts (100), file uploads (8) and email (3), and 114 MB of uploads in 615 files. Only selected lines of the report are shown.
  • 2 of 11: Phase 4 · Export through WordPress itself (no password hashes) (0:18). bash tools/export-batches.sh exports the content through WordPress itself, without password hashes, and converts it to Candid batches: 70 content rows, 70 search rows, 19 comments, 4 users, 3 forms and 34 form rules.
  • 3 of 11: Phase 3 · Snapshot every public page, file and old URL (0:20). bash tools/snapshot-site.sh snapshots the public site and reports 981 URLs by status: 727 with 200, 181 with 301, 1 with 302 and 72 with 404.
  • 4 of 11: Phase 6 · Buy cycles by card (CyclePay) (0:23). CyclePay funding took place during the recorded run. The public edit hides payment links, order identifiers, amounts, fees, account balances and the associated command output. Card checkout is not shown.
  • 5 of 11: Phase 6 · Create the two canisters on ICP mainnet (0:26). The frontend and backend canisters were created on ICP mainnet. Funding allocations are hidden in this public edit. Their public demo addresses remain visible later in the video.
  • 6 of 11: Phase 6 · Add the owner as a backup controller (0:29). The owner was added as a backup controller of both canisters. The controller identifier and command are hidden in this public edit.
  • 7 of 11: Phase 3 · Build the site at its old paths for the mainnet address (0:31). The site was built for its public mainnet address. Internal workspace paths and the associated output are hidden in this public edit.
  • 8 of 11: Phase 6 · Deploy to ICP mainnet (0:34). icp deploy -e ic installs both canisters, syncs 722 assets to the frontend canister and lists the two canister URLs.
  • 9 of 11: Phase 4 · Import into the backend canister (controller-only, safe to re-run) (0:37). The import tool loads the batches into the backend canister: 70 content rows, 70 search documents, 19 comments, 3 forms, 34 form rules and 4 legacy users. The segment title says the import is controller-only and safe to re-run; a repeat run is not shown.
  • 10 of 11: Phase 4 · Reconcile against the WordPress database (0:40). A query of the backend canister's import counts shows 70 content items, 70 search documents, 70 routes, 19 comments (19 approved), 3 forms, 34 form rules and 4 legacy users. These match the WordPress database (70 posts and pages, 19 comments, 3 forms and 4 staff records); the WordPress side of the comparison is not shown on screen.
  • 11 of 11: Phase 6 · Check every old URL against the live site (0:43). The URL checker requests 987 old URLs from WordPress and from the live site. 808 behave the same at HTTP level, 176 query-string links are resolved in the browser, and 3 differ: /wp-admin/, /wp-login.php and /xmlrpc.php, which were retired on purpose.

Proof (0:45)

WordPress (left) and the live ICP site (right) show the /events/ page side by side and scroll together. The two full-page captures are then subtracted: WordPress minus ICP gives a black difference panel reading “0 differing pixels” (2400 × 6636 px compared), and the corner label reads “Proof · /events/ is pixel-identical”. A caption reads “987 old URLs checked on the live site: 808 identical, 176 query links resolved in the browser, 3 retired on purpose”.

After: the live site on ICP mainnet (0:55)

The same browser window, labelled “After · canisters on ICP mainnet”, shows lhhxl-xqaaa-aaaao-qqkwq-cai.icp.net. These steps were recorded on the live site:

  • The old bookmark /?p=92 is typed into the address bar and the browser lands on the news article “Harbour Bridge closes 24–26 October for repairs”. Caption: “An old ?p=92 bookmark still lands on the article”.
  • The contact form is filled in: name “Demo recording”, email demo@example.com, topic “General enquiry”, message “Recorded for the demo video. Please ignore.” The consent box is ticked and the form is sent. The site replies “Thank you. We have received your message and will reply within 5 working days. We have also sent a confirmation to your email address.” Caption: “Forms answered by a Motoko backend”.
  • “bins” is typed into the site search and the results page lists 7 results, with the matches highlighted. Caption: “Search ported from WordPress”.

Closing card (1:10)

The card reads “Same site. Same links. No PHP engine, web server or OS left to patch.” It shows “See it live: lhhxl-xqaaa-aaaao-qqkwq-cai.icp.net” and “Get the skill: movetomotoko.com”. The small print reads “Larkhaven is a fictional city built for this demo. Photos: Creative Commons, credited on the site.”

The recording shows selected pages, data and URL checks. Sign-in and the admin area, email delivery, integrations, a production-domain cutover and retiring the old host need their own evidence. Your team remains responsible for the rebuilt application, its access controls, dependencies and operation.

Download the privacy-edited transcript

The Larkhaven demonstration results

70
pages and posts imported
987
old URL checks
3
endpoints retired by design

Also imported: 19 comments, 3 forms and 4 legacy user records. Of the URL checks, 808 matched at HTTP level and 176 query links resolved in the browser.

Results from this fictional demonstration. Staff sign-in, email delivery and a production-domain cutover need separate validation.

How the verification works

Measured demo costs / public ICP

Larkhaven demo:
measured 30-day run rate.

Both the demo’s frontend and backend are included. The application owner funds cycles; visitors don’t need tokens to browse.

Estimated 30-day equivalent≈ US$0.37274.246 billion cycles · 0.274246 XDR

Seven-day elapsed window
3–10 November 2026
Frontend + backend

Only storage/idle charges were observed. The 115 observations span 168.51 hours, with recording gaps of 52.07 and 7.70 hours. This estimate is not a full-month bill, production-capacity quote or guarantee of future costs.

See how we measured

Converted at the 10 November 2026 rate: 1 XDR = US$1.355900. Traffic and dynamic features need their own estimate. Open Cloud infrastructure pricing is separate.

Questions & community help

Talk it through.

Ask the Motoko community about architecture, implementation and the move you’re planning.

Ask on the developer forum

Found a problem with the skill?

Share the steps to reproduce it in the skill’s GitHub repository.

Report a skill issue

These are public community channels, with no guaranteed response time. Redact secrets and personal data before posting.

What a full rebuild changes

Less infrastructure.
One application to own.

Motoko runs the application logic and persistent state on the Internet Computer. A complete rebuild can retire the PHP runtime and the separate servers your team operates.

01 / Execution

Replace the PHP runtime.

Implement the agreed application behavior in Motoko canisters.

02 / Data

Use persistent state.

Replace a separate database where the approved data model fits.

03 / Delivery

Serve a certified frontend.

Publish pages and assets from ICP, with response verification.

Your team owns the application, permissions, upgrades and recovery. Retained integrations still need review.

Explore the architecture

The migration

Inventory. Approve.
Rebuild. Verify.

Start with your existing PHP project. Your agent inventories its features and data, proposes a plan, and waits for your approval.

The plan covers pages, plugins, accounts, files, integrations and old URLs. Each needs an explicit decision and acceptance check.

See the six-stage workflow

For the services people depend on

Government services.
Company applications.

Plan around publishing, accessible public information, customer journeys and the data your organization handles.

Choose architecture, data location and operating ownership around your requirements.

Plan for your team Review data handling

Security brief Record updated

Security disclosures.
Across the stack.

Selected notices from the maintained record. Each source defines affected versions, configuration limits and immediate action.

View all 307 security notices
Drupal field report and CISA-confirmed exploitation in the wild

Drupal core

CISA confirms exploitation of Drupal’s installer vulnerability

Drupal’s Security Team received a report that CVE-2026-132165 was exploited on live sites as early as 19 November at 19:00 UTC. CISA added the flaw to its catalog on 24 November on evidence of active exploitation. Drupal rates the flaw highly critical (20/25). On an installed site with a reachable installer and the relevant configuration, an unauthenticated attacker can take over the site or run code. Restricting writes to settings.php protects against some attack paths. Drupal Steward covers known paths.

Core security release

Joomla CMS

Joomla fixes installer access and 57 other security issues

CVE-2026-123214 allows a visitor to rewrite an installed site’s configuration if its installation folder remains. It affects Joomla 4.0.0 through 5.4.10 and 6.0.0 through 6.2.0. Other fixes address different features, including file inclusion during language selection, a logging race that can leave a file without its protective header, and code execution through media custom fields.

Confirmed server compromise; data access under investigation

Hex

Unauthorized commands ran on six Hex registry web servers

Hex confirmed exploitation of CVE-2026-129514 on six web servers. Its investigation found no unauthorized package or database changes or evidence of persistent access. Unlogged database reads could have exposed account data, including password hashes and two-factor secrets. Access to private package contents and documentation could not be fully ruled out.

Earlier highlights in the full record:

An advisory is not evidence of a breach. Replacing a runtime does not repair retained dependencies, release pipelines or certificate trust. Keep affected systems patched while planning migration. Read the full security brief

First migration path: PHP

Start with
your PHP project.

Install the skill, then give your coding agent the migration brief. The first step is a read-only inventory.

Read the getting-started guide

1 / Install the skill

npx skills add JoshDFN/php-to-motoko-skill
Or download the skill ZIP ↓

2 / Start the inventory

Read the migration brief