How to Create phpinfo() test page on a FreeBSD

Fig.08: Apache + PHP server ready on FreeBSD

Fig.08: Apache + PHP server ready on FreeBSD

Create a code as follows to test your PHP setup on a FreeVSD server:

<?php
    phpinfo();
?>

Save and close file. If you saved this in a file called foo.php. Run url as:

http://your-domain/foo.php

Examples and usage: How To Install Apache, MySQL, PHP stack on FreeBSD Unix Server