skip to Main Content

My Hosting server is on linux. I changed php 5.6 to php 8.1 version. But after this cUrl() not work for my codeigniter website. Generates error "Call to undefined function curl_init()". How to solve this problem. Is any package needed to install. If yes then How? Please give the step by step guide for to resolve this issue.

I searched a lot on google. But not get proper solution about this issue. For few search I got the solution about to install cUrl library. But did not get any explanation about commands on linux and on which terminal needs to perform this commands? On desktop terminal or linux server or through cPanel?

Please guide about it

2

Answers


  1. your php 8.1 is missing the package curl
    you have to update the packages type :

    apt-get update -y
    

    or

    yum update -y
    

    after that check if the packages like this :

    apt-cache search php8.1-curl
    

    you will have like this :

    php8.1-curl - CURL module for PHP
    
    Login or Signup to reply.
  2. Provisioning the curl services in Cpanel via Easy Apache works up to PHP 8.3. Past Date actions for wordpress as well as Wordfence rules refresh are now functioning perfectly. Thank you!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search