-40%

Short description:
Help desk & ticketing in PHP — SMTP email, attachments, knowledge base, agent panel, SQLite/MySQL.
Full description:
Overview
DeskPilot — Help Desk & Ticketing PHP Script is a self-hosted help desk in plain PHP with no framework and no monthly fee. Customers open tickets from a simple form, track them by number and access token, and reply in the same thread. Your agents answer from a clean panel with assignment, canned replies and close/reopen. Email notifications send for real over SMTP or PHP mail() (log-only by default, so nothing is ever falsely promised), customers can attach files, and a built-in knowledge base answers questions before they become tickets. Your tickets and your data stay on your own server.
Features
- Public ticket form: name, email, subject, department, priority and message — validated server-side (field types, lengths, department membership) with field-specific errors; 10 tickets per hour per IP
- Private tickets: each ticket gets a random access token — only the customer with the private link can view or reply to it; agents can generate a new private link if one is lost (the old link stops working)
- Ticket list with open / pending / closed filters and search, paginated at 25 per page (LIMIT/OFFSET bound as integers; only rendered columns selected)
- Ticket detail with a bounded reply conversation (latest 25 replies, “Show older replies” navigation) for customers and agents
- Agent panel: login, assign tickets, reply, close and reopen; an admin can delete a ticket (ticket, replies, attachments and private access link removed together — how customer data is erased and the demo ticket is removed)
- Agent accounts (Admin > Users): create additional agent or admin accounts, change a user’s role, and disable an account — only admins can manage users or run schema upgrades; a disabled account cannot log in and never appears in the ticket assignment list
- Canned replies you can insert into any reply with one click
- Real email notifications (Admin > Settings): log-only by default, or send real email with PHP mail() or direct SMTP (built-in client — Gmail app password, SendGrid, Mailgun, Amazon SES, any SMTP server), with a staff email address and a test-email button that reports honestly whether the message was really sent or only logged; every notification is also written to mail.log, and a failed send falls back to the log
- File attachments on tickets and replies: up to 3 files, 5 MB each (images, PDF, text, CSV, ZIP, Office documents), type + real-content validated, stored with random names in the app’s protected data/ folder and downloaded only through an access-checked link
- Knowledge base / FAQ: public article pages with search and categories, admin CRUD with publish/draft and unique URL slugs, three starter articles included
- Departments seeded by the installer (General Support, Sales, Billing, Technical) and managed in the panel (Admin > Departments, admin only): add, rename (tickets renamed with it) and delete — a department with tickets cannot be deleted; the demo ticket is seeded only when you tick ‘Include a demo ticket’ at install time — a production install starts with an empty ticket list
- Admin login with bcrypt-hashed passwords, CSRF protection, a regenerated session ID on login, hardened session cookies and throttling (5 failed attempts lock the login for 15 minutes) — no default password; the installer requires a strong password
- Password recovery that preserves data: recover.php (setup-key protected) resets the first ACTIVE admin account’s password (not simply the lowest-id account, which may have been demoted) and keeps every ticket, reply and canned reply
- Versioned schema upgrades: Admin > Schema upgrade migrates an older database (adds and backfills ticket access tokens; v1.1.3 adds agent-account columns and promotes the earliest account to admin; v1.2.0 adds the knowledge-base, attachments and settings tables and seeds three starter KB articles) without touching data
- SQLite database and mail log stored outside the web root by default (an instance-specific deskpilot-data-<hash> folder next to the web root), so ticket data and customer email addresses are never web-reachable; a storage folder inside the web root is accepted only when its protection is proven over HTTP (403/404) — the probe first proves it reached the real deployment, and the verification marker is bound to the version, the site address, the storage path, the database mode and the verified public paths; the same protection check runs in MySQL mode (mail log and attachments on disk)
- SQLite by default (zero setup) or MySQL via the installer (MySQL 5.7 / 8.0, MariaDB 10.4+)
- Web installer that checks requirements, serializes setup, and writes config.php atomically only after every step succeeds — installing needs an operator-provided setup key (a random secret in a deskpilot-setup.key file outside the document root, pasted into the installer; the key is deleted after a successful install, and upgrading the database needs the key too); a fresh install needs the storage folder (outside the web root by default) and, when the storage stays inside the web root, the site address (base_url) so the installer can prove its protection over HTTP; removing config.php while install.lock remains does not allow a fresh install (the installer offers the setup-key reset path instead); a failed install can simply be run again
Requirements
- PHP 8.1 or newer with PDO and pdo_sqlite (SQLite mode) or pdo_mysql (MySQL mode).
- MySQL 5.7 / 8.0 or MariaDB 10.4+ if you choose MySQL mode.
- Apache, Nginx, or the PHP built-in server. A writable app folder (for config.php) and a writable storage folder (outside the web root by default).
Compatibility
- PHP 8.1+ with PDO SQLite or PDO MySQL; Apache, Nginx, or the PHP built-in server.
- Any modern browser (Chrome, Firefox, Safari, Edge). No JavaScript framework required.
Instructions
- Unzip main.zip and upload the files to your web hosting.
- Create the setup key first: put a random string in a file named deskpilot-setup.key in the folder ABOVE the document root (or in the folder above the app folder), then open http://your-domain/install.php in your browser and paste that same string into the “Setup key” field. Without a matching key the installer refuses to run. Then check the server requirements (the storage folder defaults to outside the web root; on shared hosting that jails PHP to the web root, use data/ inside the app folder instead and set the site address (base_url) so the installer can prove the folder’s protection over HTTP).
- Choose SQLite (recommended) or MySQL and enter your database details if needed.
- Choose your admin username and a strong password (at least 8 characters — there is no default password).
- Optionally tick “Include a demo ticket” for a sample ticket to try the panel with. Click “Install DeskPilot”, then delete install.php for security. The installer writes install.lock on success and will not run again while config.php exists; removing config.php while install.lock remains does not allow a fresh install — use the setup-key reset form on install.php instead.
- Log in at admin/login.php and answer your first ticket.
Changelog
v1.2.5 — 2026-11-27 — Fixes: (1) the setup key is now checked secret-first from fixed locations only: the key file lives beside the document root, beside the app folder, or as the in-app fallback — its location is never derived from a submitted storage folder, so a visitor cannot steer the installer at a key file of their choosing — and the submitted secret is compared with hash_equals before any HTTP probe runs, so a wrong secret causes no probe at all; every probe URL is validated against SSRF (http/https only, no userinfo, no unexpected ports, no private, loopback, link-local or reserved address after DNS resolution). (2) The storage-protection probe no longer accepts generic DeskPilot page text as proof it reached the real deployment — it now writes a probe file holding a fresh random challenge into the app folder and requires the exact challenge back verbatim in the HTTP response, so only the server that serves this install can pass. (3) The .protection-verified marker now expires after 24 hours and must be re-proven over HTTP (in both SQLite and MySQL modes), so a server whose access restrictions changed is caught within a day instead of trusted forever; the deny guards are still re-verified on every database connection. (4) Admin > Schema upgrade now needs the same authorization as the installer’s upgrade branch — a logged-in admin plus the operator setup key plus the shared setup lock — so without a valid setup key no migration runs on either upgrade route, and upgrades from both routes can never run at the same time; the key is deleted after a successful upgrade, as on the installer route. No schema change (schema version stays 4). v1.2.4 — 2026-11-26 — Fixes: (1) installing, resetting a locked install, upgrading the database and recovering the admin password now need an operator-provided setup key (a random secret in a deskpilot-setup.key file outside the document root, pasted into the installer or recovery form) — the installer previously accepted unauthenticated installation requests, so any visitor who reached install.php first could claim the first admin account, because config.php and install.lock are only created after installation and cannot block a stranger; the setup key is checked with hash_equals before any lock, filesystem change, HTTP probe or database work on every path, and is deleted after a successful fresh install, a successful upgrade and a successful password recovery, while a reset leaves it in place so the same key authorizes the fresh install that follows; an in-app fallback key (setup.key) is accepted only when an HTTP self-test proves it cannot be downloaded (exactly 403 from the real deployment — a 404 from another virtual host, an error page and a redirect all refuse the key). (2) The storage-protection probe now proves it reached the real deployment first (the app’s own homepage or install.php must answer 200 with the DeskPilot mark), so a 404 from another virtual host can no longer count as “protected”; the probe URL is built from the full site address (including the application path) plus the file’s path relative to the app folder, so an app behind a reverse proxy or a rewritten subdirectory is probed at its real public location, and probe files use the real filenames (app.sqlite and its -wal/-shm/-journal sidecars, mail.log and an attachment) — the probe origin never comes from the visitor’s Host header, so the installer cannot be steered at an arbitrary server. (3) The .protection-verified marker is now bound to the version, the full site address, the resolved storage path, the database mode and the verified public paths (exact comparisons) — a marker from another release, host or location is never trusted and any config change re-probes — and existing in-web-root storage is verified like a new install, with no grandfathering. (4) Storage protection is now enforced in both database modes: MySQL installs still keep the mail log and attachments on disk, so the database connection proves the storage folder’s protection over HTTP in MySQL mode too (mail.log and an attachment), not only in SQLite mode. (5) install.php now enforces install.lock: removing config.php while install.lock remains no longer allows a fresh install — the installer refuses and offers the setup-key reset path instead (deleting install.lock by hand, with file access, is the manual recovery route). (6) The documentation and listing now describe v1.2.4, the setup key and the outside-the-root default throughout. No schema change (schema version stays 4).
v1.2.3 — 2026-11-25 — Fixes: (1) the SQLite database, mail log and attachments live outside the document root by default again (an instance-specific deskpilot-data-<hash> folder next to the web root), so ticket data, customer email addresses and attachments are never web-reachable; a storage folder inside the web root is accepted only when its protection is proven over HTTP (403/404), and the database connection refuses an unproven or exposed location. The installer shows a non-Apache warning on its requirements list and the Nginx deny rule is a checklist item there. (2) The installer has a storage-folder field again, so the operator can choose the outside-root default or data/ on shared hosting, plus a site-address (base_url) field for the probe origin. (3) The product name is DeskPilot everywhere user-visible (the last ‘SupportDesk’ strings in the installer notices and error pages are renamed). (4) Support now routes through WPBay, and the listing no longer carries the price, development hours or other production notes. No schema change (schema version stays 4).
v1.2.2 — 2026-11-24 — Fixes: the documentation now names version 1.2.2 throughout (header and support line), matching the package. Public and admin pages now show a clear ‘not installed yet — open install.php’ page instead of a 500 error when the app is not installed, and a clear ‘database could not be read’ page (check config.php and the storage folder, see documentation.txt, Troubleshooting) when the database cannot be read or its tables are missing; a missing database file is now reported instead of silently creating an empty one.
v1.2.1 — 2026-11-23 — Installer now works on shared hosting: no outside-web-root token, SQLite inside the app folder. The installer no longer needs a setup token (no token file outside the document root, no DOCUMENT_ROOT check); the SQLite database, mail log and attachments are stored in the app’s data/ folder (data/app.sqlite), protected by the shipped data/.htaccess deny rule + guard index.php (verified by the installer), and a successful install writes install.lock. The install.php upgrade branch is now gated on a logged-in admin instead of the setup token (Admin > Schema upgrade is the other upgrade route). No feature changes, no schema change.
v1.1.7 — 2026-11-23 — Review fixes: (1) the admin role check now fails closed — desk_current_role() returns ‘agent’ on any database error and grants the pre-migration admin fallback only when the users.role column does not exist yet or the users table holds exactly one row — the column check uses the new desk_column_exists_strict(), which lets a database error propagate instead of returning false (the plain desk_column_exists() returns false on a broken database too, which would still grant admin) — so a locked or broken database can no longer turn an agent session into an admin one and the upgrade page stays reachable for the installer-created account on a schema-version-2 database; desk_active_admin_count() applies the same narrower condition, so a failed count no longer assumes one admin exists when demoting or disabling an account. (2) The shipped database/schema.sql now stamps schema version 3 (was 2) and its header is updated to version 1.1.7; all CREATE TABLE and CREATE INDEX statements are idempotent (IF NOT EXISTS), and the header and documentation now state the file is a reference copy only — the installer builds the schema in PHP via desk_migrate(), which stamps the version — so importing the file into an empty SQLite database leaves the app with no upgrade prompt and a second import is a no-op. (3) The documentation no longer claims the installer falls back to data/ when the storage folder cannot be created — it now states the installer refuses when the configured storage folder cannot be created and protected, and that data/ is only the guard set for the code-level fallback used when config.php has no storage_dir (with the setup token never placed there). No schema change (schema version stays 3).
v1.1.6 — 2026-11-22 — Review fixes: (1) the install.php upgrade branch can now actually be authorised — the setup-token guard used to run desk_setup_token() only for fresh installs, so for an installed instance with an old schema the upgrade panel named a token file that did not exist; the guard now runs whenever the install is not finished and the instance is fresh or needs an upgrade, so the token is generated for the upgrade branch too (still only in a directory that passes desk_path_inside_docroot() === false plus desk_ensure_storage_protection()), the panel names the file that now exists, and the token file is deleted after a successful upgrade exactly as after a fresh install — when no verified folder outside the web root exists the page still refuses with desk_setup_token_where()’s pre-creation instruction and the exact plain-text file path, and admin/upgrade.php still works as the other upgrade route. (2) The listing description no longer contains seller-internal upload notes and no longer claims a screenshots/ folder — the package ships no screenshots/ folder (the screenshots live only in the listing gallery), so the Screenshots line now says plainly that interface screenshots are shown in the listing gallery and that no live demo is offered, and a Files included section now lists exactly what main.zip contains, matching documentation.txt. No schema change (schema version stays 3).
v1.1.5 — 2026-11-22 — Review fixes: (1) the setup token is never written inside the public web root on the strength of an unverified .htaccess rule — the old data/.setup-token fallback is gone; the token now lives only in a directory that passes BOTH desk_path_inside_docroot() === false AND desk_ensure_storage_protection() (new desk_setup_token_dir()), and when no such directory is available no token is generated or served at all — install.php and recover.php refuse with an operator instruction to pre-create the token file outside the web root (desk_setup_token_where()); as defence in depth the generated token is stored as a .php file that returns the value (requesting it over HTTP reveals nothing), the storage .htaccess carries an explicit per-file deny rule for the token files, and the documentation carries the Nginx equivalent — an operator may still pre-create a plain-text .setup-token file in the same outside-root folder. (2) Malformed non-UTF-8 input no longer crashes the public ticket/reply forms on hosts without mbstring — desk_strlen() now returns strlen() instead of false when preg_match_all() fails on invalid bytes (it always returns an int), and desk_field() rejects non-UTF-8 input with a normal field error (new desk_valid_utf8()), so validation returns the field error instead of relying on the database to fail. No schema change (schema version stays 3).
v1.1.4 — 2026-11-21 — Review fixes: password recovery now resets the first ACTIVE admin account — not simply the lowest-id account, which may have been demoted to agent (or disabled) since the install — using role = ‘admin’ AND active = 1, with a fallback for pre-role databases (where the earliest account is the installer admin) and an explicit error when no admin exists; the documentation and listing wording now state the implemented rule; the installer no longer seeds a demo ticket by default — it is gated behind an explicit, documented ‘Include a demo ticket’ checkbox, so a production install starts with an empty ticket list — and the panel now has a supported way to delete/purge a ticket (admin only, CSRF-protected, on the ticket detail page): deleting a ticket removes the ticket, its replies and its private access token in one transaction, so no orphan replies remain and the customer’s private link 404s at once; the documentation explains how the demo ticket is removed and how a customer’s data is erased.
v1.1.3 — 2026-11-21 — Review fixes: agent accounts — Admin > Users now creates additional agent or admin accounts, changes a user’s role, and disables an account; only admins can manage users or run schema upgrades (admin/upgrade.php answers 403 for agents), a disabled account cannot log in, its session stops working at once, and it never appears in the ticket assignment list; the installer creates the first account as admin and the v1.1.3 migration (schema version 3) adds users.role / users.active and promotes the earliest account to admin when no admin exists yet, while the last active admin can neither be disabled nor demoted; documentation corrected — the login-lockout failure mode now states what the code actually does (an unreadable attempt log is written to the error log and the login is allowed, so the admin can still reach the upgrade page) — and the documentation now carries the v1.1.2 changelog entry and the correct shipped version.
v1.1.2 — 2026-11-20 — Review fixes: MySQL installs with a database name other than the sample default now complete and retry cleanly — the migration checks columns, indexes and tables against the live database name (SELECT DATABASE()) instead of the sample config, and a failed attempt leaves a setup-in-progress marker so the retry recognises and reuses its leftover admin account instead of refusing to install (the retry’s username/password are not applied to the kept account); login throttling now actually works in MySQL mode — attempts are recorded with PHP-computed UTC timestamps bound as parameters (no SQLite-only datetime() in SQL), the lockout check is one driver-neutral query, and a failed attempt-log read is written to the server error log while the login is allowed (failure-tolerant, so a database that has not been migrated yet can still log in and upgrade) instead of failing silently with no trace.
v1.1.1 — 2026-11-20 — Review fixes: instance-specific storage outside the web root (deny guards written and verified, install refused when they cannot be established; moving data + rotating exposed tokens documented); setup-token authorization for the installer and recover.php (serialized setup, atomic config publish, failed attempts never delete another attempt’s database); MySQL DDL as a separate retry-safe phase with transactional seeding (MySQL 5.7/8.0, MariaDB 10.4+); recover.php password recovery that preserves all tickets/replies/canned replies (replaces the old delete-config.php advice); versioned migration (schema v2) that adds and backfills ticket access tokens, with Admin > Schema upgrade and a dashboard upgrade notice; ticket list LIMIT/OFFSET bound as integers with only rendered columns selected; log-only honesty (no screen claims an email was sent; customers told to save the private link; log failures reported to the operator; log location + 90-day retention documented); server-side validation (types, lengths, department membership) with field errors and abuse controls (10 tickets / 10 replies per hour per IP); bounded conversations (latest 25 replies + older navigation, reply-lookup index); admin login with session regeneration, hardened cookies, 5-failure/15-minute throttling with a generic failure response; password changes revoke other sessions; POST-only CSRF-protected logout.
v1.1.0 — 2026-11-18 — Review fixes: per-ticket access tokens enforce ownership (email alone never opens a ticket); database + mail log stored outside the web root; no default admin password (installer requires a strong password + working Change password page); failed installs no longer lock the app; ticket list paginated; associated form labels; Troubleshooting + support route added.
v1.0.0 — 2026-11-17 — Initial release.
Files included:
- index.php, ticket.php — public pages (open a ticket, track it by number and private access link)
- kb.php, kb-article.php — public knowledge base (browse/search, read an article)
- download.php — customer attachment download (ticket access token required)
- recover.php — owner-authorized password recovery (setup-key protected)
- admin/ — admin panel (login, dashboard, ticket management, canned replies, knowledge base, departments, email settings, password change, schema upgrade, user management, attachment download, logout)
- includes/ — shared helpers, database connection + migration, mail delivery (log / PHP mail() / SMTP), app logic
- assets/css/style.css and assets/js/app.js — styling and JavaScript
- install.php — web installer (setup key required)
- database/schema.sql — database schema reference (the installer builds the schema in PHP via desk_migrate(); importing it twice is a no-op)
- data/.htaccess + data/index.php — guards for the storage folder
- config.sample.php — sample configuration (never ship a live config.php)
- documentation.txt — full documentation for this package
Changelog:
v1.2.5 — 2026-11-27 — Fixes: (1) the setup key is now checked secret-first from fixed locations only: the key file lives beside the document root, beside the app folder, or as the in-app fallback — its location is never derived from a submitted storage folder, so a visitor cannot steer the installer at a key file of their choosing — and the submitted secret is compared with hash_equals before any HTTP probe runs, so a wrong secret causes no probe at all; every probe URL is validated against SSRF (http/https only, no userinfo, no unexpected ports, no private, loopback, link-local or reserved address after DNS resolution). (2) The storage-protection probe no longer accepts generic DeskPilot page text as proof it reached the real deployment — it now writes a probe file holding a fresh random challenge into the app folder and requires the exact challenge back verbatim in the HTTP response, so only the server that serves this install can pass. (3) The .protection-verified marker now expires after 24 hours and must be re-proven over HTTP (in both SQLite and MySQL modes), so a server whose access restrictions changed is caught within a day instead of trusted forever; the deny guards are still re-verified on every database connection. (4) Admin > Schema upgrade now needs the same authorization as the installer's upgrade branch — a logged-in admin plus the operator setup key plus the shared setup lock — so without a valid setup key no migration runs on either upgrade route, and upgrades from both routes can never run at the same time; the key is deleted after a successful upgrade, as on the installer route. No schema change (schema version stays 4).
Only logged in customers who have purchased this product may leave a review.
Support by Digishop
Digishop supports this product through WPBay
Questions are handled in WPBay's private ticket system, keeping your purchase details and support conversation together.
After purchase, open this item in My Downloads and choose Get Support.
What support includes
- Answers to product-related questions
- Help with reported bugs and issues
- Guidance for included third-party assets
What support does not include
- Customizations or new features
- Installation or setup services
Maintenance snapshot
See recent updates, compatibility, support, and developer activity.
- Updated 3 days ago
- Developer active recently
- WPBay support available
- Documentation available
Snapshot updated 55 minutes ago
View details Hide details
Maintenance details
This is maintenance data. It does not measure product quality or sales.
- Last update Updated 3 days ago
- Compatibility Not used for scripts
- Releases 13 releases in the 13 days since listing
- Developer activity Developer active recently
- Support No recent support tickets to measure
- Docs and demo Documentation available · Changelog available · No demo listed
Health remained stable during the last 90 days.
How this snapshot works
Script Health
The score is out of 100 and uses data WPBay can check. Ratings, popularity, and sales are not used.
- Last update 35 points
-
Scripts receive full recency points under 45 days, then step down at 120, 240, 365, and 545 days.
- Compatibility Not scored
-
Scripts do not use WordPress or PHP, so compatibility is not scored.
- Releases 20 points
-
One release earns 14, two or three earn 18, and four or more earn 20. Each accepted product ZIP counts once; reprocessing the same upload and listing-only edits do not count.
- Developer activity 20 points
-
Based on WPBay login and dashboard activity. Exact last-login dates are never shown.
- Support 15 points
-
There are no recent WPBay tickets to measure.
- Docs and demo 10 points
-
Documentation: 3. Changelog: 1. Working demo or preview: 6.
Score ranges
- 90–100 Excellent
- 75–89 Healthy
- 60–74 Fair
- 40–59 Needs attention
- 0–39 Limited
Long gaps
WPBay also checks for long gaps between updates, developer activity, support replies, and releases. Buyers do not see this score.
- Time since update 45 points
- Last developer activity 30 points
- WordPress compatibility Not scored
- Support replies 15 points
- Fewer releases 10 points
More by Digishop
Explore more bestselling products from this creator.

Reviews
There are no reviews yet.