On my Ubuntu 16.04 machine I installed the following PHP 7.4 modules:
[PHP Modules]
calendar
Core
ctype
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
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
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
but if I run:
php -m
under some specific user, I get:
[PHP Modules]
Core
date
filter
hash
libxml
openssl
pcntl
pcre
Reflection
session
sodium
SPL
standard
zlib
[Zend Modules]
What does this mean?
How to make all PHP modules accessible for that user?
Tried to run
phpenmod gd
under this user, but got:
WARNING: Module gd ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module gd ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module gd ini file doesn't exist under /etc/php/7.0/mods-available
WARNING: Module gd ini file doesn't exist under /etc/php/7.0/mods-available
WARNING: Module gd ini file doesn't exist under /etc/php/7.0/mods-available
and nothing changed.
When I call phpinfo() function under that user, it displays:
so I do not understand why php -m console command does not display gd module.
Related
I try to connect to the database with PDO, but I skip the exception:
Error: could not find driver
I'm using php 7.1 and Apache 2.4
I have uncommented the line extension = php_pdo_mysql.dll. Then restart the server but the same error keeps coming up.
php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
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
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Thanks.
I'm attempting to use the import functionality in mediawiki 1.27.0, but I'm getting the error message:
Call to undefined function pcntl_wifsignaled() in extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php on line 645
I'm running PHP version 5.6.30 on Ubuntu 14.0.4 with Apache2.4.7. I've followed various bits on information to install pcntl module and to the best of my knowledge the module is operational. phpinfo reports that pcntl is enabled. I have also commented out the line in php.ini regarding disabled_functions. Below are some reports from various bits of Ubuntu to explain the current config.
Any ideas on how to fix this?
Installed php modules:
$ php -me
[PHP Modules]
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
XCache
XCache Cacher
XCache Coverager
XCache Optimizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
Disabled PHP functions:
$ php -i | grep disable_functions
disable_functions => no value => no value
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 installed PHP 7 in a docker container as fcgi. My php.ini looks like this:
extension=/usr/lib/php/20151012/curl.so
extension=/usr/lib/php/20151012/gd.so
extension=/usr/lib/php/20151012/igbinary.so
extension=/usr/lib/php/20151012/intl.so
extension=/usr/lib/php/20151012/json.so
extension=/usr/lib/php/20151012/mcrypt.so
extension=/usr/lib/php/20151012/memcached.so
extension=/usr/lib/php/20151012/mysqli.so
extension=/usr/lib/php/20151012/opcache.so
extension=/usr/lib/php/20151012/pdo_mysql.so
extension=/usr/lib/php/20151012/pdo_sqlite.so
extension=/usr/lib/php/20151012/readline.so
extension=/usr/lib/php/20151012/sqlite3.so
extension=/usr/lib/php/20151012/xdebug.so
extension=/usr/lib/php/20151012/xsl.so
If I run php -m I get the following output:
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
gd
hash
iconv
igbinary
intl
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
xsl
zlib
[Zend Modules]
You see mysqli and pdo_mysql are definitely loaded. But if I run my php application it says: The mysql driver is not currently installed.
I can connect to mysql on command line successfully. What is wrong here?
mysql extenstion was deprecated and is totally removed in php7 so do not be surprised. Just quickly change to mysqli or pdo
I have a PHP application running on Openshift and I need receive e-mails from gmail using imap protocol. In my local machine I am able to get emails from gmail using the same code, but when I am running from Openshift I can not get emails. I suppose that the problem is the php-imap which I had to install in my local machine. I am not sure if this module is already installed in Openshift. Should I install php-imap or this module is enable for default on server?
I don't know why but:
[some-domain.rhcloud.com 56956f307628e19496000093]\> php -v
PHP 5.3.3 (cli) (built: Jul 3 2015 03:10:33)
...
[some-domain.rhcloud.com 56956f307628e19496000093]\> php -m
[PHP Modules]
...
hash
iconv
imagick
imap
intl
json
libxml
...
[other-domain.rhcloud.com 5695463d89f5cf0a7e0001b5]\> php -v
PHP 5.4.40 (cli) (built: Jun 10 2015 06:44:21)
...
[other-domain.rhcloud.com 5695463d89f5cf0a7e0001b5]\> php -m
[PHP Modules]
...
hash
iconv
imagick
intl
json
ldap
libxml
...
So, if you need imap module you should use php-5.3
The easiest way to integrate email into your app is with Sendgrid from our Oenshift Marketplace here: https://marketplace.openshift.com/apps/9628?1665146903&restoreSearch=true#!overview. For reference, here are the extensions available in the php cartridge as of today:
$ php -m
[PHP Modules]
apc
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
intl
json
ldap
libxml
mbstring
mcrypt
memcache
mhash
mongo
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib