The php is important to many website as many other services depend on it to work. Having the latest version is usually recommended, however sometimes it causes backwards compatibility issues. By default most web control panels such as cPanel and Plesk will have the php installed already. You can find out a lot about an server from the phpinfo such as the version of other services on your server.

If you create a few lines of php code and load this into an browser, it will provide you the phpinfo. Our file is called phpinfo.php

<?php phpinfo(); ?>

Now, to load up the phpinfo.php file, we would go to the the domain, it will look like:, however I haven’t enabled this link for this website. As an rule of thumb, it is best to keep your php version hidden as vulnerabilities are found code and could be exploited by someone if they realize you have an older version.

If you go to to an search engine, you can see what the phpinfo file will look like.