php version :7.4.8
OS: ubuntu
when I try to localhost/phpmyadmin am getting this error
The mbstring extension is missing. Please check your PHP configuration.
and I already install mbstring
sudo apt-get install php-mbstring
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-mbstring is already the newest version (2:7.4+76+ubuntu18.04.1+deb.sury.org+9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get install php7.4-mbstring
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-mbstring is already the newest version (2:7.4+76+ubuntu18.04.1+deb.sury.org+9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I try this method as well
I find php.ini
I search extension=php_mbstring.dll
but ;extension=php_mbstring.dll is missing in php.ini file
how can I solve this problem?
have you tried giving the version?
sudo apt-get install php7.4-mbstring
I'd suggest you to install the composer dependency symfony/polyfill
It covers the use of mbstring functions.
if you haven't already installed, head over to http://getcomposer.org
then
composer require symfony/polyfill
Composer is best-practice and widely used from many open source projects around the world so don't worry.
Related
When I go to install phpmyadmin it wants to load php8.0. I do not want this, because I did a full purge on php8.0 and am using php7.4
apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dbconfig-common dbconfig-mysql javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore php-bz2 php-phpseclib php-tcpdf php8.0-bz2 php8.0-common
Suggested packages:
php-libsodium php-mcrypt php-gmp
The following NEW packages will be installed:
dbconfig-common dbconfig-mysql javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore php-bz2 php-phpseclib php-tcpdf php8.0-bz2 php8.0-common phpmyadmin
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.8 MB of archives. After this operation, 57.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] n Abort.
Is there an easy way to correct this?
I am using linux mint, apache2, mySQL 5.7, php 7.2 now.
I was trying to execute basic php login web page on my local server which is http://192.168.xxx.xxx/ but when I login my page, the white page is always appears.
I tried to install php mysqli extension, so I wrote commands on terminal as below :
taylor#C10ud-9 ~ $ sudo apt-get install php-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-mysql is already the newest version (1:7.0+35ubuntu6.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
taylor#C10ud-9 ~ $ sudo apt-get install php-mysqlnd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-mysql' instead of 'php-mysqlnd'
php7.0-mysql is already the newest version (7.0.25-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
taylor#C10ud-9 ~ $ sudo apt-get install php7.0-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.0-mysql is already the newest version (7.0.25-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
taylor#C10ud-9 ~ $ phpenmod mysqli
WARNING: Module mysqli ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module mysqli ini file doesn't exist under /etc/php/7.2/mods-available
but mysqli can't be found.
I have laravel 5.3 site running on digitalocean with Ubunto 14.
I get this error when running composer to install a package:
"the requested PHP extension mbstring is missing from your system."
The thing is, it is already enabled, as confirmed by phpinfo:
mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation disabled
libmbfl version 1.3.2
oniguruma version 5.9.6
Since I have php7.0 running, for kicks I tried
sudo apt-get install php7.0-mbstring
But it tells me
php7.0-mbstring is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Really at a loss here. Ideas? Maybe I need to reinstall PHP? Where is composer looking to see if the extension is installed? Why would it n0t be seeing same info that phpinfo returns?
Thanks,
Brian
Basically, you need to install php-mbstring in your server.
sudo apt-get install php-mbstring
You need to install the specific php version using :
sudo apt-get install phpx.x-mbstring
Hope this works!!
Am trying to install pdo_pgsql in ubuntu 10.04 and PHP 5.4.37. Actually the postgresql is installed and working properly with phppgadmin.
Now the problem is the pdo driver for pgsql is missing.
I installed pdo for pgsql, when I enter pecl install pdo_pgsql
# sudo pecl install pdo_pgsql
`pecl/pdo_pgsql is already installed and is the same as the released version 1.0.2
And also added a new pgsql.ini file in /etc/php5/apache2/conf.d/ as
extension=pdo_pgsql
when I run phpinfo()
I can able to see
/etc/php5/apache2/conf.d/pgsql.ini,
in Additional .ini files parsed
But I can't able to see the drivers loaded in PDO, only mysql and sqlite have been loaded.
Additional Message I got from server,
PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
FYI,
Even I tried
# sudo apt-get install php5-pgsql
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-pgsql: Depends: phpapi-20090626
Depends: php5-common (= 5.3.2-1ubuntu4.30) but 5.4.37-1+deb.sury.org~lucid+1 is to be installed
E: Broken packages
Please suggest me how to proceed further.
I even restarted the apache and server itself.
Thanks
apt-get install php5-pgsql
Try this
-----------------------------------------REMOVE
sudo apt-get purge php5-pgsql
Use this to remove pgsql
Depend what php try with php5-pgsql php-pgsql php4-pgsql
I have already installed the apache2 on my raspberry pi (raspbian OS) when setting up a svn server. Now I want to add a web server running php and mysql. What is the best way to do this without messing with any existing configurations on my apache2?
Would this be okay to execute on command line or is this package overwriting my existing apache2 install:
$ sudo apt-get install php5-common libapache2-mod-php5 php5-cli
The package in question is 'libapache2-mod-php5'.
Cheers
First of all, I've never worked with Raspberry Pi, but will try to give an answer. As you're only installing a module for apache and you're using the prefork compiled version (which is still default if I'm not mistaken). I think there will be no alterations in the configuration, perhaps only some rules will be added to handle PHP files.
To check if you're using Prefork, run this on command line (works on regular linux distributions):
apache2 -l
If you can find prefork.c in the list, I guess you're safe.
Please note that this is from personal experience with default unix distributions! I have never worked with Raspberry Pi (yet).
If you run the following commands all the dependencies will be resolved (it will also install libapache2-mod-php5). You can read about LAMP install in Raspberry Pi in the chapter 8 "A LAMP of Your Own", of the book "Learn Raspberry Pi with Linux", by Peter Membrey and David Hows, Apress, 2012.
$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
heirloom-mailx libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient16 libnet-daemon-perl libplrpc-perl mysql-client-5.5
mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
libipc-sharedcache-perl libterm-readkey-perl tinyca
The following NEW packages will be installed:
heirloom-mailx libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient16 libnet-daemon-perl libplrpc-perl mysql-client-5.5
mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 13 newly installed, 0 to remove and 84 not upgraded.
Need to get 9,770 kB of archives.
After this operation, 91.5 MB of additional disk space will be used.
Do you want to continue [Y/n]?
...
$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-mpm-prefork libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common
Suggested packages:
php-pear
The following packages will be REMOVED:
apache2-mpm-worker
The following NEW packages will be installed:
apache2-mpm-prefork libapache2-mod-php5 libonig2 libqdbm14 php5 php5-cli php5-common
0 upgraded, 7 newly installed, 1 to remove and 84 not upgraded.
Need to get 5,707 kB of archives.
After this operation, 16.3 MB of additional disk space will be used.
Do you want to continue [Y/n]?
I think If you install php module for apache and php 5 with above apt-get command will enable the php support for apache but still this also depends on the linux version you are using on,because there seems to be some bugs in php.ini file on apache integration in ubuntu(v10.04) but ubuntu(v12.04)seems fine