I have php7.1 installed on my Ubuntu Linux. I've just installed PhpMyAdmin 4.6.6 as well. It seems that PhpMyAdmin requires php7.0 and automatically downloads and installs it. Now I have two versions of PHP with the older 7.0 being used by default. When I try uninstalling php7.0, PhpMyAdmin gets uninstalled automatically.
On PhpMyAdmin website it is stated that PhpMyAdmin 4.6.6 is compatible with php7.1. So why am I experiencing this problem, and what would be the best way to overcome it?
I was too fast to post a question. I've solved the problem myself. It seems that my php7.1 has not been properly installed. I've reinstalled php7.1 and after that I was able to remove php7.0 without losing any other packages or functionalities.
Related
I have an Ubuntu 18.04 server with Apache, PHP7.3, and MariaDB.
Now I need to install phpmyadmin and I tried to do that using the code below:
apt install phpmyadmin
But this command will install and replace the PHP7.4 with PHP7.3, whereas I need to keep using PHP7.3.
How can I do this?
How have you installed PHP 7.4, since Ubuntu Bionic (18.04) includes PHP 7.2 (https://packages.ubuntu.com/bionic/php)?
You seem to have gone outside of the standard packages (perhaps you're using the excellent effots provided by Ondřej Surý at https://deb.sury.org/). In this case, it's going to cause you some amount of grief to mix and match the newer PHP with the distribution's phpMyAdmin, because of these dependency problems.
You could force the matter. This is probably going to cause you problems, since Bionic packages phpMyAdmin 4.6.6, which is only supported up to PHP 7.1. https://serverfault.com/questions/250224/how-do-i-get-apt-get-to-ignore-some-dependencies has some instructions on ignoring the dependencies. I recommend avoiding this solution.
You could install your own phpMyAdmin. Download the source from phpmyadmin.net and uncompress it to your web root. You may need to add a short configuration file, config.inc.php, but mostly it just works with the default settings. https://docs.phpmyadmin.net/en/latest/setup.html has a quick start section.
You could downgrade your PHP, but you've already stated this isn't a good option for you, and I'm not sure how the Ubuntu package managers get phpMyAdmin working with this newer PHP version.
Clearly, I think the best solution for you to is to install your own phpMyAdmin.
I have several headaches on installing phpMyAdmin on Centos 6.8
I have php 5.5 installed from webtatic repo. Mysql 5.6 installed as well.
When I install phpMyAdmin by
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum --enablerepo=remi,remi-test install phpMyAdmin
I got these errors:
In fact, I had another trial before, I had php 5.4 installed from Remi repo and facing similar problem when installing phpmyadmin, see another post
I am relatively new to Linux server stuff. I have several questions and hopefully someone could help me out.
At this point, what the yum has done? it leave me big hole which I don't know how to proceed from here. it seems yum has removed some my php5.5 modules without getting replacement installed. those php module being removed are needed by my Magento site. And I don't know if phpmyadmin has been installed or not.
I don't know what/who cause the problem, or is it because my php was installed from webtatic repo, so I can NOT use Remi repo to install any package that related to php such as phpmyadmin? if so, why yum has no process to prevent the problem? if it is not, why yum or Remi repo leave such situation to user like this is not their business? Anyway, in my another try, both php5.4 and phpmyadmin are installed from Remi repo...
From phpMyAdmin web, I know that its 4.7 version can work with php 5.5 or later + Mysql 5.5 or later. However, I find only version 4.0 available for Centos 6 in Remi repo by command:
yum list phpMy*
My current installation is php 5.5.38 + Mysql 5.6. Can I install phpmyadmin 4.7 and how (under Centos 6.8)? I proceeded with installation even I found only 4.0 available as I attempted to upgrade to 4.7 after installation.
First of all, How can I save my installation (including php and mysql) and get phpmyadmin (better to be 4.7) installed properly from here. so I don't have to rebuild the system....Honestly, even rebuild the system again, I still have no idea about the right way to get right phpmyadmin installed without error.
Note: I have to stick with php either 5.4 or 5.5 as my Magento site is 1.8
Any help and explanation will be greatly appreciated. thank you in advance.
Supplement: Ok, by googling, the 3rd question seems found its answer from here.
It seems I was installing phpMyAdmin 4.7....But why the error since php 5.5 is officially supported by phpMyAdmin 4.7? is the webtatic repo or the Remi repo too bad? leaving such dependency hole... How to address such issue from here?
Do you tried this?
sudo yum install epel-release
sudo yum install phpmyadmin
(https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-a-centos-6-4-vps)
I am moving a Magento 1.8 web to a lower cost hosting and exhausted by phpmyadmin installation.
Magento 1.8 was suggested to run with PHP 5.4 and Mysql 5.5, therefore, I chose a Centos6.9 image and thought could be easier...The LAMP stack installation is smooth, but always got problem with phpmyadmin. I have tried PHP5.4 + Mysql5.5, PHP5.4 + Mysql5.6, PHP5.5 + Mysql5.6 combinations, none of them turn out success...
Most of online blogs suggest same way to install phpmyadmin which I followed as below:
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
or
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
then
yum install phpmyadmin
I thought the EPEL package will be able to automatically identify php modules already installed and install the right version phpmyadmin accordingly...
instead it seems stick with php 5.3 which is default php version with Centos 6....here is error message:
the list is very long and involved many php modules...
I am kind of newbie with linux server stuff...Can anyone help to address this issue and point a solution out? thank you in advance.
BTW, I am big fan of open source, but from this point, I feel a bit disappointed to open source products...especially when end user need to work with multiple of them together...it can never be said as user-friendly.
If you have the Remi repo installed you should be able to use:
yum install phpmyadmin --enablerepo=remi-php56
You have php 5.4.45 installed from remi-php54, so you need to enabled this repository to install any additional module.
As explained by the Wizard.
Please note than PHP 5.4 and 5.5 are not maintained anymore, so I hearthly recommend to upgrade to a supported release (5.6 or more recent)
P.S. phpMyAdmin in EPEL is quite old (4.0) but suitable for old PHP versions. For more recent version of PHP (5.6, 7 and up), you probably need the latest phpMyAdmin version 4.7 (which is available in "remi" reposotiry)
i am installing Moodle 2.1 with postgre database. the problem i am facing is that it gives me error
PHP has not been properly configured with the PGSQL extension so that
it can communicate with PostgreSQL. Please check your php.ini file or
recompile PHP.
i have adjusted all the required extension for pgsql. but still i get the same error. i have even created a database in postgre (an empty database) but still i didnt work.
please help me
thanks
Have you tried (command line):
apt-get install php5-pgsql
apache2ctl restart
Or:
sudo apt-get install php5-pgsql
sudo apache2ctl restart
I had a lot of trouble, because the version of Moodle I have (3.3) wants a newer version of php than I have on my Ubuntu 14.04. I had 5.5.9 and Moodle insisted on 5.6. So I upgraded php5 to php5.6 with a special ppa. But what happened was it put the new php5.6 next to the old one. So I kept having trouble with Apache, until I set soft links to libphp5.so from my new libphp5.6.so, and set the conf and load files in mods-available to the new php5.6 versions.
Then I had a problem with the postgresql php driver. I tried installing php5-pgsql and it was always linking back to the old php 5.5.9 on Ubuntu! This did not make moodle happy. Then I discovered that there is a php5.6-pgsql. I uninstalled my php5-pgsql and installed php5.6-pgsql. Uff. And added these two lines to php.ini (inside the /etc/php5/apache2 directory):
extension=/usr/lib/php/20131226/pdo_pgsql.so
extension=/usr/lib/php/20131226/pgsql.so
Now moodle can move on to the next error (the php xml extension)!
sudo apt-get install php5-pgsql fixed it for me despite the fact that my vhost on Plesk runs PHP7.0. Now I can use the CLI in Moodle with PostgreSQL.
I'm running on php 5.2.6 on my development server and need to install phpMyAdmin. However, when I install phpMyAdmin, it updates my php to 5.3.x and that causes my website to break... Been looking online but haven't found anything that will install phpMyAdmin but leave alone the php version.
Anyone know how to install phpMyAdmin without upgrading php automatically? Leave php version alone, just install the phpMyAdmin on Linux Fedora 14.
You can just download it from here. Don't use yum to install this package.