Configuring your PHP server
To allow your PHP server to work with the PHP Integration Kit, check that the correct extensions are installed and configure your agent config file.
Steps
-
On your PHP server, use the phpinfo() function to check that the cURL, mcrypt, zlib, and mhash extensions are installed.
-
Check that your PHP server is configured to process files with a .php extension.
On the Apache HTTPD server, you can use the AddType command to add the extension:
AddType application/x-httpd-php .php
This step is not needed on the built-in PHP web server.
-
From the integration
.zip
archive, copy thedist/pingidentity/opentoken
directory to your PHPinclude
path as/opentoken
. -
Change
AGENT_CONFIG_FILE
in thepingidentity/opentoken/helpers/config.php
file to point to the location of theagent-config.txt
file that you saved in Configuring an OpenToken Adapter instance.On Windows, use the network-path syntax:
\\<host>\<path>
-
To avoid internationalization compatibility issues, enforce UTF-8 encoding by explicitly specify
default_charset=utf8
in your PHP server’sphp.ini
file.