Imagick is recognized by WAMPServer but not by PHP - installation

ImageMagick is installed correctly. WAMP'S "PHP Extension" menu also shows php_imagick with a check. phpinfo() shows no trace of the imagick extension except for Apache and System Environment Variables. All paths are correctly specified.

you should check whether in php.ini file there is a line dealing with imagick
extension=imagick.dll

Related

FATAL ERROR: PHP mbstring extension is not enabled (IIS8/Windows 2012)

I am facing issues while install MantisBT after installing PHP 7.2 in IIS8 / Windows 2012 server.
When I open the page http://localhost:9099/admin/install.php in the browser, I get the following error:
"FATAL ERROR: PHP mbstring extension is not enabled."
Here is a screenshot of the error.
Here is the solution..
After investigate the issue the reason was php.ini file is getting recognized by server
Rename the .ini development or production to only .ini so that application can get the path and issue will be resolved
Had the same issue here
I triple checked everything in regards to setting up my PHP.ini file
but there is a comment that mentions on Windows servers, you have to add a line to the config to specify the extension directory
For PHP 8 I had to add the following line to the top of the extension section
extension_dir = "ext"
(also making sure to uncomment extension=exif as the detault config said it was needed)
I rebooted with the CMD command "IISReset" and my webapp that required mbstring booted up fine!

How to install composer - Missing openssl

I have read How to enable PHP's openssl extension to install Composer? and You must enable the openssl extension to download files via https
They both state that the php file needs to uncomment extension=php_openssl.dll from the php.ini files which live in both these folders:
C:\wamp64\bin\apache\apache2.4.17
C:\wamp64\bin\php\php7.0.0
C:\wamp64\bin\php\php5.6.16 ' I don't think I need to, but did it any way
I've done that, and then restarted the PC.
WAMP is running on my Windows 10 machine
The same error always shows when trying to install Composer
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 openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
What do I need to do to install Composer?
Edit
From C:\PHP (the PHP folder) I started a command prompt and ran php -r "phpinfo();"
In the results, there is the following:
OpenSSL support => disabled (install ext/openssl)
I have followed http://php.net/manual/en/faq.installation.php#faq.installation.addtopath
You have multiple version of PHP installed:
C:\wamp64\bin\php\php7.0.0
C:\wamp64\bin\php\php5.6.16
C:\PHP
The PHP version, which you run on the CLI is based on your environment PATH variable. The first PHP path wins.
run php --ini on the CLI. It will show you which php.ini is included and also the path of PHP
edit this php.ini file and activate the extension=php_openssl.dll
then run php -m to check, if the extension is loaded
then run composer

how can I enable PHP Extension intl?

I am going to install Magento2 at my local server and it gives me following error notice.
I am using XAMPP. When I tried to enable it from php.ini file it throws another error for missing dll:
The program can't start because MSVCP110.dll is missing from your computer. Try reinstalling the program to fix this problem.
Any help?
First of all stop the xampp/wamp and then kindly remove the starting semicolon ( ; ) from your xampp/php/php.ini the following code.
;extension=php_intl.dll
And then restart your xampp/wamp.
I wrote this post if anyone come across this question for PrestaShop, I don't know if it will work for Magento2. I solved enabling PHP extension intl for the PrestaShop installation by:
Open XAMPP Control Pane.
Stop the Apache server if it was started.
Then from Config button click on PHP (php.ini) item.
Php.ini will open in Notepad (or a default text editor), click Ctrl + F and search for ;extension=intl and remove the semicolon.
Then save and close Notepad and re-start the Apache server.
These steps for me solved the issue.
Note (2):
I'm using XAMPP v3.2.3 and PrestaShop v1.7.5.1
If you are using ubuntu you can take update
sudo apt-get update
And install extension in case of php 5.6
sudo apt-get install php5.6-intl
And in case of php 7.0
sudo apt-get install php7.0-intl
And in case of php 8.1
sudo apt-get install php8.1-intl
And restart your apache after
sudo service apache2 restart
And restart your nginx after
sudo systemctl restart nginx
If you are using xampp then remove semicolon ( ; ) in xampp/php/php.ini from below line
;extension=php_intl.dll
And then restart your xampp.
I was also having the same issue, and just now i got it solved.
Please try the bellow steps to get it solved:
Open php.ini and remove semicolon (;) from ;extension=php_intl.dll
When you try to restart the apache it will through some errors, that might be because of some .dll files. Simply copy all the icu****.dll files
From
Xampp folder/php
To
Xampp folder/apache/bin
Still i was getting msvcp110.dll file missing error. I have downloaded this missing file from Here and put that in desired location
For windows 7 32 bit it is - C:\Windows\System32
Now Start Apache and it is working fine.
Starting with PHP 7.2.0, you only need to specify the extension name.
I.e., add the following line to your php.ini:
extension=intl
See PHP's docomentation on loading extensions for more informations.
I have seen the screen shoot, the issue you are having is missing msvcp110.dll , this file you can download from
https://www.dll-files.com/msvcp110.dll.html
and upload to C:/Windows folder
than after edit php.ini from XAMPP
Change
;extension=php_intl.dll
to
extension=php_intl.dll
Save the file and restart Apache from XAMPP
For Megento Installation you Need to
Stop Apache Service
uncomment the extension=php_intl.dll in php.ini file.
copy all 6 files icudt57.dll,icuin57.dll,icuio57.dll,icule57.dll,iculx57.dll,icuuc57.dll From php folder to apache\bin
Now Restart you apache service
All you need to do is go to php.ini in your xampp folder (xampp\php\php.ini) and remove ; from ;extension=php_intl.dll
;extension=php_intl.dll
TO
extension=php_intl.dll
Simply copy all icu****.dll files from
C:\xampp\php
to
C:\xampp\apache\bin
[or]
C:\wamp\bin\php\php5.5.12
to
C:\wamp\bin\apache\apache2.4.9
intl extension will start working!!!
ADDITIONAL NOTE (As this is very old question and has no accepted answer yet)
I am on xampp-win32-7.2.3-0-VC15-installer on Windows10-64bit.
here is the notes I see in my php.ini file.
Note : The syntax used in previous PHP versions ('extension=.so' and
; 'extension='php_.dll') is supported for legacy reasons and may be
; deprecated in a future PHP major version. So, when it is possible, please
; move to the new ('extension=) syntax.
So you will only find the extension name as intl instead of php_intl.dll and then uncommenting that line should work (It worked for me atleast).
extension=intl
I was having same kind of problem with ldap, intl, curl php extensions. I've solved those issues by the following ways:
At first you've to check whether these extensions have been enabled in the php.ini file by removing semicolon (;) in front of the following lines:
;extension=php_intl.dll
;extension=php_ldap.dll
;extension=php_curl.dll
Secondly, libeay32.dll, ibssh2.dll and ssleay32.dll files have to be loaded by php properly to function those extensions properly. These dll files are required by several php extensions (ie curl, ldap, intl etc). These files generally reside in the php installation directory [for my case it is C:\php directory].
Additionally, for intl extension to be enabled you're gonna need some other dll files to be loaded by php properly. The name of these files begin with icu (ie icudt57.dll icuin57.dll etc for php version 5.6). You'll also find these files in the php main installation directory.
There is a alternate way you can load these files from your httpd.conf (apache configuratio file) file instead of copying them to the apache's bin directory. This can be done by using the following technique:
Please note that my php version is 5.5.
LoadFile "C:/php/icudt51.dll"
LoadFile "C:/php/icuin51.dll"
LoadFile "C:/php/icuio51.dll"
LoadFile "C:/php/icule51.dll"
LoadFile "C:/php/iculx51.dll"
LoadFile "C:/php/icutest51.dll"
LoadFile "C:/php/icutu51.dll"
LoadFile "C:/php/icuuc51.dll"
LoadFile "C:/php/libeay32.dll"
LoadFile "C:/php/libssh2.dll"
LoadFile "C:/php/ssleay32.dll"
That's it.
I have found two errors during the installing of Magento to localhost.
There are PHP Extension xsl and intl and I have solved the issue by following steps.
Open php.ini
Remove '#' cha from the lines extension=php_xsl.dll and extension=php_intl.dll.
Save the file and restart xamp again
Click Try Again on Magento installation page.
Then all the things were passed as well as following picture.
Go to C:\xampp\php
open the file "php.ini-development" on a text editor.
Then uncomment ;extension=php_intl.dll by removing the semicolon
Use phpinfo() function to find php.ini file path,
open php.ini file. Here search extension=php_intl.dll then remove semi-colon (;) beginning of that line.
After removing semi-colon (;) restart you webserver (apache).
For enable PHP Extension intl , follow the Steps..
Open the xampp/php/php.ini file in any editor.
Search ";extension=php_intl.dll"
kindly remove the starting semicolon ( ; )
Like :
;extension=php_intl.dll
to
extension=php_intl.dll
Save the xampp/php/php.ini file.
Restart your xampp/wamp
Hope its work..Cheers..
On My windows I just opened Xampp control panel then on Apache Module same line I clicked on Config then it shows all reconfigured files then choose
PHP (php.ini)
the file will be opened in text editor like notepad then search for extension you want then change
;extension=php_intl.dll
to
extension=php_intl.dll
That's all hope it will work
Here is all command lines to install magento2
PHP Extension xsl and intl. CMD
sudo apt-get install php5-intl
sudo apt-get install php5-xsl
sudo php5enmod xsl
sudo service apache2 restart
PHP Extension mcrypt. CMD
sudo updatedb
locate mcrypt.ini
sudo php5enmod mcrypt
sudo service apache2 restart
If the below line is not available or commented in C:\xampp\php\php.ini, then add it or uncomment and restart the apache server then it works.
extension=php_intl.dll
First of all, you need to stop your server and
go to this path xampp/php/php.ini and find this ;extension=php_intl.dll and then you need to remove the semicolon ( ; ) from the following code and save the file.
And then restart your server.
Enable the intl extension in the php.ini file.
Under Apache, click config.
Click php.ini.
ctrl + f to search intl to find the extension.
Remove the semi-colon to enable the extension. (This is something that wasn't self explanatory to me at first).
Save the file. Restart your apache server in xampp. The error should now be resolved.
You can find the answer here: http://www.dorusomcutean.com/how-to-install-php-7-2-on-windows/
In that blog post, I'm showing how to install PHP on Windows and how to enable extensions. Hope that it helps anyone who encounters this problem again.
After installing Laminas, I got the same error message
"Translator component requires the intl PHP extension"
while wanting to view the web application with the php web server:
php -S 0.0.0.0:8080 -t public public/index.php
As I'm usgin XAMPP, in
c:\xampp\php\php.ini
I had to enable the PHP extension intl in this line ;extension=php_intl.dll, remove the starting semicolon (;) and restart XAMPP. I hope this will help.
i had this prob but solved !
enable the extension=php_intl.dll
now if you restart XAMPP this error will popup "msvcp110.dll is missing form your computer"
for solving this error: download this file from : https://www.dll-files.com/msvcp110.dll.html
then put this file to C:windows and then restart xampp it will works.
For instalation of magento on local host you need to uncomment the extension=php_intl.dll in php.ini and copy all icudt57.dll,icuin57.dll,icuio57.dll,icule57.dll,iculx57.dll,icuuc57.dll files from php folder to XAMPP\apache\bin folder.
Then Restart the xamp server
Download the files and try to install them. One or two files may fail to install.
http://www.microsoft.com/en-sg/download/details.aspx?id=30679

Unable to load dynamic library; cannot open shared object file

When I use php artisan migrate:rollback with Laravel 5, I get this error:
Warning: PHP Startup: Unable to load dynamic library
'/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' -
/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so:
cannot open shared object file: No such file or directory in Unknown
on line 0
Warning: PHP Startup: Unable to load dynamic library
'/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll'
- /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll:
cannot open shared object file: No such file or directory in Unknown
on line 0
Application In Production! *
Do you really wish to run this command? [y/N]
You are getting that error because those libraries are not in: /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/
First, check if those files exist on your server and change to the right path.
Second, if they are not in your server, you need to install them.
I am not sure which OS you are using, but this is how you do it in Ubuntu / Mint
sudo apt-get install php5-mcrypt
sudo apt-get install openssl
Usually XAMPP contains this library. It might be a bad installation, path change or file manipulation issue as well. In these cases, try to reinstall it.
in my case, I've tried to run my shell command prompt in my xampp control, It works like magic, just go to xampp control, click the shell button, and type the directories where your file is located, type php artisan serve Hope this help.

Laravel 4 - Composer Error

I have some problems with composer and Laravel 4.
First I downloaded the laravel-master zip file.
But after starting the install command of Composer I get this error:
Screenshot
What am I doing wrong?
You need to enable the OpenSSL extension for your PHP installation. In your php.ini file (in C:\xampp\php) uncomment the following line:
extension=php_openssl.dll
Just remove the ; in front of it.
Once you've saved your changes, restart Apache, and it should work.

Resources