Error Plus IP

Server Requirments:

1. Unix with Apache Software. Sorry windows directory structure not supported!
2. PHP VERSION "4.3.10" or greater.
3. cURL activated in PHP.
4. Ability for custom error documents in .htaccess file.
5. Access to MySQL Database.

Setup & Installation Instructions:

Step 1. Visit http://home-port.com/resources/pg_addlink.php & add your web site to our links. NOTE: Without a recipocal link, the installation will fail!

Step 2. Create a MySQL database and add a username with full privileges!

Step 3. Upload files into their own directory. Name this directory anything you want.

Step 4. Chmod 777 the directory you just created in step 3.

Step 5. Chmod 666 your root .htaccess file, if you don't have one create a blank one and chmod it 666.

Step 6. Open a browser and visit http://yourdomain.tld/new_directory/install.php and follow the directions.

Step 7. Log on with Username: admin2 & Password: errorip

Integration with your web site:

Step 1. Modify header.php and footer.php with a template of your web site design. Since errors can appear anywhere on your web site, it is HIGHLY RECOMENDED to use full url for all images and links in the header.php and footer.php files.

Example: http://yourdomain.tld/images/background.jpg or for SSL web sites https://yourdomain.tld/index.html

If you have never used header and footer files before. Then visit this tutorial: http://www.choicetemplates.com/tutorials.php?name=headfoot for a better understanding.

Step 2. You may want to also change the following web pages:

401_middle.php
403_middle.php
404_middle.php
500_middle.php

These files have the wording for the actual errors that visitors will receive. Make modifications as you wish.

Setup Cron for Auto Update of Database:

We update our IP to Country database every two day's. For most web sites that would be a bit of overkill, we recommend that you set your cron job to run once a week, or once every other week. Use one of the following formats:

GET http://yourdomain.tld/new_directory/err_cron_update.php > /dev/null

php -q -f /home/USERNAME/PATH/TO/NEW_DIRECTORY/err_cron_update.php
Questions or Problems, please contact soft_dev@home-port.com