Amazon Linux PHP Mbstring - php

I'm trying to install mbstring module in amazon ec2 server this is the error i'm receiving
command run "sudo yum install php-mbstring"
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have googled and tried many options but nothing is defined for PHP 5.6
I have also enabled zend.multibyte in php.ini ( also verified it in phpinfo() )

Since you have php5.6 installed, the correct command to add mbstring support is
sudo yum install php56-mbstring

Related

Install mailparse on linux centos7

Hi I'm trying to install mailparse for my php7.4.21 on my linux centos7 server but the documentation is not great and I'm no sysadin.
https://www.php.net/manual/en/mailparse.installation.php states "In order to use these functions you must compile PHP with mailparse support by using the --enable-mailparse configure option". This is not very helpful but so far I've had to do the following:
// To install re2c:
> curl http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/re2c-0.14.3-2.el7.x86_64.rpm --output re2c-0.14.3-2.el7.x86_64.rpm
> rpm -Uvh re2c-0.14.3-2.el7.x86_64.rpm
// I then installed mailparse
> pecl install mailparse
// I then modified php.ini to add the following:
extension=mailparse
// I then restarted apache
> systemctl restart httpd
But looking at my phpinfo output I cannot see mailparse listed.
What do I need to do next?
NOTE: I'm not sure I've actually "compiled PHP with mailparse" and I'm not sure how to apply "using the --enable-mailparse configure option".
Thanks
Abe
so I ended up on https://github.com/php-mime-mail-parser/php-mime-mail-parser/blob/master/README.md that talks about using sudo apt install php-cli php-mailparse for Ubuntu systems, which after a little more effort I found that yum install php-cli php-mailparse was the equivalent for centos (and then restarting apache). This worked.
yum install php-cli php-mailparse
systemctl restart httpd

Cannot install phpMyAdmin Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64

I just installed CentOS 7 and PHP 7.1xx and MySQL but impossible to install phpMyAdmin. I have an error message but no answer on Google yes only one answer but which itself gives me the same error message.
rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y update
yum -y install phpmyadmin
Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I couldn't install it directly by YUM either. As I remember, The problem is using CentOS 7 or php7 (in my case).
But you can solve your problem by access here: https://www.phpmyadmin.net/downloads/
then download any version you want, and config a little (decompress and copy that folder into /var/www/html/, ...), then you can use phpMyAdmin as normal.

php-bcmatch installation on php7 running amzon linux os

I am trying to install php-bcmath on amazon os
sudo yum install php-bcmath
But i got the following error
Finished Dependency Resolution
Error: php70-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Also i have tried with sudo yum install php-bcmath --skip-broken but the same error will be returned
It seems you have installed php70 in your system and default php version provided by os is php 5.3
Try this to install bcmath one of below command will work.
sudo yum install php70-php-bcmath
or
sudo yum install php70-bcmath
Hopen this will help.

Install Mycrypt on Centos 6.5

I need to install Mycrypt in order to run php artisan serve on my Centos 6.5. So, I added the EPEL by the following commands
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install php-mcrypt
However, when I run the yum install, the output is like this
Error: php55w-common conflicts with php-common-5.3.3-27.el6_5.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I don't know what to do at this point. Please help. Thank you in advance.
As the error suggests, it's conflicted. Your current install version of PHP differs from the one you're trying to install.
Maybe you're trying to install a 5.3 version against a 5.5. Look to find a matching version.
It's also possible you should to a "yum update" prior to installing the mcrypt RPM.
I found this from: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
It would help to know what version of PHP you are currently running. The mcrypt on the epel is php-mcrypt-5.3.3-3.el6.x86_64.rpm. Usually you can find out the version by either php -v on the command line, or phpinfo() in one of your scripts.

Mailaparse on XAMPP 1.7.3

I'm needing mailparse installed on my xampp.
I've done pecl install mailparse but I get an error that mbstring is not installed, but it is.. Or at least that is what phpinfo() says.
So I'm doing /Applications/XAMPP/xamppfiles: sudo ./bin/pecl install --nodeps mailparse
BUT.. when the make starts it fails with a big load of errors... How can I install mailparse on a xampp installation? Or maybe I could compile it? but not sure how, not in osx...
Any ideas?
Here you can see the complete trace done with sudo ./bin/pecl install --nodeps mailparse > dump
FIXED! if someone is interested on the solution, you must have installed devel-package of XAMPP, and run the pecl script having in mind that must be comipled for i386 arch.
sudo su -
export CFLAGS="-arch i386"
/Applications/XAMPP/xamppfiles/bin/pecl install --nodeps mailparse
sudo /Applications/XAMPP/xamppfiles/bin/pear install pecl/mailparse
From: http://wiki.cerb4.com/wiki/Installing_PHP_Mailparse#Mac_OS_X_.28XAMPP.29
sudo /Applications/XAMPP/xamppfiles/bin/pear install pecl/mailparse-2.1.6
Try this is if you have installed Php 5.X
If you got error like
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
and then retry.
brew install autoconf
and run the command

Categories