Deploying on Linux or Unix
You can manually deploy the PHP Integration Kit sample applications on UNIX or other Linux platforms.
Steps
-
From the integration
.zip
archive, copy thesample
directory to root level of the DocumentRoot of your Apache HTTP server. This makes the directory accessible at https://hostname/sample. -
Move the
sample/config
directory to a directory on the server that is outside the DocumentRoot. This protects theconfig
directory from unauthorized access. -
Update the location of the
agent-config.txt
files. Modify the following files to point to the new location of theconfig
directory.-
Open
sample/idp/pingidentity/opentoken/helpers/config.php
for editing. -
Change the following line based on the new location of your
config
directory:const AGENT_CONFIG_FILE = "../config/idp/agent-config.txt";
-
Repeat the equivalent steps a-b in
sample/sp/pingidentity/opentoken/helpers/config.php
for your SPagent-config.txt
file.
-
-
Update the location of the
config.properties
files. Modify the following files to point to the new location of theconfig
directory.-
Open
sample/idp/Const.php
for editing. -
Change the following line based on the new location of your
config
directory:define("CONFIG_FILE", "../config/idp/config.properties");
-
Repeat the equivalent steps a-b in
sample/sp/Const.php
for your SPconfig.properties
file.
-
-
Change the ownership and permission of the sample application configuration files for the user and/or group that runs the Apache server by doing the following:
chown –R <apache_user> <config_dir>/
chmod u+w <config_dir>/
-
If your PingFederate server is hosted on another computer, go to the following URLs and change the PF Host Name value in the SP and IdP sample applications configuration.
-
https://hostname/sample/idp/ConfigUI.php
-
https://hostname/sample/sp/ConfigUI.php
-