Xampp Warning: Module ‘openssl’ already loaded in line 0

Module ‘openssl’ already loaded in line 0

The warning “Module ‘openssl’ already loaded in line 0” typically occurs when you have duplicate entries or conflicting configurations for the OpenSSL module in your XAMPP environment. This warning is more of an annoyance than a critical error, and it doesn’t usually affect the functionality of your XAMPP server. However, it’s still a good idea to resolve the issue to keep your configuration clean and error-free.

To fix this warning, you need to identify where the OpenSSL module is being loaded multiple times and remove the duplicate entry. Here are some steps to troubleshoot and resolve the issue:

Locate the PHP.ini files:

    • In your XAMPP installation directory, navigate to the “php” folder.
    • Inside the “php” folder, look for the “php.ini” file. There may be multiple “php.ini” files, depending on the PHP version you are using. Make sure to edit the one that corresponds to the PHP version you are using with XAMPP. You need to open php.ini and Cntrl+F and find extension=php_openssl.dll and uncomment it. ;extension=php_openssl.dll
  1. Check for duplicate entries:
    • Open the “php.ini” file using a text editor (e.g., Notepad, VSCode, etc.).
    • Use the find feature of your text editor to search for “openssl” in the file.
  2. Remove duplicate ‘openssl’ entries:
    • If you find multiple occurrences of “openssl” being loaded as a module, remove the duplicate entry. You can either comment out the duplicate line by adding a semicolon (;) at the beginning of the line, or you can simply delete the redundant line.
    • Save the changes to the “php.ini” file and close the text editor.
  3. Restart the Apache server:
    • After making the changes to the “php.ini” file, restart the Apache server in XAMPP. This will apply the changes you made to the PHP configuration.
  4. Verify the warning is gone:
    • Access your XAMPP server’s local website (e.g., http://localhost/) and check if the warning is no longer displayed. If everything is configured correctly, the warning should no longer appear.



Remember, when making changes to configuration files like “php.ini,” it’s essential to back up the original file before making any modifications. This way, you can easily revert to the previous state if something goes wrong.

If you continue to encounter the warning after following these steps, double-check your changes, and ensure you have edited the correct “php.ini” file. Also, ensure you restarted the Apache server correctly. If the warning persists and you’re still experiencing issues, it might be helpful to seek assistance from the XAMPP community or forums where experienced users can provide further guidance.

Leave a Reply