- Open your website files using a File Manager, FTP, or SSH.
- Navigate to your website's root directory. This generally will be:
- Plesk: httpdocs
- cPanel: public_html
- Create a new file named phpinfo.php in your associated website root directly
You do have the option to add this file into any subdirectory of your choosing. - Add the following lines into your phpinfo.php file:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?> -
Save your edits.