Skip to content

Hardening PHP 7 and below using cPanel

If your application is still running on PHP 7.0 or earlier, it is important to harden your environment to reduce security risks. On ruachost.com, you can configure PHP settings directly in cPanel to improve security and performance.

  • PHP 7 and below are end‑of‑life and no longer receive official security updates.
  • Hardened settings reduce exposure to vulnerabilities.
  • Helps prevent exploits such as remote file inclusion, code injection, and information leakage.
  1. Log in to cPanel.

  2. Go to Software → Select PHP Version.

  3. Confirm the current version.

    • Ruachost supports multiple versions (4.4 through 8.4).
    • If possible, upgrade to PHP 8.x for better security.

In cPanel → Select PHP Version → Options tab, adjust the following:

  • Visit your site and confirm functionality.
  • Check logs for errors.
  • Adjust settings as needed to balance security and usability.