Ask Your Question
0

PHP Fatal error: Uncaught Error: Call to undefined function curl_init() ?

asked 2023-05-05 11:30:25 +0000

wagner gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-05 11:31:41 +0000

wagner gravatar image

It appears that the cURL extension is not enabled or installed on your PHP installation. To fix this issue, you need to install and enable the cURL extension. The process to do this varies depending on your operating system and web server setup.

For Debian/Ubuntu-based systems:

Install the cURL extension for PHP:

sudo apt-get update
sudo apt-get install php-curl

Restart your web server. If you are using Apache, you can run:

sudo service apache2 restart

Or if you are using Nginx with PHP-FPM, you can run:

sudo service php-fpm restart
sudo service nginx restart

For CentOS/RHEL-based systems:

Install the cURL extension for PHP:

sudo yum install php-curl

Restart your web server. If you are using Apache, you can run:

sudo service httpd restart

Or if you are using Nginx with PHP-FPM, you can run:

sudo service php-fpm restart
sudo service nginx restart
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

1 follower

Stats

Asked: 2023-05-05 11:30:25 +0000

Seen: 13 times

Last updated: May 05 '23