Installing phpmyadmin and it show wrong dependency for PHP8.0 - php

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?

Related

phpmyadmin - mbstring extension is missing in php 7.4

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.

Issue installing mysql-server-5.6 on Ubuntu 16.04

I am getting this error message when I try to install mysql-server-5.6: sudo apt-get install mysql-server-5.6:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-server-5.6
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
Need to get 0 B/6,004 kB of archives.
After this operation, 52.7 MB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 75769 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.6_5.6.35-1+deb.sury.org~xenial+0.1_amd64.deb ...
Aborting downgrade from (at least) 5.7 to 5.6.
If are sure you want to downgrade to 5.6, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.6_5.6.35-1+deb.sury.org~xenial+0.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.6_5.6.35-1+deb.sury.org~xenial+0.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
mysql-client-5.6 were installed normally.
I first, uninstalled mysql-server-5.7:
sudo apt-get remove dbconfig-mysql
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
I added repos using this 2 methods:
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
sudo apt-get update
and
sudo add-apt-repository -y ppa:ondrej/mysql-5.6
sudo apt-get update
Notice that I also installed PHP 5.6 without any problem.
Since all my project depend on MCRYPT, I have to install this version in order to it to works well.
I used mysql-server-5.7 but it is not compatible ... datas are not inserted into mysql server.
Your help is needed, thank you in advance.
I think the issue is with the mysql client, because you already have it and it is trying to install it, which is causing the error.
Run this command to cleanup unused libraries:
sudo apt-get autoremove
and then try to install it again

Ubuntu installing id3 php

I'm having issues installing php-id3 I'm using the following and getting this response:
sudo pecl install --force id3
WARNING: failed to download pecl.php.net/id3 within preferred state "stable", will instead download version 0.2, stability "alpha"
downloading id3-0.2.tgz ...
Starting to download id3-0.2.tgz (20,693 bytes)
........done: 20,693 bytes
4 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed
Ahhh easy fix I hear you scream you need the php dev packages!! Well I alread have them:
sudo apt-get install php5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-dev is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 246 not to upgrade.
so what am I missing to get this module installed?

install php on top of already installed apache2 server

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

PHP5 xsl install

just a quick question, Im running PHP5 on my debian server (squeeze), due to some magento extension requirement, I need to install the php5-xls module, this is a PRODUCTION ENVIRONMENT, so, after a "apt-get install php5-xls", obviously I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-mod-php5 libxslt1.1 php5-cli php5-common php5-curl php5-gd php5-mcrypt
php5-mysql
Suggested packages:
php-pear
The following NEW packages will be installed:
libxslt1.1 php5-xsl
The following packages will be upgraded:
libapache2-mod-php5 php5-cli php5-common php5-curl php5-gd php5-mcrypt php5-mysql
7 upgraded, 2 newly installed, 0 to remove and 59 not upgraded.
Need to get 6,953 kB of archives.
After this operation, 606 kB of additional disk space will be used.
Do you want to continue [Y/n]?
I've used Linux for some time and Ive seen things crashing down for simple things like this, I just want to know how much am I risking my current PHP installation by hitting the "y" key....we are running online-shops here..is there a more secure way ?
Thanks in advance...!
Then install a development server. We can not assure you things will go right. As I personally think, it will go fine. It upgrades previous installs, and installs 2 new packages.

Categories