Deploying on the PHP built-in web server
Steps
-
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
.ziparchive, copy thesampledirectory to root level of the new public HTML directory. This makes the directory accessible athttps://hostname/sample. -
Move the
sample/configdirectory to a directory on the server that is outside the public HTML directory. This protects theconfigdirectory from unauthorized access. -
Update the location of the
agent-config.txtfiles. Modify the following files to point to the new location of theconfigdirectory.-
Open
sample/idp/pingidentity/opentoken/helpers/config.phpfor editing. -
Change the following line based on the new location of your
configdirectory:const AGENT_CONFIG_FILE = "../config/idp/agent-config.txt";
-
Repeat the equivalent steps a-b in
sample/sp/pingidentity/opentoken/helpers/config.phpfor your SPagent-config.txtfile.
-
-
Update the location of the
config.propertiesfiles. Modify the following files to point to the new location of theconfigdirectory.-
Open
sample/idp/Const.phpfor editing. -
Change the following line based on the new location of your
configdirectory:define("CONFIG_FILE", "../config/idp/config.properties"); -
Repeat the equivalent steps a-b in
sample/sp/Const.phpfor your SPconfig.propertiesfile.
-
-
From the public HTML directory, execute the following command to start the PHP built-in Web Server:
php –s <hostname>:<port>