Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Aq1's avatar
Level 1

"You need to install the imagick extension to use this back end" - cpanel error

Hi. I'm a beginner, learning laravel. I'm working on a two factor google authentication feature. I've used these two packages pragmarx/google2fa-laravel and bacon/bacon-qr-code. I did the implementation on localhost and I received an error in the barcode page "You need to install the imagick extension to use this back end" , so I installed the imagick in my application and included .dll files in C:\xampp\apache\bin . By doing so, my errors were resolved and the authentication was working fine on localhost. Now I've implemented the project on live. But again I'm getting this error "You need to install the imagick extension to use this back end"..

I need help to install imagick on my server. Any ideas?

0 likes
4 replies
devfrey's avatar
devfrey
Best Answer
Level 11

If you have shared hosting, contact your hosting provider and ask them to install the extension.

diegoaurino's avatar

Hello, @aq1 !

We need more details about your deployment setup to help you.

For example, there is a package in Debian based distributions called php-imagick. When you install this package on Ubuntu, the system will automatically change your PHP configuration for you. You just need to reload your servers.

In case you have limited access to the server, things start to get complicated and you need to request support as @devfrey suggested. Other companies give you access to a "user-based" php.ini. So you need to check if it is available.

Let me know if it helps.

Please or to participate in this conversation.