Author - StudySection Post Views - 30 views

ImagickException not authorized Laravel

I found this error when I was going to convert PDF pages into thumbnail images on my Laravel project.
In order to resolve this problem, I’ve performed the following steps in Laravel.

For this, we need to modify the Read and Write policy under the policy.xml file. I have mentioned the complete path below, I am going to use the NANO file editor to edit the target file but you can choose other file editors like VI and VIM editor according to your flow.

After opening the policy.xml file, jump to the bottom of the file and edit the following line.



After editing the line it should be like below

Now we need to restart the apache, for this, you can use the following command:

webner@localhost:~$ sudo /etc/init.d/apache2 restart

This resolved my issue. ImagickException was no longer being stuck and ImageMagick was generating our images once more.
Microsoft Windows 10 is a widely used operating system in computers all over the world. If you have skills in Microsoft Windows 10 then you can get a Windows 10 Certification from StudySection which can help you in getting hired. A beginner level certification exam for newbies and an advanced level certification exam for experts is available on StudySection.

Leave a Reply

Your email address will not be published. Required fields are marked *