Imagick extension installation issue xampp - imagick

I am trying to install Imagick extension on windows 10 with PHP version 8.0.3 but getting below error
PHP Warning: PHP Startup: Unable to load dynamic library
'php_imagick.dll' (tried: D:\xampp\php\ext\php_imagick.dll (The
specified module could not be found),
D:\xampp\php\ext\php_php_imagick.dll.dll (The specified module could
not be found)) in Unknown on line 0
Windows : 10 X64
PHP version : 8.0.3
Steps to reproduce:
I have added imagick.dll file in xampp\php\ext directory
Added CORE_RL_.dll and IM_MOD_RL_.dll in xampp\php folder.
Added extension=php_imagick.dll in xampp\php\php.ini file
Restarted xammp
Getting below error on webpage
enter image description here
In the PHP error log below error is logged.
PHP Warning: PHP Startup: Unable to load dynamic library 'php_imagick.dll'

First download this: https://windows.php.net/downloads/pecl/releases/imagick/3.7.0/php_imagick-3.7.0-8.0-ts-vs16-x64.zip
Extract from php_imagick-….zip the php_imagick.dll file, and save it to the ext directory of your PHP installation
Extract from php_imagick-….zip all the other DLL files and save them to the PHP root directory (where you have php.exe)
Add this line to your php.ini file:
extension=php_imagick.dll
Restart the Apache/NGINX Windows service (if applicable)

Related

Unable to install composer in xampp php 7.3.9 in windows 10

Iam unable to install composer in my windows system with Xampp installed with PHP version 7.3.9
Please find the error message.
"A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist."
Program Output:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo.dll' (tried: C:\xampp\php\ext\php_pdo.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_pdo.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_73_ts_x86.dll' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_73_ts_x86.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_pdo_sqlsrv_73_ts_x86.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'openssl' already loaded in Unknown on line 0
Please See the Inline comments for errors and Warnings
1A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Answer: Checked the extension_dir(extension_dir="C:\xampp\php\ext"). Path was correct So I checked for the below warnings.
Program Output: PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo.dll' (tried: C:\xampp\php\ext\php_pdo.dll (%1 is not a valid Win32 application.),
Answer: Commented ;extension=php_pdo.dll
C:\xampp\php\ext\php_php_pdo.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_73_ts_x86.dll' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_73_ts_x86.dll (%1 is not a valid Win32 application.),
Answer: Removed these extensions which I have used for connecting to the SQL server
C:\xampp\php\ext\php_php_pdo_sqlsrv_73_ts_x86.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP
Answer: Removed these extensions which I have used for connecting to the SQL server
Warning: Module 'openssl' already loaded in Unknown on line 0
Answer: Openssl was loaded twice, Comment one in php.ini file
Also please check that the composer is already installed in your program files
Thanks
Vysakh

Xdebug Failed loading C:\php\ext\php_xdebug.dll

Issue:
I am getting this error in my Apache log on start up:
Failed loading C:\php\ext\php_xdebug-2.9.2-7.4-vc15-x86_64.dll
Xdebug Wizard:
I used the xdebug wizard, which resulted in these instructions:
Download php_xdebug-2.9.2-7.4-vc15-x86_64.dll
Move the downloaded file to C:\php\ext
Edit C:\php\php.ini C:\WINDOWS\php.ini and add the line
zend_extension = C:\php\ext\php_xdebug-2.9.2-7.4-vc15-x86_64.dll
Restart the webserver
Things I have tried:
Using these variations in php.ini:
zend_extension="C:\php\ext\php_xdebug-2.9.2-7.4-vc15-x86_64.dll"
zend_extension=php_xdebug-2.9.2-7.4-vc15-x86_64.dll
I ensured I was editing correct php.ini file
I checked permissions on dll.
I am using:
Apache/2.4.41 (Win64) VC 15
php-7.4.3-Win32-vc15-x64
php_xdebug-2.9.2-7.4-vc15-x86_64.dll
You're using a release candidate of PHP 7.4.1 (php-7.4.1RC1-Win32-vc15-x64) - you might want to use the latest PHP 7.4.3.
You sometimes get a better error message if you try using PHP's command line.

"How to Fix Xampp Error with Ioncube Loader"

I've installed Xampp on windows 10 laptop, my php files needs ioncube loader which i've installed
but there is a problem after copying ioncube_loader_win_5.6.dll into php/ext folder and made changes to php.ini file where i need to put a line "zend_extension = "C:\xampp\php\ext\ioncube_loader_win_5.6.dll"
after doing this my phpmyadmin page don't work gives the below error
Warning: require_once(/byte_safe_strings.php): failed to open stream: No such file or directory in on line 57
Fatal error: require_once(): Failed opening required '/byte_safe_strings.php' (include_path='C:\xampp\php\PEAR') in on line 57
if i remove the ioncube_loader_win_5.6.dll file, the phpmyadmin page works
can anyone help me sort this problem?

Can't install "Composer Dependency Manager for PHP"

root#rushan-PC:~# curl -sS https://getcomposer.org/installer | php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/gd.so' - /usr/lib/php5/20090626/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mcrypt.so' - /usr/lib/php5/20090626/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysql.so' - /usr/lib/php5/20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysqli.so' - /usr/lib/php5/20090626/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'PDO' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_mysql.so' - /usr/lib/php5/20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The suhosin.executor.include.whitelist setting is incorrect.
Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini):
suhosin.executor.include.whitelist = phar
The php.ini used by your command-line PHP is: /etc/php5/cli/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
Terminal gives me this error. Before that, I installed php packages, there was some error
"Unable to correct problems, you have delayed (held) broken packages." But I can install it with aptitude, instead of apt-get. Perhaps, this dynamic libraries errors because of Held packages? Or something...Please, I need some help there:(. Sorry, I'm just a beginner in Linux and programming. And sorry for my English, cuz I'm from Uzbekistan :(
According to information in your error, you should edit your php.ini file (/etc/php5/cli/php.ini) and add the following line at the end
suhosin.executor.include.whitelist = phar
You should edit your php.ini file (/etc/php5/cli/php.ini) and add the following line before the END: keywords.
suhosin.executor.include.whitelist = phar

can't load the Doctrine libriles and PDO drivers

I'm using Win 7, Apache 2.2 and PHP 5.4.4.
I want to add doctrine lib and PDO to my local server.
PHP install path: C:\php\
doctrine lib path: C:\php\extras\doctrine-dbal
PDO drivers path: C:\php\ext
Apache2.2 path: C:\Apache
php.ini
; Windows: "\path1;\path2"
include_path = ".;C:\php\extras;C:\php\extras\doctrine-dbal"
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
phpinfo() image
web app give below error
Warning: require_once(Doctrine/Common/ClassLoader.php): failed to open stream: No such file or directory in C:\Apache\htdocs\stack\UMS\classes\class.dbextractor.php on line 2
Fatal error: require_once(): Failed opening required 'Doctrine/Common/ClassLoader.php' (include_path='.;C:\php\pear') in C:\Apache\htdocs\stack\UMS\classes\class.dbextractor.php on line 2
how can i change the include path for doctrine and PDO drivers in php.ini file

Resources