Enabling PHP Modules

Phlickr uses two several of PHP5's extensions, CURL and SimpleXML. In some cases these two extensions may not be enabled by default.

The first step is verify that the modules are not already being loaded. You view a list of the modules using the following command:

$ php -m
[PHP Modules]
...
curl
...
SimpleXML
...

[Zend Modules]

Enabling extensions is a platform specific task.

Windows

By default the Windows build of PHP5 comes with SimpleXML compiled in so you'll only need to enable CURL.

  • Find the location of the php.ini file:
    C:\>php -r "print get_cfg_var('cfg_file_path');"
    C:\WINDOWS\php.ini
  • Open the php.ini file with Notepad: C:\>notepad C:\WINDOWS\php.ini
  • Find the line ";extension=php_curl.dll" and remove the semi-colon at the begining.
  • Save the file.
  • Re-run the php -m command to verify that the modules will now load.

FreeBSD

Su to root

$ su
Password:
hostname#

Use portinstall to install the two modules from FreeBSD's ports collection.

hostname# portinstall php5-curl
hostname# portinstall php5-simplexml

Re-run the php -m command to verify that the modules will now load.

It's simple enough

I have this problem previously.But now it's well and my system is working good.I will verify when ever I will need it.I faced this problem when I was enrolled for 642-383.
Thanks for sharing.After all life is for sharing.