Installing Perfex CRM Next: Subdomain, public/, Cron and What Breaks
Install Next on a subdomain with the document root on public/, register the licence, set the cron. The five things that break, and the fix for each.
The installation itself is a web installer and takes ten minutes. Everything that goes wrong goes wrong in the five places below, and four of them are decided before you run the installer.
We sell Perfex modules, not hosting or installation services. This is the guide we wrote for ourselves.
Before the installer
Confirm the environment first. Next needs PHP 8.4, specific PHP functions that shared hosts disable, and a document root you can point at a subfolder. The requirements article has the one-line checks; run them as the web user, not just on the CLI.
Then decide where it goes. The shape that works:
- Next on its own subdomain,
crm.example.com, document root at/path/to/next/public - Classic left exactly where it is, untouched, still serving
Installing Next over the top of Classic is the one arrangement to avoid. They are different applications with different directory layouts; the free Classic Migrator reads Classic in place and never writes to it, which only works if Classic is still there.
1. Document root on public/ - the 404 maker
Next is a Laravel application. The web server must serve public/, and everything above it - .env, storage/, vendor/, modules/ - must be unreachable over HTTP.
Symptoms of getting this wrong:
| What you see | What it means |
|---|---|
| Directory listing of the app folder | Root one level too high |
404 on every URL except / | mod_rewrite missing, or AllowOverride None |
| Blank white page, 500 in the log | Usually PHP version or a missing extension |
.env downloads in a browser | Stop. Root is wrong and your credentials are public |
That last one is not theoretical. If you reached the install by rewriting from the account root into public/ instead of moving the document root, test it explicitly: request /.env and confirm you get a 403 or 404, not a download.
On Nginx the root directive points at public and the usual Laravel try_files $uri $uri/ /index.php?$query_string; applies. On Apache, mod_rewrite must be enabled and .htaccess honoured.
2. Writable directories
The web server user must be able to write:
storage/app/storage/framework/storage/logs/bootstrap/cache/- the
.envfile, during installation only
A permission problem here shows up as a 500 with nothing useful in the browser. storage/logs/laravel.log has the real message - unless the log directory is itself unwritable, which is the circular failure that makes this confusing. Check permissions before blaming anything else.
3. Register the installation
New in Next, and easy to miss because the installer does not do it.
The installer stores your licence key. The installation still has to be registered:
- Open License from the sidebar logo menu
- Set Environment to Production
- Click Register this installation
Until then the CRM shows a licence warning and does not download updates. You can also register from Account, Licenses on perfexcrm.com using the installation URL and the Identification key shown in the License dialog.
One licence covers one production installation, plus staging on that same domain or a subdomain of it, plus local installations on your own machine. Local installs are detected from their address and need no registration, on up to five machines per update.
The copy trap: cloning production to create staging gives the copy production’s identification key, and the two then fight over the production seat. Run this on the copy first:
php artisan core:generate-key --force
Then set its Environment to Staging, save, and click Run optimize in Platform health.
4. The cron job
Required. Not “recommended if you use reminders” - the cron runs queued email, reminders, recurring invoices and automations.
Set it to run every minute, with the full path to PHP that your host uses for the CLI. Then confirm it in Platform health (sidebar logo menu, then Debug) rather than assuming the crontab line is correct. Platform health reports cron status, the queue driver, storage and PHP version in one screen, and it is the first place to look whenever something stops happening on time.
While you are there, leave the queue driver on cron. The database and redis drivers need a worker process running continuously, and when that worker dies - a reboot, an OOM kill, a host migration - jobs simply queue up forever. No error, no alert, no email going out. That silence is why the default exists.
5. Docker, if the host allows it
There is an official Docker installation path, and it changes two defaults worth knowing: scheduled tasks and the queue are handled for you, and the queue driver is database with the worker actually supervised. That is the one context where database is the right choice, because something is keeping the worker alive.
If you are choosing between a cheap shared plan that barely meets the requirements and a small VPS running the Docker setup, the VPS is less work over a year.
After it comes up
Four things, in this order.
Complete the initial setup. Company details, currencies, taxes, number formats. Getting numbering right before any document exists is much easier than renumbering later.
Configure email. Migrated from Classic or not, email settings never come across. Next supports Gmail and Microsoft 365 over OAuth for ticket mailboxes, which means no stored mailbox password - use it if either applies to you.
Set up payment gateways. Gateway keys are never migrated either, for the obvious reason.
Check Platform health again. PHP version, cron, storage, queue. Thirty seconds, and it is the baseline you will compare against the first time something misbehaves.
The first week
Four checks that catch most of what goes wrong quietly.
Send a real email on day one. Not a test from the SMTP settings screen - an actual invoice to an address you control. Delivery problems are a separate discipline from configuration problems, and they surface as “customers say they never received it” three weeks later. SPF, DKIM and DMARC matter as much here as they did on Classic.
Watch the queue for a day. Platform health reports the driver; what it cannot tell you is whether work is actually draining. Issue something that queues - an email, an automation - and confirm it completed rather than assuming.
Confirm .env is unreachable. Request /.env and /storage/logs/laravel.log over HTTP. Both should 403 or 404. If either returns content, the document root is wrong and your database credentials are public.
Take a backup and restore it somewhere else. A fresh install is the cheapest possible moment to prove your backup process works, because there is nothing to lose if it does not.
If you are migrating rather than starting fresh
Install Next empty and import into it. The free Classic Migrator will let you import into a populated installation after a confirmation, but then you are reconciling two sets of customers by hand, and that is an afternoon nobody budgets for.
Order that works:
- Install Next, create the first admin, register the licence
- Install the free Classic Migrator, point it at Classic, read its report
- Run it, keep the tab open, let the batches finish
- Copy the Classic
mediafolder into Next’spublic/mediaby hand - Reconfigure email, gateways and the cron
- Keep Classic running until every person has signed in at least once
Step 2 is where you find out what your migration actually costs, because the report names what will not move - and in this version that includes proposals, contracts, subscriptions and all third-party module data. The full inventory is here, with queries you can run before you install anything.
Not sure whether to move at all yet? Classic is still maintained and still sold, and for three specific situations it remains the better choice.
If you would rather have the decision made from your own data, send us your table list. We read Perfex databases for a living and the answer costs you nothing.
Common questions
Where should I install Perfex CRM Next?
On its own subdomain, such as crm.example.com, with the document root pointed at that installation's public/ folder. Leave an existing Classic installation running at its current address until you have checked your data in Next.
Why do I get a 404 or a blank page after installing Perfex CRM Next?
Almost always the document root. It must point at the public/ directory, not at the installation folder. If the browser shows a directory listing or the raw index of the app folder, the root is one level too high.
Does Perfex CRM Next need a cron job?
Yes, and it is not optional. The cron runs queued email, reminders, recurring invoices and automations. New installations use the cron queue driver, which needs nothing beyond the cron line itself.
Why does my Perfex CRM Next installation say it must be registered?
The installer saves the licence key but the installation still has to be registered as Production from the License dialog in the sidebar logo menu. Until then the CRM shows a licence warning and will not download updates.
How do I create a staging copy of Perfex CRM Next?
Run it on your production domain or a subdomain of it, set Environment to Staging in the License dialog, and save. If you copied production to make it, run php artisan core:generate-key --force on the copy first, because it otherwise carries production's identification key.