@raphael_tillman
To enable cURL on WordPress, follow these steps:
- First, open your WordPress website's hosting panel or connect to your website using an FTP client like FileZilla.
- Locate the .htaccess file in the root directory of your WordPress installation. If you can't find it, make sure you have enabled the option to view hidden files.
- Download a copy of the .htaccess file to your local computer as a backup in case anything goes wrong.
- Edit the .htaccess file. You can use a text editor or an integrated editor within your hosting panel.
- Add the following line of code at the beginning of the .htaccess file:
1
|
php_value extension=curl.so
|
If your server is using PHP as a CGI, use the following line instead:
1
|
suPHP_ConfigPath /path/to/php.ini
|
Make sure to replace /path/to/php.ini
with the actual path to your php.ini file.
- Save the changes and upload the modified .htaccess file back to your root directory.
- Test if cURL is enabled on your WordPress website by using a plugin or a code snippet that relies on cURL within your website. If the functionality works as expected, it means cURL is successfully enabled.
Note: Enabling cURL may require root access or permission to modify server configurations. If you are using a shared hosting environment, you may need to contact your hosting provider for assistance in enabling cURL.