Guides tagged “php”

Step-by-step MdmHost guides about php, sorted A-Z.

69 guides · page 4 of 4

  • Tune PHP-FPM pools (pm.max_children) for your RAM

    Size PHP-FPM to your server's memory. Choose between dynamic, ondemand and static, calculate pm.max_children from real per-process memory, set pm.max_requests, and act on the max_children warning.

    AdvancedLinux server6 min read
  • Update DirectAdmin and server software with CustomBuild

    Use CustomBuild in DirectAdmin to update Apache, Nginx, LiteSpeed, PHP, MariaDB, Exim and Dovecot, install extra PHP versions and keep DirectAdmin itself current.

    AdvancedDirectAdmin admin2 min read
  • Upgrade PHP to a newer version on your VPS

    Upgrade a site from PHP 8.1 to 8.3 or 8.4 safely. Install the new PHP-FPM and matching extensions, carry over php.ini changes, switch Nginx or Apache, test, and remove the old version.

    IntermediateLinux server5 min read
  • Use a different PHP version per website in Nginx

    Run each Nginx site on its own PHP version by pointing its server block at a different PHP-FPM socket, give each site a separate pool, and confirm the version without leaving phpinfo exposed.

    IntermediateLinux server4 min read
  • Use Composer for PHP packages on cPanel hosting

    Run Composer on cPanel shared hosting: check it is available, pick the right PHP version, install and update dependencies, handle memory errors and deploy without dev packages.

    IntermediatecPanel hosting2 min read
  • Use LiteSpeed Cache on any PHP site with .htaccess rules

    Cache pages of a custom PHP site or an app without an LSCache plugin using LiteSpeed rewrite rules in .htaccess, with safe exclusions for logged-in users and carts.

    AdvancedcPanel hosting with LiteSpeed3 min read
  • Use PHP OPcache on cPanel hosting with CloudLinux PHP Selector

    What PHP OPcache does, how to check it is enabled in CloudLinux PHP Selector, sensible OPcache options for WordPress, and how to clear it after deploying code.

    IntermediatecPanel hosting with CloudLinux2 min read
  • WordPress Site Health explained: fix the common warnings

    Understand WordPress Site Health status and info: what each common critical issue and recommendation means on cPanel hosting, and how to fix or safely ignore it.

    BeginnercPanel hosting3 min read
  • wp-config.php explained: the settings that matter

    Understand and edit wp-config.php: database settings, table prefix, security keys, debug options, memory limits, URLs and other useful WordPress constants.

    IntermediatecPanel hosting3 min read

Browse by topic

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.