-
Notifications
You must be signed in to change notification settings - Fork 2
setup2
#Step 2: Set Up Your Test Environment
-
Create a local folder for this tutorial project. You can create this folder anywhere you want on your hard drive and name it anything you want.
-
Install the PHP SDK
Follow the gedcomx-php SDK installation instructions.
- (For Windows) Enable security certificates for PHP as follows:
-
Copy the cacert.pem file generated by the authors of curl into a folder on your server. You can copy it to any folder but you might want to put it in a logical spot in your PHP server folders. For example:
C:\xampp\php\extras\ssl\cacert.pem
-
Insert the following line into your php.ini file which can be found in the root of your PHP server folder:
curl.cainfo = "[pathtothisfile]\cacert.pem"
For example
curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
- Start the Internal PHP Web Server
Open a console, move to your tutorial project folder, and enter the following command:
php -S localhost:5000