carlmfischer.com phpsysinfo configuration on FreeBSD
My webserver is running FreeBSD 6.1, and I installed the phpSysInfo port from /usr/ports/phpSysInfo make install clean
which installed the php port from /usr/ports/lang/php4 as a dependency. I then added the following lines to the httpd.conf:
<IfModule mod_php4.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
Make sure this is in the httpd.conf as well:
LoadModule php4_module libexec/apache22/libphp4.so
I also added index.php
to the httpd.conf under the DirectoryIndex:
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
This way I can simply point to the /sysinfo directory without directing it to /sysinfo/index.php
I then added the following lines to the mime.types in the \usr\local\etc\apache22\ directory:
application/x-httpd-php php
application/x-httpd-php-source phps
Finally, I modified the vitals.php in the /sysinfo/includes/xml/ to display my public ip instead of the internal lan ip:
<IPAddr>" . htmlspecialchars($sysinfo->ip_addr(), ENT_QUOTES) . "</IPAddr>\n"
changed to:
<IPAddr>68.209.114.17</IPAddr>\n"
The sysinfo page is finished and compliments my mrtg and webalizer pages for monitoring the webserver.