Knowledgebase

PHP Configuration: Everything That Matters, Briefly Print

  • phpversionsconfiguration, php, errors, backup, security, htaccess, troubleshooting, uploads, permissions
  • 0

The whole category in one page.

THE VERSION

Use a current supported one. Newer is faster and receives security updates.

Back up and test before changing.

If something breaks, revert and read the error log. It names the file.

THE SETTINGS THAT MATTER

  • Memory limit: raise modestly when an error names it
  • Upload and post size: both, and post must be larger
  • Execution time: for imports and backups, not for pages visitors load
  • Max input vars: raise when settings silently fail to save

THAT LAST ONE

The most confusing problem in this category. No error appears; the submission is simply truncated.

Suspect it whenever something saves partially.

FOR DIAGNOSIS

The error log names the type, the message, the file and the line.

That combination identifies the cause almost every time.

FOR A BLANK PAGE

Fatal error with display off. Check the log.

FOR A 500 ERROR

Log first, then .htaccess, then permissions.

WHAT NOT TO DO

Raise limits repeatedly without asking why Enable every extension Leave error display on


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot