Custom PHP page / Link

Permalink
I have a small bit of php code I would like to execute from a link or button.

I have the code in a php file already, and the content is in a site folder, but I can't point to it. It executes code on the server.

A How do I point/link to one of these custom pages on my own site?
B I have the files in /var/www/custom

Sample page code:
<?php
$output = shell_exec('ipmitool -I lan -H 000.000.000.000 -U xxxx -P xxxxx chassis status');
echo "<pre>$output</pre>";
?>