Checking PHP Prerequisites

PamelaWare has two requirements for the PHP environment you operate in.

  • You must use PHP version 5 (or higher)
  • You must have a PHP library called php5-mcrypt installed - this library contains cryptographic libraries that are required for operation of the plugin.

Checking PHP Info

You can check to see what your current php environment looks like by using the PHP "phpinfo()" function:

  • Place a file called "phpinfo.php" in the main directory of your web account or document root (instructions on creating or downloading that file are at the bottom of the page).
  • Travel to that file using a browser (for example, go to http://pamelaproject.com/phpinfo.php)
  • If you are successful, you should see a page that starts like this:

Example of the header of a correctly called phpinfo file

Checking PHP Version

  • If the main header says PHP Version 4.something, you will need to upgrade to PHP version 5 before continuing.
    • If you are using a web hosting service, you may be able to specify the PHP version on your control panel (if not, you'll need to contact support)
    • If you are using your own server, you will need to find out how to install php5 packages on your particular operating system

Checking for php5-mcrypt

  • Assuming you are indeed using PHP version 5, scroll down through the PHP info, or search for the word "mcrypt".
  • If you have the mcrypt libraries installed, you will see a section in the page that looks like this:

Example of an installed php5-mcrypt module

  • If you don't have this module installed, you will have to contact your web hosting service or use native operating system installation procedures to install the php5-mcrypt package.

Making a PHP info file

You can either create a phpinfo.php file from scratch, or get the pre-created phpinfo.php? file attached to this page -- the file should only be three lines long in either case.

To create a new phpinfo.php file, edit a file of that name in the root directory of your web account or document root, and place the following three lines in that file:

<?php
  phpinfo()
?>

Attachments