I'm trying install Apache + PHP + Magento2.1 + MySQL in Windows 10.
I've already installed:
Magento-CE-2.1.8_sample_data
Content saved in C\Apache24\htdocs
Apache-2.4.27-Win64-VC15.zip
Directory: C\Apache24
PHP Version 5.6.31 php-5.6.31-Win32-VC11-x64.zip
Directory: C:\PHP
mysql-community-5.7.19 (Msi installer)
In the setup installation (Readiness Check) the follow errors are showed:
PHP Extension curl.
PHP Extension xsl.
PHP Extension intl.
PHP Extension mbstring.
PHP Extension openssl.
PHP Extension gd.
I've already uncomment this extensions in php.ini
I've copied icud?57.dll files in apache root dir.
Can anyone tell me, What can be happening? Thanks!
The PHP modules loaded are:
C:\>cd php
C:\php>php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
filter
ftp
gd
hash
iconv
intl
json
libxml
mbstring
mcrypt
mhash
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
Versions from 5.6.0 to 5.6.4 are not supported. Only php 5 supported are from 5.6.5 and above.
I'd better suggest using php 7 to have better support also for your extensions
Check it better here
Otherwise, check better for the PHP modules you are enabling.
According to this question you have to make sure that all the subsequent modules are enabled, and some are missing in your list.
PDO/MySQL
mbstring
mcrypt
mhash,
simplexml,
curl,
gd2,
ImageMagick 6.3.7 (or later) or both
soap and
add xdebug.max_nesting_level=50000; at php.ini
Related
I am running Laravel 5.7.14 on PHP 7.2-fpm on Ubuntu 16.04.
My code in the local environment was working fine, but once I uploaded it to the production server I got this error message: Missing BC Math or GMP extension.
I have installed both GMP + BC Math. When I run the command php -i | grep -i bcmath I get this:
/etc/php/7.2/cli/conf.d/20-bcmath.ini,
bcmath
BCMath support => enabled
bcmath.scale => 0 => 0
When I run php -m I get this:
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
I have restarted the server multiple times and cleared Laravel's cache but nothing's changing, I keep getting this error message.
What am I missing here? If you need more info do not hesitate to ask.
Managing multiple PHP versions is sometimes very messy.
If you are on a Linux-like system and try to upgrade PHP versions you sometimes end up with 2 versions on the same system. Not infrequently (especially when you manually have configured the previous version) the newly installed version does not get enabled to use with the webserver. Personally I've also experienced upgrading PHP and getting the apache to use the new version but as a module instead of FPM so you should also be wary of that if you are using apache since again FPM and the PHP module for apache might have different configurations as well.
My server upgraded to PHP7 and now I am getting an error which reads "Your PHP installation appears to be missing the MySQL extension which is required by WordPress."
I have tried adding extension=php_mysqli.so to my PHP INI but that doesn't seem to help. I am on a LAMP with CentOS and Apache 2.4 with MariaDB 10.0... All was working before the update. \
php -m shows:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
enchant
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
ionCube Loader
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SourceGuardian
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend Guard Loader
Zend OPcache
zip
zlib
[Zend Modules]
Zend Guard Loader
Zend OPcache
the ionCube PHP Loader
You can not solve your issue by adding MySQLi to php.ini, here you have install real mysqli extension on server that can be done Easyapache by enabling MySQL Improved extension , and it can be done by root user only. if you have than check below link.
Check full here: http://www.mochasupport.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=650
I am having a problem getting File Info working. It is enabled in PHP.ini but when I run a php -m it is not listed. I have PHP 5.5 so it should be standard and not need the pecl. I am a newbie and confused so please be kind.
php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
filter
ftp
gd
gettext
hash
iconv
imagick
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
openssl
pcre
Phar
posix
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
XCache
XCache Cacher
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
XCache
XCache Cacher
the ionCube PHP Loader
In my PHP.ini
extension = "fileinfo.so"
By default this extension gets built in to PHP since 5.3, meaning there is no so to load.
Since it is not showing as an available module, it may mean PHP was compiled with the --disable-fileinfo switch (look at the Configure Command output in phpinfo) which would disable it from being included with PHP.
If it was compiled with the disable finfo option, you will either need to recompile PHP without that option, or compile and install the PECL module and then dynamically load the extension in php.ini.
I had same error as the OP. Solution was to go into my web hosting control panel, select "Select PHP Version" and then enable the "fileinfo" extension.
Just go to "Select PHP Version" in your cPanel and then go to "Extensions", search for "fileinfo", and then finally enable this feature and this will probably fix your problem like it did mine.
I encountered this problem in Laravel.
There are two solutions, both work:
Import the class
use finfo;
$finfo = new finfo(FILEINFO_MIME_TYPE);
Or put a leading \ if using a global class inside a namespace.
$finfo = new \finfo(FILEINFO_MIME_TYPE);
When i installed the framework Yii2 and i verified to launch requirements.php for check if PHP extensions have been loaded.
I installed icu4c using brew like :
brew install icu4c
I installed intl using PECL like :
/Applications/MAMP/bin/php/php5.5.3/bin/pecl install intl
Dir icu4c : /usr/local/Cellar/icu4c/52.1/
In PHPInfo, i have :
But in Yii2, i launched requirements.php and the extension intl is not always work.
Info : When i execute /Applications/MAMP/bin/php/php5.5.3/bin/php -m :
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
yaz
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
And i see not where intl... Is this normal ? I wonder if the problem is rather to MAMP or PECL ?
Thanks.
EDIT :
Yii Framework fixed : https://github.com/yiisoft/yii2/issues/1230
It might be that PHP on apache uses a different php.ini files than PHP on CLI.
Find out for CLI by running
$ php --ini
The php.ini for apache can be seen in phpinfo().
If they are different, you need to add the extension loading directive to the CLI one, too.
Also make sure to restart apache after modifying the php.ini for mod_php.
I'm trying to find a list of the extensions enabled by default in PHP 5.4. I have found the list of configuration options.
However, short of installing PHP 5.4 with the following, I'd like to know what is enabled by default.
./configure
make
make install
php -i
This should documented somewhere... does anyone know where?
I don't know that there is a way to do this pre-build. This is 5.4.12 without any options to configure on OS X:
php-5.4.12 matthew$ sapi/cli/php -m
[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Note that you don't have to make install. Simply:
./configure
make
sapi/cli/php -m
Take a look at below site:
compile-options-configuration-php-5-4-5
Defaults for the options are specified in brackets.