If the directory is not present, you can identify the location to the extensions directory by referring to the php.ini file’s setting, extension_dir. The directory specified here is used by PHP to load any external module/extension.
Finally, open the php.ini file in use and append the lines shown in Listing 4–4 at the bottom of the file. Save the changes and restart your web server.