Installing PHP Extensions on RedHat - php

I've installed PHP via Yum on RedHat (minimal install; no GUI), but in order for me to install an application on the system I need to install PHP Mcrypt extension. How does this work? Should I remove PHP via Yum and install from source and use the parameters in the above link (--with-mcrypt[=DIR])?

It's a separate package. In packaged Linux they break the separate compiled extensions into their own library and then include those. Try this
yum install php-mcrypt
I should also note that mcrypt may be deprecated in the future

Related

How to install the zip extension on MacOS when PHP is already installed?

I have PHP 7.1.12 installed on my Mac. I need to install Prestashop but it requires the Zip extension. Is it possible to install the Zip extension for PHP without completely reinstalling PHP (and recompiling it) ?
Thanks.
Install macports then run:
sudo port install php71-zip

Installation error ImageMagick on Linux CentOS release 6.8

for the Joomla component to work, I need the ImageMagick package, which I decided to install under this instruction https://codebeer.ru/ustanovka-imagemagick-v-centos-7/
But during the installation after the command yum install gcc php-devel php-pear
Received an Error:
php71w-common conflicts with php-common-5.3.3-49.el6.x86_64
Version of my Linux CentOS 6.8
It is required to correctly install the package and the extension for PHP ImageMagic.
All installation instructions have already tried, unfortunately the error does not pass, but the package is not installed, I'm new to setting up servers, so I ask for help.
As you should always do, backup your server/data before making any possible breaking changes *
I'm assuming you're using php71 .. webtatic from the 'w' suffix. ( Same flavor I personally use )
** Unless you're actively using PHP5.x still **, just yum remove the conflicting PHP5 package
yum remove php-common
Then re-yum your imagick package and you should be all good.

is there any php-pgsql package avaliable for any linux OS versions?

I need to know whether there is a php_pgsql.dll equivalent package for linux OS or not. I have searched in web but i could find only the pdo-pgsql package. I require php_pgsql driver as in windows.
Since you're using RedHat, you can use the Remi repo, which includes builds for all the latest versions of PHP.
The package you want is called php-pgsql
yum install php-pgsql

How to install "pthreads" on OSX, PHP 5.5.30

I couldn't find any step-by-step guide how to install this thing on OSX. And I don't want to recompile PHP, if that's possible.
Is there simply a package that I can install from somewhere that will just enable pthreads? I tried with:
pecl install pthreads
pecl/pthreads requires PHP (version >= 7.0.0RC5), installed version is 5.5.30
No valid packages found
Update php to version >= 7.0.0RC5 or install another version of pthreads
pecl install pthreads-2.0.10
Also pthreads will require that php is configurated with flag --enable-maintainer-zts. It is set on php compilation.
./configure ... --enable-maintainer-zts ...
make
make install

Installing php extensions in openwrt

I am using OpenWRT Barrier Breaker on a Microtik rb450g router board.
To run php on OpenWRT, I installed php5 packages using opkg.
But now i need to install php extension specifically intl extension so far i learnt that it can be configured by pecl repository which is accessible using php-pear package, so i installed php-pear package in openwrt but when i run pecl it shows error command not found
On my debian machine i successfully installed intl extension via pecl but openwrt doesn't seems to work this way
Anyone have any idea how i should be doing this?

Categories