How to Enable MySQLi Extension on Web-Server With cPanel?

//

Heather Bennett

To enable the MySQLi extension on your web server with cPanel, you can follow these steps.

Step 1: Log in to your cPanel account.

Step 2: Scroll down to the “Software” section and click on “Select PHP Version”.

Step 3: In the next screen, you will see a list of available PHP versions. Make sure the one you are currently using is selected.

Step 4: Click on the “Extensions” tab.

Step 5: Look for the “mysqli” extension in the list of extensions. If it is not enabled, click on its checkbox to enable it.

Note: If you cannot find the mysqli extension in the list, it means that it is not available for your current PHP version. In that case, you may need to contact your hosting provider or upgrade your PHP version to a newer one that supports mysqli.

Step 6: Click on the “Save” button to apply the changes.

Troubleshooting

If after enabling the MySQLi extension, you are still encountering issues, here are a few things you can try:

Check PHP version compatibility

Make sure that your PHP version is compatible with the MySQLi extension. You can check this by going back to the “Select PHP Version” screen and ensuring that a compatible version is selected.

Restart Apache

Sometimes, changes in cPanel do not take effect immediately. To ensure that all changes are applied, restart Apache from within cPanel.

  • Navigate to the “Restart Services” section in cPanel
  • Select Apache from the list of services
  • Click on the “Restart” button

Check for any conflicting extensions

If you have other PHP extensions enabled that may conflict with the MySQLi extension, try disabling them temporarily to see if it resolves the issue. You can do this from the “Extensions” tab in the “Select PHP Version” screen.

Conclusion

Enabling the MySQLi extension on your web server with cPanel is essential for working with MySQL databases. By following these steps, you can easily enable it and start using it in your PHP applications. Remember to save your changes and consider troubleshooting if any issues persist.

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy