Page created: 24 Jul 2019
|
Page updated: 8 Feb 2022
| 1 min read
Custom Applications PHP Other Documents Integrations Language English Integration Content Type Product documentation Audience Administrator
- Check that the PHP path environment variable points to the correct location of PHP.
- Create a public HTML directory to host the sample applications.
- From the integration .zip archive, copy the sample directory to root level of the new public HTML directory. This makes the directory accessible at https://hostname/sample.
- Move the sample/config directory to a directory on the server that is outside the public HTML directory. This protects the config directory from unauthorized access.
-
Update the location of the agent-config.txt files. Modify the
following files to point to the new location of the config
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 SP agent-config.txt file.
-
Update the location of the config.properties files. Modify the
following files to point to the new location of the config
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 SP config.properties file.
-
From the public HTML directory, execute the following command to start the PHP
built-in Web Server:
php –s <hostname>:<port>