44 articles
Knowledge Base
PHP
44 articles in the PHP category · page 1 of 2.
- cPanel: verify every PHP version has the PHP2Shell fix Audit every ea-php and alt-php version on a cPanel or CloudLinux server for the PHP2Shell fix, including the backported 7.4, 8.0 and 8.1 builds whose version number never changed. You will prove each one from its package changelog, map domains to versions, close the gaps and restart the right workers.
- Docker PHP security update: rebuild, pin and verify Get the PHP2Shell fix into your PHP containers by rebuilding them on a fixed official php image and pinning that image by digest. You will recreate every container and prove that each one runs the new image and reports a fixed PHP version.
- How to update PHP on a Linux server after a security fix Install a PHP security update on a Linux cloud server, whether PHP came from Ubuntu, Debian, Red Hat, cPanel EasyApache 4, Remi or a source build. You will restart every PHP worker and confirm the fixed package is the one serving your site.
- PHP 7.4, 8.0 or 8.1: how to get the PHP2Shell fix Get the PHP2Shell security fix onto a server still running PHP 7.4, 8.0 or 8.1, which receive no php.net release. You will pick between a vendor backport, the PHP security team's source patch and an upgrade, then prove the fix is running.
- WordPress "PHP Update Required" notice: cause and fix Find out what triggers the WordPress "PHP Update Required" notice and how urgent it is. You will see who can change the PHP version, change it safely, and confirm that the notice is gone.
- PHP November 2026 security release: who must update Find out which PHP versions on your cPanel or WordPress server need the PHP security release of 19 November 2026. You will compare each version with the fixed one, check the settings that expose a server, then update and confirm.
- How to check which PHP version your site really runs Find the exact PHP version and build that serves your website, using the command line, a phpinfo page, cPanel or WordPress Site Health. You will also learn to read distribution package versions, so you can tell whether a security fix is installed.
- PHP 8.6 for WordPress on cPanel: when to upgrade Decide when to move a WordPress or WooCommerce site on cPanel to PHP 8.6, which was released on 19 November 2026. You will check what your server and WordPress support today, test your plugins and theme against 8.6 on a copy, and know the conditions for switching.
- PHP2Shell mitigations to apply until you can patch PHP Reduce exposure to CVE-2026-109618 and CVE-2026-109619 while you wait for a fixed PHP package, using only the settings the PHP project recommends. You will set them where PHP reads them first, restart every worker and check they took effect.
- Fix "Unit php8.3-fpm.service not found" on Ubuntu When systemctl answers that php8.3-fpm.service is not found, you can find which PHP-FPM versions are really installed, reinstall the service with the extensions your WordPress site used, and point nginx or Apache at the new socket. You finish with the unit running and pages served by the PHP version you expect.
- Fix "apache_php_fpm appears to be down" in cPanel When WHM emails that the service apache_php_fpm appears to be down, you can find which ea-php PHP-FPM version failed, read the log line that names the cause and fix it. You will then confirm the service, the monitor and your WordPress sites are healthy again.
- cPanel ea-php83 and ea-php85: files, php.ini and FPM Find every file and service that belongs to one ea-php version on a cPanel & WHM server, from the binaries and php.ini to the PHP-FPM pool, socket and logs. You will also see which version each domain uses and how to change the right file for ea-php82, ea-php83, ea-php84 or ea-php85.
- PHP 8.2 end of life: plan the move to 8.3 or 8.4 Plan your move off PHP 8.2 before its end of life on 31 December 2026, the date after which php.net ships no more security fixes for it. You will find every WordPress site, cPanel account and Composer app still on 8.2, choose between PHP 8.3 and 8.4, and work a timeline backwards from the deadline.
- Was Your Server Hit by PHP2Shell? What to Check Find out whether a Linux or cPanel server received PHP2Shell exploit attempts for CVE-2026-109618 and CVE-2026-109619 since 17 October 2026, and whether anything got in. You will read the right logs and firewall events, then check the disk, cron and processes for signs of a web shell.
- Fix WordPress "Cannot modify header information" warning Fix the WordPress warning "Cannot modify header information - headers already sent" by finding the file that printed output too early. You will read the two file paths in the message, remove the stray byte order mark, blank line or debug output, and confirm logins and redirects work again.
- Upgrading a production app to PHP 8.4 without downtime surprises Upgrade a production PHP app to 8.4 with an easy way back. Find deprecated code with PHPStan and Rector first, then run PHP 8.4 beside your current version and switch one site over with a single reload.
- PHP cURL performance: connection reuse, timeouts, and parallel requests Learn how to make PHP's cURL calls faster and safer. This guide shows you how to reuse connections, set timeouts so a slow API cannot freeze your site, and send several requests in parallel with curl_multi.
- Migrating PHP 7.x applications to PHP 8.x: the operator checklist Migrate a production PHP 7 application to PHP 8 without taking the site down. You will scan the code for breaking changes, audit extensions and Composer packages, run PHP 8 in parallel on its own pool, and move live traffic over once your tests pass.
- Imagick vs GD: which PHP image extension to use, and how to check GD is bundled with PHP, cheap on memory, and fine for resize and crop. Imagick wraps ImageMagick and wins on formats, ICC colour and downscale quality, at a real memory and security cost. Decide between them, then verify what your server and WordPress actually use.
- PHP date and timezone configuration: getting time right in production Where PHP takes its timezone from at every layer — date.timezone in the CLI and FPM ini files, the database session time_zone, the OS tzdata rules — and the exact bugs that follow when those layers disagree.
- PHP-FPM pools explained: one pool per site on a shared server What a PHP-FPM pool actually is, every directive in a pool config file and what it does, how to run one pool per site with its own user, socket and limits on nginx or cPanel/WHM, and exactly what that isolation does and does not buy you.
- PHP-FPM Unix socket vs TCP port: which transport, and when it matters On one host a Unix domain socket is the right default for PHP-FPM; across hosts TCP is the only option. The speed gap is tens of microseconds — the failure modes (socket permissions, a full listen backlog, ephemeral port exhaustion) are what actually decide it. Full listen, fastcgi_pass and SetHandler config for both.
- Move WordPress to PHP 8.5 on cPanel with a real compatibility test loop A repeatable PHP 8.5 compatibility check for WordPress and WooCommerce on cPanel: clone to a staging vhost, run only staging on 8.5, capture deprecations to their own log, attribute every line to a plugin or theme, then flip production with a one-dropdown rollback.
- PHP runtime security hardening: disable_functions, open_basedir, and more How to harden a PHP runtime using disable_functions, open_basedir, and other ini directives that constrain what PHP can do on a production server.