Developer workflows tutorials
PHP configuration, cron, redirects and deploying your own code.
5 tutorials, easiest first
For people deploying their own code. Upgrade PHP safely using a staging copy, schedule tasks with cron, keep old URLs working with redirects, and deploy either a Laravel application or a static front-end build. Node.js and Python apps are supported too; these tutorials cover the PHP and static patterns most small sites use.
- Upgrade your site to a newer PHP version safely
Check compatibility, test the new PHP version on a staging subdomain, switch the live site and watch the error log.
Covers: Record the current version; Update the application; Set staging to the new version; Test staging and read its log; Fix or replace incompatible code; Switch the live domain; Watch the live error log.
- Schedule a task with a cron job
Write a small PHP task, schedule it in DirectAdmin, log its output and confirm it runs on time.
Covers: Create a folder outside public_html; Write the task; Open Cronjobs; Set the schedule; Enter the command; Wait and check; Replace with your real task; Remove the test.
- Deploy a React, Vue or static-site build
Build a front-end project locally, upload the output, add single-page app routing and long-lived caching.
Covers: Set the base path; Build; Zip the output’s contents; Upload and extract; Add routing for single-page apps; Test deep links; Force HTTPS.
- Redirect old URLs after a redesign
Map old addresses to new ones, add 301 redirects in .htaccess, and verify no important page is left returning 404.
Covers: Collect old URLs; Map each to its best match; Write the rules; Test a sample; Check for 404s.
- Deploy a Laravel application to Traxio
Build a Laravel app locally, upload it with the code outside public_html, configure .env, import the database and schedule the task runner.
Covers: Match PHP versions; Build a production copy; Package the app; Upload outside the web root; Publish the public folder; Repoint index.php; Create the database; Configure .env; Load the schema; Storage and links; Schedule the task runner.