How to Turn Off expose_php for Plesk

how to Turn Off expose_php for Plesk

In this article, we will guide you on how to turn off expose_php for Plesk, a vital step in improving your website’s security and protecting it from potential vulnerabilities. Exposing your PHP version can provide valuable information to potential attackers, making it essential to hide this information. This guide will walk you through the process and ensure your website remains secure.

Exposing the PHP version running on your server can be a significant security risk for your website. Attackers can exploit vulnerabilities specific to the PHP version, putting your site at risk. To enhance your website’s security, follow our step-by-step guide on turning off expose_php for Plesk.

Why is Turning Off expose_php Important?

Turning off expose_php is essential for several reasons:

  • Security Enhancement: Exposing your PHP version can help attackers find potential entry points. Turning it off enhances your website’s security.
  • Protection from Exploits: Attackers may exploit known PHP vulnerabilities, so concealing your PHP version is a proactive measure.
  • Hacker’s Reconnaissance: By hiding your PHP version, you prevent potential attackers from gathering valuable information about your server.

How to Turn Off expose_php for Plesk

Here’s a detailed guide on how to turn off expose_php for Plesk:

Access Your Plesk Control Panel

  1. Log in to your Plesk control panel using your credentials.

Navigate to PHP Settings

  1. Once logged in, locate and click on “PHP Settings” in the dashboard.

Disable expose_php

  1. Scroll down to find the “expose_php” option and set it to “Off.”

Save Changes

  1. Don’t forget to save your changes to apply the settings.

Verify Your Settings

  1. After saving, verify that expose_php is now turned off. You can do this by creating a PHP info page and checking it.

By following these steps, you’ll successfully turn off expose_php for Plesk, bolstering your website’s security.


Q: What is expose_php in Plesk? A: Expose_php is a PHP configuration setting that displays the PHP version on your server. Turning it off hides this information.

Q: Why should I hide my PHP version? A: Hiding your PHP version is crucial for security as it prevents potential attackers from targeting known vulnerabilities.

Q: Is it safe to turn off expose_php? A: Yes, it is safe to turn off expose_php. It enhances your website’s security without affecting its functionality.

Q: What are the risks of not turning off expose_php? A: Not turning off expose_php exposes your website to potential vulnerabilities and increases the risk of attacks.

Q: Can I enable expose_php when needed? A: Yes, you can enable expose_php temporarily when required and disable it afterward for security.

Q: Are there any other security measures I should take for my website? A: Besides turning off expose_php, consider implementing a firewall, keeping your software updated, and regularly monitoring your site for vulnerabilities.


In conclusion, learning how to turn off expose_php for Plesk is a crucial step in securing your website against potential threats. By following the simple steps outlined in this guide, you can protect your site from known vulnerabilities and enhance its overall security.

Enhance your website’s security today by turning off expose_php for Plesk. By following these steps, you can safeguard your online presence effectively.



Table of Contents