PHP
PHP versions, settings and errors, and what they mean for your site.
- Changing PHP settings: memory_limit, upload size and execution timeWhich PHP settings people usually need to change, how to find out which ones your account can adjust, and why server limits act as ceilings.
- Choosing a PHP version: compatibility and support datesHow to pick a PHP version for your site, what changed between 7.4 and 8.x that breaks old code, and why staying on old versions is risky.
- How to change the PHP version in DirectAdminSwitch a domain or subdomain to a different PHP version in DirectAdmin, test the result and roll back instantly if something breaks.
- How to check which PHP version your site is usingFind the PHP version, loaded extensions and settings your site actually runs with, using phpinfo() or WordPress Site Health.
- How to find PHP errors (error logs and display_errors)Where PHP errors are recorded on Traxio, how to log errors without showing them to visitors, and how to set up logging for a custom application.
- PHP extensions: how to check what’s availableWhat PHP extensions are, how to see which are loaded for your PHP version, and what to do when an application says one is missing.
- Understanding PHP error messagesHow to read a PHP error: fatal errors, parse errors, warnings, notices and deprecations, what each means for your site, and where to look next.
- What is PHP? The language behind most websitesPHP explained: what the language does on a web server, why WordPress and most hosting apps depend on it, and why the version matters.
- “Allowed memory size exhausted” PHP errorWhat the PHP memory exhausted error means, how to check the memory limit, and how to reduce memory use rather than only raising the limit.
- “Call to undefined function” PHP errorWhat the undefined function error means, and how to tell whether the cause is a removed PHP function, a missing extension or missing code.
- “Cannot modify header information - headers already sent”Fix the PHP headers already sent warning: stray whitespace, byte order marks and output before redirects or cookies.
- “Maximum execution time exceeded” PHP errorWhy PHP stops long-running scripts, how to work within the limit with batching and cron, and when raising max_execution_time is appropriate.
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.