# phpinfo

This step is optional, but can easily save your hours of frustration.

As a pre-install test of the hosting system, a very small, but useful PHP script is created locally, and uploaded to the target system.

The PHP script is only one line:

```php
<?php phpinfo();
```

Using a text editor, create a file named *info.php* with this one line.

Next, upload this file to your web root.

![Filezilla info.php Upload](https://265890714-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_EjUvXXbOiEMe2qFIc%2F-L_EkOTndUbjmkcnpXxm%2F-L_EkQFcuvQwiCaJ9n_A%2Ffilezilla-01-info.png?generation=1551821291943923\&alt=media)

Access your script by opening it in your browser, i.e. accessing `http://example.com/info.php`. If everything is working correctly, you should see a page something like this:

![phpinfo() Example](https://265890714-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_EjUvXXbOiEMe2qFIc%2F-M0BjT4zPv747av8zUyR%2F-L_EkQFekRIua_XTegx7%2Fphp-info.png?generation=1581835479601474\&alt=media)

Note: some hosting services may disable the *phpinfo()* function as a security measure. You usually will receive a message to that effect, if that is the case.

The output of the script might come in handy for troubleshooting, so consider saving a copy of it.

If the test works, you should be good to go for the install. You should delete the *info.php* script, and proceed with the install.

If the test fails, investigate why, as whatever issue is preventing this simple test from working **will** prevent a real install from working.
