To perform the secure HTTPS transfers you will need to enable the openssl extension then you have to install the composer. In this article, we will cover the enabling openssl for XAMPP as well as WAMP one by one then we will install the composer.
- Enable openssl extension on XAMPP
- Enable openssl extension on WAMP
- Installation of Composer
Enable PHP’s openssl extension on XAMPP:
- Step 1: Open XAMPP control panel and click on the Config button for the Apache module.
- Step 2: Then from the given options, select PHP (php.ini) option. This will open the php.ini file in the default text editor (example: notepad).
- Step 3: Now we have to search for extension=openssl line in that file.
- Step 4: After you find it, see if there is any semicolon ‘;’ at the beginning of the line. If there is then that means it is disabled. So remove the semicolon to enable the extension.
- Step 5: Save and Close the file. And there you have openssl extension enabled.
Enable PHP’s openssl extension on WAMP:
- Step 1: Run the WAMP Server installed on the system.
- Step 2: Now Left Click on the Green WAMP icon on the bottom right corner in windows and go in PHP option.
- Step 3: Then go to the PHP extensions option and there you will find the openssl option. If there is a green tick mark at the beginning of it then it means it is enabled. If not then you can enable it by clicking it.
- Step 4: Now restart all the services and you have enabled openssl extension.
Note: You can also enable openssl on WAMP by going in the php.ini file.
Install Composer: After following the above steps for enabling the openssl, you can follow the following steps to install Composer
- Step 1: Download the Composer-Setup.exe file and run it.
- Step 2: After running, you will see a popup box asking for the install mode. Here select Install for all users, which is also a recommended option, and hit Yes.
- Step 3: In Installation Options window, we don’t want the Developer mode, so we will let it be unpicked and click on Next.
- Step 4: Now, you will have to choose the PHP command-line. For XAMPP, the path will be C:\xampp\php\php.exe and for WAMP, the path will be C:\wamp64\bin\php\php7.3.12\php.exe and click Next. If you don’t find the path in the drop down then you will have to browse it. The version of PHP can be different for you.
If don’t have installed Visual C++ Redistributable for Visual Studio then it will show you below error. So to proceed you have to install that first.
- Step 5: Now in the Proxy Setting, leave every thing as it is and click on Next.
- Step 6: Now, verify the settings and click on Install.
- Step 7: Now you will see the following windows which means that the Composer is installed. Click on Next and hit Finish.
- Step 8: Now, to check if composer installed properly, open cmd, and type composer and hit Enter. If you see the output as below then it is successfully installed. If not then you will have to restart your PC and try again.
- How to Install ImageMagick and Imagick PHP extension in Ubuntu ?
- Difference Between “php artisan dump-autoload” and “composer dump-autoload”
- jQuery | disable/enable an input element
- How to enable/disable all input controls inside a form element using jQuery ?
- How to enable Bootstrap tooltip on disabled button ?
- Web Browsers that support Java Applets and how to enable them
- How to Enable Copy and Paste in Oracle VirtualBox?
- How to make sure clients have enough words in textarea by using angularjs in order to disable/enable a button?
- How to enable cURL in PHP?
- How to enable routing and navigation between component pages in Angular 8 ?
- Express.js | app.enable() Function
- How to Enable Webcam in Angular 10 using ngx-webcam ?
- How to enable customers to know if your wordpress website delivers at their pincode or not?
- Multipurpose Internet Mail Extension (MIME) Protocol
- OOPS | Generalization as extension and restriction using Java
- How to remove extension from string in PHP?
- Kotlin extension function
- Why to use .html instead of .htm extension?
- How to remove .html extension from URL of a static page ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.