Skip to main content
All pages in this manual

Running your project

PHP and Node.js versions

What this page is for: run a website on a PHP or Node.js version other than the server's own — an older application that needs PHP 7.4 or 8.2, an app pinned to Node.js 20 or 22 — without changing anything for the rest of the server.

The rule that does not move: this server's own PHP and Node.js stay exactly as they are. Your 6amMart projects, phpMyAdmin and every website that has not chosen otherwise keep running on them. Extra versions are optional downloads: nothing is installed until you press Install, and an installed version does nothing until you move a website onto it.

You need

  • A website of the kind that runs PHP (PHP website, WordPress) or Node.js (Node.js app, Create with AI, or a static website whose files are built before they are served). 6amMart projects always run on the server's own PHP.
  • For a PHP version: about 6–9 MB of download and 25–40 MB of disk per version.
  • For a Node.js version: about 20–32 MB of download and 140–210 MB of disk per version.
  • To install or remove a version, or change a project's extensions, options or Advanced PHP editor: the owner's login. A temporary login can move a website between the versions already installed, and sees the PHP page read-only.

Two places, one rule

PHP is set in two places, and each holds only what belongs there:

  • Software → PHP — what PHP does for a whole version: which versions are installed, the one new projects start on, the loaders PHP can only load for a whole version (ionCube, Xdebug, OPcache), the size of the code cache they share, and the extension packages installed for them.
  • A project's own PHP page — a website's PHP tab, or a 6amMart project's Advanced → PHP — everything about that one project: its version, its extensions, its php.ini settings and its own lines in the Advanced PHP editor. Each project has its own; changing one never changes another.

Software → PHP

Open Server and the PHP tab. Each installed version is a card:

  • PHP 8.5 and its badges — Default (the server's own PHP, which stays), and New projects use this on the version new projects start on;
  • Running or Stopped (a stopped extra version has Start), and how long php.net supports it: supported until …, security fixes only, until …, end of life since …;
  • Used by N projects — press it to see them; each name opens that project's PHP page;
  • Manage, Use for new projects and Remove. Remove is held while any website or 6amMart project still runs on that version, and the card says so.

Install another PHP version opens a small dialog: pick the version (each says its size and support), press Install. It takes about a minute and runs as a job you can watch. The new version runs beside the server's own with SixPanel's settings and sandbox, and every website can choose it. The versions come from packages.sury.org, pinned so that only the extra PHP versions come from there.

Use for new projects makes a version the one websites you create from now on start on. Projects that exist keep their version.

One version's loaders

Manage opens that version's panel under the table: its loaders, its patches, its cache and its packages.

Loaders — PHP loads these for every website on that version together; it cannot switch them for a single project.

  • ionCube Loader — runs PHP files encoded with ionCube. Off until you turn it on, and while it is off no file of it is on the server. Turning it on downloads the loader for that version from ioncube.com over https, checks it is built for this server's processor, tests it, and only then loads it for every website and project on that version and for its command line. Turning it off removes its files again. An encoded file names the PHP it was encoded for in its first lines — // 14.0 81 means Encoder 14 for PHP 8.1, so it needs PHP 8.1 with the loader on. ionCube builds no loader for PHP 8.0; the switch says so.
  • Xdebug — for debugging only. It slows down every website on that version while it is on, so the panel asks first. Turn it off when you are done.
  • OPcache — the code cache. Always on.

Patch updates of a version (8.3.35 → 8.3.36)

Patches, in the same Manage panel — security and bug-fix updates inside one version. It shows the build installed now, the newest one found the last time it was checked, and the last run. Choose how this version gets them:

  • Off — never checked, never patched here.
  • Notify only (the default) — checked in every Scheduled maintenance window; you are told when a patch is waiting, and nothing is installed until you press Update now.
  • Install in the maintenance window — installed in the window, after its backup.

Hold at this patch keeps the window from moving this build. Skip a patch you do not want; the next one is offered again. Check now asks right away, and Update now installs the waiting patch the same way the window does:

  1. It works out what would change, and refuses — changing nothing — if that would remove a package, install a new one, or touch a package that is not this version's.
  2. It keeps a copy of the build installed now, so it can go back. If no copy can be kept it stops and asks you; you can still go ahead "without a way back".
  3. It reads every website on that version (for the server's own version also every 6amMart project's admin and app API, and its background workers).
  4. It installs the patch without restarting anything, tests PHP's configuration, then reloads php-fpm gracefully — requests in flight finish on the old build.
  5. It reads everything again. If anything answers differently, the old build is put back, php-fpm reloads onto it, and you are emailed what happened and why.

The server's own PHP is different. Ubuntu or Debian ships it and their daily security updates patch it — but those restart php-fpm under every shop with no check and no way back. Set the server's own version to install in the maintenance window and it is patched in your window instead, the safe way above, with every shop's queue, scheduler and websocket workers restarted onto it. That holds only while the Scheduled maintenance window is on, runs PHP patches, and has run in the last 14 days. If any of that stops being true, the daily security updates take it over again by themselves, so this server never goes unpatched. Patches says which one is patching it now, and so does Server → Health.

The extra versions come from packages.sury.org, which the daily updates never take: nothing patches them unless you set it here.

A published security hole is not left to the schedule. SixPanel knows the security advisories that affect PHP itself — today CVE-2026-109618 and CVE-2026-109619, remote code execution with no sign-in, fixed in 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Three minutes after the panel starts, and every six hours after that, it checks every installed version against them. It compares the upstream release, and for the server's own version it reads the package's own changelog, because Ubuntu and Debian put the fix into an older version number. Any version that is still open is patched straight away by the same safe run as Update now, even when it is set to Notify only. That run shows as the job PHP: install a security fix. If no copy of the current build can be kept, it installs the fix anyway, because staying open is worse, and it still checks every site afterwards. A version set to Off or Hold at this patch is left as you set it. It is reported in red on its Patches card, in Server → Health and by email. Skip does not keep a security fix out.

One version's cache and packages

Performance — one code cache is shared by every website on that version. Its three sizes are fields: code cache memory (MB), text store inside it (MB) and most files it keeps. Each says the range this server allows; a size can only be raised, never set below what SixPanel gave it. Leave a field empty to keep SixPanel's size. You need these when Health says the compiled-code cache is full or getting tight — its button opens this part directly.

Advanced (folded):

  • Installed extension packages — each package with its size and which projects use it. Remove frees its disk space; it is offered only when no project uses the package and it is not one SixPanel and 6amMart need.
  • Other php.ini lines for every website on this version — rarely needed. One name = value per line. A project's own settings win over these.

A project's own PHP page

Open a website and its PHP tab, or a 6amMart project and Advanced → PHP. It is the same page for both, often called a "PHP selector".

PHP version — a website chooses any installed version and presses Apply: the new version must answer a test request for this website before visitors are sent to it, and if it does not, nothing changes. Install another version… at the bottom of the list opens the install dialog. A 6amMart project runs on the server's own PHP, and the page says so.

If the app has files encoded with ionCube and the loader is off for its version, a yellow band says so with one button: Turn on ionCube for PHP 8.1.

PHP websites also have Read .htaccess files (Apache) — see Apache and .htaccess below.

Ask Tia opens a chat with Tia about this project. She changes the same settings through the same steps as the page, and what she changes is what the page shows the next time you open it.

Extensions

A search box and one checkbox per extension, each with a line saying what it does. Tick what this project needs and press Save; untick what it does not. The bar at the bottom counts your unsaved changes.

  • An extension that is not installed yet says Installs when you save — ticking it is enough; it is installed and turned on in the same step, for this project only. (The words appear once the box is ticked, not beside an unticked one.)
  • A grey box cannot change here, and the reason is under it: Built into PHP (openssl, pcre, json), Core: every site needs it (MySQL, curl, mbstring, gd and the rest of SixPanel's set), or Needed by 6amMart on a 6amMart project.
  • Your app needs this marks an extension your app lists in its composer.json. If it is off, it is shown first, highlighted.
  • Set for the whole PHP version — ionCube, OPcache and Xdebug are shown with their state and Change on the server page: PHP loads them for a whole version, never per project.

Saving reloads PHP gracefully — PHP can only reload a whole version at once, so the other projects on it start again with an empty code cache too — and asks this project's own pool whether each extension is now loaded; if one is not, the previous list stays. The extensions load in the order PHP's own packages give them — one another extension needs (msgpack for memcached) loads before it — whatever order you ticked them in.

Options

The common php.ini settings as plain fields: Memory limit, Max upload size, Max run time, Show errors and Timezone. Under Advanced: max post size, max input time, max input vars, short open tag, opening web addresses as files, session lifetime, disabled functions, the website's workers, and the Advanced PHP editor.

  • Each field says its default under it; a changed one has Back to default beside it, and Reset all to default resets everything at once.
  • Raising the upload size raises the post size with it — a form must carry the upload — and the page says so. nginx and PHP's own time limits follow the run time.
  • Show errors warns that visitors will see PHP's error messages. Keep it off on a live site.
  • On a 6amMart project, 6amMart's minimum values (memory, upload size, run time, input variables) are enforced: a lower value is refused with the reason. A shop's run time can go from 60 to 3600 seconds; the server's first 6amMart project stays at 120 seconds, because its nginx settings come with SixPanel's installer — the field says so.
  • After Save the page says what changed, for example Memory limit 256 MB → 512 MB. If PHP refuses the result, the previous values are put back and the reason is shown beside the field.

Sessions (PHP websites)

A PHP website's page has a Sessions card under the options: Files or Redis. It is how a website keeps people signed in — see Websites and apps. Switching signs everyone out once and the page says so before it does; Redis needs the website's own Redis (Database → Redis) and the redis extension for its PHP version, and is switched off, with the reason, until both are there. The redis extension comes with every PHP version SixPanel installs and is always on (it is in the grey Always on list, with nothing to tick). While sessions are on Redis the panel will not turn the redis extension off and will not remove Redis. Changing the PHP version keeps the sessions in Redis and signs nobody out: the new version's pool is checked first (the extension loaded, a session written and read back through it), and the website stays on its old version if the check fails. Only a version that has no redis extension is refused — install it again from Software → PHP.

PHP mail() and sendmail

Under the options, a card says whether this website's (or this shop's) code may send mail without a password — with PHP's mail() function or the sendmail command. It is off unless you turned it on: mail() returns false and hands nothing to a mail server, and the website's account may not use sendmail either. A mailbox over SMTP (Email → Mailboxes) or a mail provider is the better way to send; WordPress needs an SMTP plugin for it, and its page says so while mail is off. 6amMart sends through SMTP and needs neither.

Turning it on is the server owner's, and the panel asks first and says the risk: any code on the website — a hacked plugin too — could then send mail as any address, and spam from it puts this server's address on block lists, which hurts the mail of every website here. While it is on the card says the risk beside Turn off. A temporary login and the website's own account may turn it off, never on. The Advanced PHP editor cannot set sendmail_path while it is off. A Node.js, Python or Java website has the same switch on its Settings page, called sendmail. The whole of it is on Email → PHP mail() and sendmail.

Advanced PHP editor

For settings that have no field, Options → Advanced → Open the Advanced PHP editor opens a box of this project's own PHP lines. Four directives are allowed, exactly as PHP-FPM reads them:

DirectiveUse
php_value[name] = valuea setting the app may still change at run time
php_admin_value[name] = valuea setting the app cannot change
php_flag[name] = on or offan on/off setting the app may change
php_admin_flag[name] = on or offan on/off setting the app cannot change

A line that starts with a semicolon (;) does nothing — remove the semicolon at the beginning of a line to activate it. The first time you open the editor it holds an example built from this project's current values, every line commented out:

; A line starting with ; does nothing. Remove the ; to use one of the lines below.
;php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 256M
;php_admin_value[max_execution_time] = 60
php_admin_value[date.timezone] = Asia/Kolkata
;php_admin_value[upload_max_filesize] = 64M
;php_admin_value[max_input_vars] = 3000
;php_admin_value[max_file_uploads] = 20
;php_admin_flag[display_errors] = off

Here the date.timezone line has had its semicolon removed, so it is active; the others are still examples. Save changes is held until you change something, and Reset to example fills the box with the example again (nothing changes until you save).

  • The panel checks every line before it is used. A line it refuses is named by its number under the box, and your text stays there to correct.
  • A setting that also has a field (memory limit, upload size…) is the editor's once a line sets it: the field shows the value, is held, and says Set in the Advanced PHP editor with a link back here.
  • What stays protected, whatever you write: the folders that keep one project apart from another (open_basedir, the temporary and session folders, the error log), loading extensions (use the Extensions tab), and the code cache's behaviour. Removing a function from the disabled list is allowed, and the page warns you when a dangerous one (such as exec) is no longer disabled.
  • A temporary login sees the editor read-only.

Apache and .htaccess (optional)

nginx does not read .htaccess files. Some PHP apps are written for Apache and keep their own rules there — pretty URLs such as RewriteRule ^([^\.]+)$ $1.php, redirects, folders they protect. For those, SixPanel can put Apache behind nginx for that one website. It is off and not installed until you ask for it.

  1. Server → Services → Apache, for websites that need .htaccess → Install Apache. The server's own Apache package is installed and set to listen on 127.0.0.1 only — never a public port. It is sized for the server (one process at idle) and does not run until a website uses it.
  2. On the website: PHP → Read .htaccess files (Apache) — switch it on. The panel checks the website through Apache before visitors are sent to it; if it does not answer, nothing changes.

What stays the same: nginx still answers every visitor, keeps the SSL certificate and still refuses dotfiles (.env, .git, .htaccess itself), secrets and the addresses you refused in Settings. PHP still runs in the website's own pool with its own settings and extensions. Only plain PHP websites can use it — WordPress and 6amMart shops stay on nginx.

A form sent to the website (a POST) goes to Apache on a connection of its own, while pages and files reuse a few kept-open ones. When every Apache worker is busy, Apache closes a reused connection without reading what arrived on it. nginx asks again for a page, but never for a form, because a form sent twice can mean an order placed twice. So forms never travel on those connections, and a busy moment cannot lose one.

Apache here has no PHP module, so SixPanel reads the php_value and php_flag lines of the .htaccess in the website's document root itself, as Apache reads them (PHP_VALUE in any case, a value in single or double quotes), when the website is deployed, its settings are saved or Apache is switched on for it. Only these settings are taken: upload_max_filesize, post_max_size, memory_limit, max_execution_time, max_input_time, max_input_vars and display_errors (log_errors is always on). The value must be one the website's PHP page offers: never above the page's largest choice, and never "no limit". A field you set on the PHP page, or a line in the Advanced PHP editor, always wins, and a limited account's limits still apply. A value taken shows on the PHP page as Set by this website's .htaccess, line N, held the way a field the Advanced PHP editor sets is held: change it in the .htaccess, or set it in the editor, which takes its place. The page lists every PHP line of the file with what became of it. Set anything it did not take on the PHP page instead. Apache itself logs those lines and goes on, never a broken page. The other way of reaching PHP from an .htaccess — a PHP_VALUE or PHP_ADMIN_VALUE set with SetEnv, SetEnvIf, a RewriteRule … [E=…] or ProxyFCGISetEnvIf: Apache takes both off every request before it reaches PHP, so the website runs with the settings its PHP page shows (its folder limit, the functions switched off, its upload sizes) and nothing in its own files changes them. Options +FollowSymLinks is refused by Apache: links are followed only when one account owns both ends.

Switching it off puts the website back on nginx exactly as before. When no website uses Apache it stops by itself; Remove Apache on Server → Services takes its packages away (it refuses while a website still uses it). The files SixPanel wrote into /etc/apache2 go too, each by its own name, and so does a folder they alone had kept; a file another package put there stays. Health has a row for it: it fails when Apache listens anywhere but 127.0.0.1, or is down while a website needs it.

Apache's own page — its worker sizes, its modules, server-wide directives of your own, a restart and its logs — is Software → Apache (Manage Apache on the Services card opens it): see Vhost and Apache.

Software → Node.js

Open Server and the Node.js tab.

The first row is the server's own Node.js — the version SixPanel itself runs on — with the websites that use it. Below it are the versions you installed, each with how its download was checked:

  • signature by … — the download matched nodejs.org's published checksums, and those checksums carry a valid signature from one of the Node.js release team's keys;
  • checksum only — the download matched the checksums, but their signature could not be checked at the time (the keys could not be fetched). Hover to see why.

Which Node.js is the server's own. It follows the newest LTS (long-term support) line. A newer Current line — 27, or any line before its own LTS day — never becomes the server's own: it stays an optional download for websites until it is LTS. The server's own version changes only with a SixPanel update, because the panel itself runs on it, so there is nothing to do here: the line under the first row says where things stand — that the server is on the newest LTS line, or that a newer line is LTS now and a SixPanel update moves the server to it. A website that runs on the server's own Node.js moves onto the new version by itself a little after that update — on its other slot, with no downtime, where it has one — and so does a task that keeps running. In the list of downloads, the newest LTS line is marked newest LTS.

When a newer Node.js fixes security issues. nodejs.org marks every release that fixes security issues. When one is newer than the server's own version on the same line, a line under the first row says so: Node.js X.Y.Z fixes security issues on this line; the next SixPanel update brings it — there is nothing to do here. That is all it asks of you: the server's own Node.js is held at the version its SixPanel release names, because the panel itself runs on it, and only a SixPanel update moves it — never move it by hand. A version installed for websites that a newer release of its line fixes is marked … fixes security issues under Updates, where Update installs the newest release of that line — no Check for updates is needed first. Health says both in its row Node.js security releases: information for the server's own, a warning for a version installed for websites that a website runs on. The panel reads nodejs.org's list of releases a few minutes after it starts and every six hours after that, and the row says on which day the list it read was taken.

Download another Node.js version lists the newest release of every Node.js line, with its support (the server's own version is marked server's own there, not offered again):

  • LTS "…" until … — long-term support, the right choice for a live website;
  • LTS, maintenance until … — still supported, near the end of its life;
  • Current — the newest line, before it becomes LTS;
  • end of life since … — no security fixes (folded away under Show versions past their end of life).

Press Install, or type an exact version under Or a specific version (for example 20.11.1). The download is checked against nodejs.org's signed checksums before it is unpacked; a download that does not match is never installed. Versions up to Node.js 24 also bring pnpm and yarn (corepack); from Node.js 25 on, pnpm and yarn run through npx, as they do on the server's own Node.js.

Updates lists each Node.js line installed for websites (24, 22 …) and whether a newer release of it exists — a patch or a minor of the same major. Check for updates asks nodejs.org. Update installs the newer release beside the older one (checked as every download is), moves every website on the older one to it — the live version too: within a major its packages keep working — and restarts the running ones, a second or two each. The older version stays installed, because an older release a rollback returns to may name it; remove it when nothing uses it. Hold keeps a line where it is; Skip this release passes over one release. The server's own Node.js is never updated here: it moves only with a SixPanel update.

Websites and their Node.js, at the bottom of the tab, lists every website that runs on Node.js or builds with it, and the version it uses. Choose another version beside it and press Move — the same rebuild as on the website's own Settings (below).

Choose a Node.js version for a website

Open the website, then Settings. The Node.js version card shows what the website builds and runs on. If its package.json asks for a version ("engines": { "node": … }), the card says whether the server's own fits, or which installed version does — and marks it with ✓ in the list.

Choose a version and press Build with this version. The live version's files are copied into a new version, its packages are installed again for the new Node.js, it is built, and it starts beside the running one. Visitors move over only when it answers — if the build fails, nothing changes and the website keeps its old version.

The version is part of each build: Deploys marks the new one built again with Node.js …, and rolling back to an older version runs it on the Node.js it was built with.

A static website whose files are a source project (a package.json with a build script — SixPanel builds it before nginx serves the result) has the same card, and the version is used for its build only. A static website with no build step runs no Node.js and has no card.

Remove a version

Remove is offered only on a version no website uses (for Node.js: no website and no live version was built with it). Move those websites first. The server's own PHP and Node.js cannot be removed from these pages.

Uninstalling SixPanel (sixpanel server uninstall) removes the extra PHP and Node.js versions SixPanel downloaded — only the packages its own installs added, never one you installed yourself — together with the packages.sury.org source, and puts php-common back on your distribution's version when apt can do that without removing anything. A PHP version a website still runs on stays (nginx keeps serving that website after the uninstall), and so does a Node.js version a website was built with while the panel's data is kept. The uninstall's output lists what stayed and why.

How to check it worked

  • Software → PHP: the new version shows running; after moving a website, its row counts the website.
  • The website's PHP page shows the version in its badge; Show phpinfo() reports it.
  • Server → Health has a row for the extra versions: each PHP version must be running and accept its own configuration; each Node.js version must start and report the version its folder is named for.

If it went wrong

  • "PHP x.y did not answer for this website" — the move stopped before visitors were sent anywhere; the website is unchanged. Open Server → Health for the version's state, or Logs on the website.
  • "this version of the site was built with Node.js x, which is no longer installed" — install that version again on Software → Node.js, or deploy again.
  • A version is stopped — Health shows it, and its row on Software → PHP has a Start button. If it will not start, the usual cause is a server-wide setting you added to that version: open Manage, clear the line under Server-wide settings, and press Start again.
  • The Redis choice under Sessions is greyed out — the line under it says why: Redis is not added (add it on the website's Database page), it is stopped (the panel starts it again by itself, within 3 to 10 minutes — up to 12 times a day while sessions are in it; Start Redis on the Database page starts it at once), or this PHP version has no redis extension. The extension is installed with every PHP version and cannot be ticked or unticked under Extensions; if it is missing, that PHP version was not installed completely — install it again from Software → PHP.
  • "Sessions are kept in Redis" when you turn off the redis extension or remove Redis — switch Sessions back to Files first, then change it (and switch back to Redis afterwards if you want it).
  • "does not load the redis extension" when you change PHP version — the version you chose was not installed completely: install it again from Software → PHP, then change the version. Sessions stay in Redis and nobody is signed out.
  • apt says another package run is using it — the install waits up to ten minutes for the other run (an automatic update) to finish, then goes on.

The software card on this page

A website's PHP page shows the card of the PHP-FPM it runs on, and Software shows every PHP version's PHP-FPM under Parts and pools with the websites and projects on it. It is the same card as on Software: its state, its version, a waiting update and, for the owner, Restart (asked first, and it waits for any job that is running). On Software opens its card there, with who else uses it. See Software, search and the system monitor.

Something unclear?Ask Tia