and just for infos, the password I wrote is correct ...
Laravel forge - install imagick - Having permission denied
Hello,
I am using simpleQRcodeIO package and it needs Imagick to run correctly. I found very good link to explain how to do install on laravel forge: https://medium.com/@freekmurze/installing-imagick-on-a-forge-provisioned-php-7-server-27e4faa569fd
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget http://pecl.php.net/get/imagick-3.4.0RC2.tgz
tar xvzf imagick-3.4.0RC2.tgz
cd imagick-3.4.0RC2
phpize
./configure
make install
rm -rf /tmp/imagick-3.4.0RC2*
echo extension=imagick.so >> /etc/php/7.0/cli/php.ini
service php7.0-fpm restart
service nginx restart
The problem is, I am using a forge user, and I am always having "permission denied". The problem is clear, but I don't find the way to have enought rights to be able to process to the installation.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to restart php7.3-fpm.service: Access denied
See system logs and 'systemctl status php7.3-fpm.service' for details.
forge@projetn:/tmp/imagick-3.4.3$ service php7.3-fpm restart
sh: 0: getcwd() failed: No such file or directory
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'php7.3-fpm.service'.
Authenticating as: forge
Password: Failed to restart php7.3-fpm.service: Connection timed out
See system logs and 'systemctl status php7.3-fpm.service' for details.
forge@projetn:/tmp/imagick-3.4.3$ polkit-agent-helper-1: pam_authenticate failed: Authentication failure
service php7.3-fpm restart
sh: 0: getcwd() failed: No such file or directory
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'php7.3-fpm.service'.
Authenticating as: forge
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to restart php7.3-fpm.service: Access denied
See system logs and 'systemctl status php7.3-fpm.service' for details.
forge@projetn:/tmp/imagick-3.4.3$
As you can guess, I do not know a lot about server I suppose ... I am new developper and server is really not my trick. PLease, somebody can explain to me how I am suppose to change my rights in purpose to install Imagick on my laravel forge server (digital ocean) ?
And I find the solution, I have another question, do I need to install imagick in /home directory or inside my /home/mysiteweb.com/ directory ?
Please or to participate in this conversation.