Developer tools
Cron jobs, .htaccess, redirects, environments and deploying code.
- Adding security headers with .htaccessAdd HTTP security headers — HSTS, X-Content-Type-Options, Referrer-Policy, frame protection and Permissions-Policy — safely with .htaccess.
- Creating custom 404 and error pagesReplace the plain server error pages with your own 404, 403 and 500 pages using .htaccess, and make sure a 404 still returns the right status code.
- Cron schedule syntax explained (with examples)Read and write cron schedules: the five fields, *, ranges, lists and step values, plus copy-ready examples for common schedules.
- Deploying a PHP application (Composer, Laravel and frameworks)How to deploy a Composer-based PHP app such as Laravel or Symfony on shared hosting: building locally, keeping code outside public_html and environment files.
- Deploying a website with GitClone a repository into your account with DirectAdmin’s Git feature and pull updates to deploy, keeping secrets and build artefacts out of the repo.
- Hosting static sites and JavaScript framework buildsDeploy the output of Astro, Hugo, Eleventy, Jekyll, or a React, Vue or Next.js static export to Traxio, with routing rules for single-page apps.
- How to connect to your hosting with SSHLog in to your Traxio account’s command line over SSH on port 26628, set up key-based login, and the everyday commands that are useful on shared hosting.
- How to create a cron job in DirectAdminSchedule scripts and commands to run automatically with DirectAdmin cron jobs: the schedule fields, the command line, and handling output.
- Redirects with .htaccess: copy-ready examplesWorking .htaccess redirect rules for single pages, whole folders, domain changes, HTTPS and www — with notes on 301 vs 302 and avoiding loops.
- Running PHP scripts from cron: paths, output and common mistakesWrite PHP scripts that run reliably from cron: the PHP binary path, working directory, includes, time limits, locking and logging.
- Storing configuration and secrets outside public_htmlKeep database passwords, API keys and SMTP credentials out of the web root with config files above public_html, .env files and protective .htaccess rules.
- What is .htaccess? A practical guideWhat .htaccess files do, where they apply, the rules people use most, and how to recover quickly when one breaks your site.
Tutorials
- Upgrade your site to a newer PHP version safelyCheck compatibility, test the new PHP version on a staging subdomain, switch the live site and watch the error log.
- Schedule a task with a cron jobWrite a small PHP task, schedule it in DirectAdmin, log its output and confirm it runs on time.
- Deploy a React, Vue or static-site buildBuild a front-end project locally, upload the output, add single-page app routing and long-lived caching.
- Redirect old URLs after a redesignMap old addresses to new ones, add 301 redirects in .htaccess, and verify no important page is left returning 404.
- Deploy a Laravel application to TraxioBuild a Laravel app locally, upload it with the code outside public_html, configure .env, import the database and schedule the task runner.