How to install phpMyadmin on Centos 6.8 with php 5.5 - php

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)

Related

Does PHP 5.4 work with Mysql 5.6? if yes, what is right way to install them in Centos 6

I have installed php 5.4 under Centos 6.8 (5.4 is required php version for Magento 1.8), when I install Mysql 5.6 by these commands
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh mysql-community-release-el6-5.noarch.rpm
yum -y install mysql-server
at end of installation, I got below information:
I could not find a way to address this error by Google. I am not sure about
Does php5.4 work with Mysql5.6?
Is the way I installed Mysql5.6 correct?
why did this error happen?
Will appreciate if anyone can guide me a way out here, also explain the error.

How to install a right version phpmyadmin on Centos 6.9 accordingly?

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)

Is PHP Tidy still available in Centos 7

I'm currently trying to install PHP Tidy on a CentOS 7 server (I'm running PHP Version 5.4.16 if that helps as well), but am having problems with the install.
I've been running (as per the documentation)
yum install php-tidy
but get the following error:
No package php-tidy available.
Error: Nothing to do
I've found someone having the same problem here, and the answer is listed as
When I installed via CentOS tidy.x86_64 and php-tidy.x86_64 were installed but Red Hat could not find the php-tidy.x86_64 rpm and I had to add the EPEL repository, then I managed to install php-tidy.x86_64 and it worked
...but I'm not sure what to make of that.
I've also found via the official Tidy documentation:
On Redhat-ish linux, you must install both libtidy and libtidy-devel (PHP 5.x):
sudo yum install libtidy libtidy-devel
...however I also get the same "No package..." error.
My only lead is that it doesn't appear that any of the documentation has to do with CentOS 7 (I believe they use CentOS 6 or 5, or an older version of PHP) and some of the suggestions are that some systems require yum install php5-tidy instead. So hence my original question on if Tidy is supported on CentOS 7, or if there is something else I might be doing incorrectly.
Use the webtatic repo ... PHP 5.6 on CentOS/RHEL 7.1 and 6.7 via Yum
https://webtatic.com/packages/php56/
php56w-tidy

Update/Upgrade PHP MongoDB driver

Im currently running Php MongoDb version 1.2.10 and I'm wanting to update this version to the most recent/stable.
How would one go about doing this? Im assuming it would be via terminal and using pear or pecl command?
Any Help or advice is greatly appreciated :)
Update :
I did the following within terminal to install the latest version
sudo pecl install mongo
Which has installed version 1.5.6. But after restarting my MAMP server the extension is still stating 1.2.10. Is there something I need to change in my php.ini file? I have already added extension=mongo.so
If you ran sudo pecl install mongo, you likely upgraded the driver for the system install of PHP, which is in a different path than MAMP. There should be a pecl binary within the MAMP path (e.g. /Applications/MAMP/bin/php/php5.x.x/bin), which should be run instead. You may find this blog article as helpful walk-through for the process.
sudo pecl upgrade mongodb worked for me today.

Problems installing PHP 5.4.11 and MySQL 5.6.10 on CentOS 6.3

I'm attempting to install PHP 5.4.11 and MySQL 5.6.10 onto a CentOS 6.3 box.
I've successfully installed PHP 5.4.11 via the remi repository for yum. I've also successfully installed MySQL 5.6.10 using the community server rpm's on the MySQL downloads page.
They both work fine independently, but when attempting to install php-mysql from the remi repository, a dependency of mysql-libs is pulled in which is at version 5.5.30, and going ahead with the install produces an array of errors like the following:
file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.5.30-1.el6.remi.x86_64 conflicts with file from package MySQL-server-5.6.10-1.el6.x86_64
At this point, I'm out of my depth with regards to getting this working. Can anyone suggest what I need to do to get my PHP installation working with MySQL?
rpm --nodeps --force
just override

Categories