Simple Errors v. 0.1

Quick jump:

Welcome!

This guide will help you install, configure, and optimize Simple Errors.

Thank-you for downloading Simple Errors. Simple Errors simple overrides the default Apache Error pages with your own, customized version.

Please note: this script is under the GNU GPL license. So, while it is free, the "powered by Simple Errors v. x.xx by kneuf!" must remain at the bottom of every page.

Requirements

The exact requirements are unknown, as this is a beta.

But the basics include:

Included Files

Make sure that when you got this, that these files are all present:

Installation

  1. If you don't already have it, download it! Go to kneuf.com to do so.
  2. Open config.inc.php and edit the following:
  3. Open errors.php and edit the first line that says
    include("/full/system/path/to/config.inc.php"); and fill in the full system path to the config.inc.php file.
  4. Open the(or create, remember that the file name is .htaccess!) .htaccess file in the directory that you want to have Simple Errors monitor (NOT the one that came with Simple Errors!). Note: Any directory that above this will also be monitored. E.x., say you put it in your root directory, say, /, and there is another directory above that, /test/, then that directory will also be monitored.
    1. Remember to back-up the .htaccess file before making any changes to it!
    2. Add the following lines:

      Note: If you install this script in a directory other than /errors/, then change /errors/ to the directory you are going to be installing this script in.
    3. Save all files, and upload only the .htaccess file we just modified.
  5. Edit header.txt, or footer.txt if you want.
  6. Edit the HTML in the errors.php file if you wish, and upload all files. Recommended install directory is /errors/.
  7. CHMOD error_log.log to 755, so it can be written to.

Optimize Simple Errors

You can optimize Simple Errors in a variety of ways. Perhaps the most important one is the error_type.log file. You can add news error codes and information to it easily. But make sure you add a new line to the .htaccess file that has all the ErrorDocument stuff in it.

Example, add a new error code: 999, "Just Made This Up"
  1. Open up error_type.log and have a look at it. Its format is:
    ErrorCode|Title|SubTitle|ErrorText
    
  2. So, the new line that we will be adding is:
    999|999 - Just Made This Up|Just Made This Up|This error means that I was lazy and couldn't figure out a better example.
    
  3. Don't forget to add this line to the .htaccess file with all the ErrorDocument stuff in it:
    ErrorDocument 999 /errors/errors.php?999
    
  4. Re-upload and presto! You should now have a new error for the script to handle.

Upload Hierarchy

When you upload the files, and put them in a directory called /error/ (recommended), here is what is should look like:

Contact

To contact kneuf!, visit www.kneuf.com.

To visit the GNU website, www.gnu.org.

To visit the GNU GPL license website, www.gnu.org/licenses/licenses.html#GPL.

View the GPL license (local), gpl.txt.

The End!

Hope this help file helps in a way. A remember: Simple Errors is under the GNU GPL license!

That is all to this help file.

PS: If .htaccess file doesn't work for you, make sure that you have it enabled (ask your system operator) or if it is used with a different filename, use that instead.

Powered by Simple Errors by kneuf!