A few CMSs need PHP library which is not activated as default. For example, in installation an e-commerce named magento (www.magentocommerce.com), needs a few PHP extensions. Usually, a good CMS checks system requirements before installation begins. Image below is an example for system requirements checking on Magento Installation.
Clik here to view.

System Requirement Checking on Magento Commerce
We could use phpinfo() function to view which extensions have been loaded. The php.ini file is used to configure it. We could find it in PHP installation directory. If you use XAMPP, PHP configuration can be found in [XAMPP's Installation directory]/apache/bin.
To edit it, simply use a text editor (such as notepad). Find which extension will be activated. For example, in magento case, it needs curl and mcrypt extensions to be activated. All we need is finding lines that have words php_curl.dll and php_mcrypt.dll in php.ini. As default, the configuration for those extensions is:
;extension=php_curl.dll ;extension=php_mcrypt.dll
To activate them we need to delete semicolon in the first character of those two lines. If we have done, restart apache and check extensions status using phpinfo().
Question: why does we delete that semicolon?
In PHP configuration file (you will find the same thing in apache configuration), a semicolon is used to mark that the line after that will not be executed. Because of that, the programmers use it to make comments.
Becareful if you need to edit configuration file. If you make a mistake, possibly your PHP won’t work well. Always make a configuration file backup before make changes, in order to make sure it would be easy to restore the configuration file if something wrong happens.
No related posts.