I have a machine with no internet access and want to install mbstring module for apache with Redhat OS
I can't use yum install, and i can't find the ./configure file that mentioned in many answers for the same question.
downloaded the rpm file and installed it but with no luck.
Can someone provide me with step by step installion for the module ?
It's located in the "optional" repo. Have your sysadmin enable this repo. This may help you a few steps further.
$ sudo yum list php-mbstring
Loaded plugins: rhnplugin This system is receiving updates from RHN Classic or RHN Satellite. Installed Packages php-mbstring.x86_64
5.3.3-23.el6_4 #rhel-x86_64-server-optional-6
Related
I have been trying to install php-mcrypt for a while now. Everytime I get the "No package php-mcrypt available." returned to me. Here's what I've tried:
root#ip-********** [~]# yum install php-mcrypt --enablerepo=centosplus (<- both with and without this)
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: p3plmirror01.prod.phx3.secureserver.net
* centosplus: p3plmirror01.prod.phx3.secureserver.net
* epel: mirrors.solfo.com
* extras: p3plmirror01.prod.phx3.secureserver.net
* updates: p3plmirror01.prod.phx3.secureserver.net
centosplus | 3.5 kB 00:00
centosplus/primary_db | 746 kB 00:00
Setting up Install Process
No package php-mcrypt available.
Error: Nothing to do
I have made sure to install the EPEL repository. At this point I'm just stumped. I've followed EVERY tutorial I've found online and get the same error.
Notes: GoDaddy VPS, CentOS 6.4 64-bit, mcrypt installed without a hitch, but no php-mcrypt.
I had the same issue, and found the previous suggestions gave me enough info to get it working on my server. The following is what I did:
1) Install EPEL repository (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
2) Install it via:
yum update
yum install php-mcrypt*
The yum update updated the repository reference on my server then the 2nd command got what I needed :)
3) Restart your webserver. For my apache install I did:
service httpd restart
For me the answer was:
1) Get the Repos from
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
2) Install it via:
sudo yum update
sudo yum install php-mcrypt*
3) Edit the mcrypt.ini
sudo nano /etc/php.d/mcrypt.ini
add this
extension=/usr/lib64/php/modules/mcrypt.so
Finally
4) Restart your webserver:
sudo service httpd restart
I run this steps in CentOS 6.3 (64) on Azure From Microsoft Linux image
Hope it helps you.
Best Regards.
Updated Answer for centos 7
## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
# rpm -ivh epel-release-7-0.2.noarch.rpm
For CentOS 6
## RHEL/CentOS 6 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
Install
yum install php-mcrypt
Edit: See comments for updated repositories.
yum install php-mcrypt.x86_64
worked for me instead of
yum install php-mcrypt
I was able to figure this out; it was a lot simpler then I thought. Under the WHM manager go to: Home >> Software >> EasyApache (Apache Update) >> There you have two options "Build Profile" or "Customize Based On Profile". I went Customize to keep my current config then followed the instructions on the page.
Eventually there was a place to add and remove php modules. There you will find ever module under the sun. Just select the one you want and rebuild the profile. It was really that simple.
I got too much problem in installing php-mcrypt using epel-release-6-8.noarch.rpm. It has some dependency problem.
Then I tried in different way.
Get the php-mcrypt using "wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm" command.
Then install libmcrypt
ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm
The installed php-mcrypt using following command
yum install php-mcrypt-5.3.3-3.el6.x86_64.rpm
If php_mcrypt installed on 64bit but reported missing by an installer, check the extension path:
vi /etc/php.d/mcrypt.ini
; Enable mcrypt extension module
;extension=module.so
extension=/usr/lib64/php/modules/mcrypt.so
To install mcrypt from http://namhuy.net/641/centos-6-install-mcrypt-for-phpmyadmin.html
i386
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
x86_64
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
then just use yum command to install the mcrypt package
yum install php-mcrypt
The best way is to:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm
yum localinstall php-mcrypt-5.3.3-3.el6.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm
yum localinstall libmcrypt-2.5.8-9.el6.x86_64.rpm
or go to: http://dl.fedoraproject.org/pub/epel/6/x86_64/ to match your version
check from your info.php that is ok -- done!
There are two ways you can address this:
Download php-mcrypt from fedora:
http://injustfiveminutes.wordpress.com/2012/11/23/install-php-mcrypt-extension-on-rhel-6/
Check if you're facing a known bug with a wrongly packaged php-mcrypt extension:
http://www.sterndata.com/blog/phymyadmin-mcrypt-and-centos-6-mcrypt-extension-missing-solved
For me I had to add the EPEL repository. It is where my php-mcrypt came from:
[root#system ~]$ repoquery -i php-mcrypt
Name : php-mcrypt
Version : 5.3.3
Release : 1.el6
Architecture: i686
Size : 39225
Packager : Fedora Project
Group : Development/Languages
URL : http://www.php.net/
Repository : epel <----------
Summary : Standard PHP module provides mcrypt library support
Source : php-extras-5.3.3-1.el6.src.rpm
Description :
Standard PHP module provides mcrypt library support
You can enable the EPEL repo with the instructions here:
http://fedoraproject.org/wiki/EPEL
installing php-mcrypt from Repoforge worked for me perfectly. Just add Repoforge from http://repoforge.org/ and simply run yum install php-mcrypt.
For me, this worked :
yum install php-mcrypt*
and then, restart httpd service
service httpd restart
I tryed #VenomFangs solution but the first step was not needed for me. I already had a newer EPEL version installed. So, the first step following was not usefull, I backed to the snapshot I did before doing modifications and I just used the install and restart above commands.
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
CentOS Linux release 7.2.1511 (Core)
PS : I know this is not the subject, but if somebody needs it, the keyword can help. I needed to do this because of this error on prestashop. Two keywords I would be glad to use to find this informations are : "php_mycrypt.dll" "php_mcrypt.dll"
Fatal error: Call to undefined function mcrypt_encrypt() in /classes/Rijndael.php on line 46
EDIT 10/06/2016 :
Another Prestashop solution to try in "Advanced Parameters", "Performance", "Ciphering" (FR : Chiffrement), "Use the custom BlowFish class." instead of "Use Rijndael with mcrypt lib. (you must install the Mcrypt extension)."
First find out your PHP version. In my case 5.6.
php --version
PHP 5.6.27 (cli) (built: Oct 15 2016 21:31:59)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Then:
sudo yum search mcrypt
And choose the best one for your version from the list, I used php56w-mcrypt.
$ sudo yum search mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
..... output truncated ....
libmcrypt-devel.i686 : Development libraries and headers for libmcrypt
libmcrypt-devel.x86_64 : Development libraries and headers for libmcrypt
libtomcrypt-devel.i686 : Development files for libtomcrypt
libtomcrypt-devel.x86_64 : Development files for libtomcrypt
libtomcrypt-doc.noarch : Documentation files for libtomcrypt
php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php55w-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
# either of these are fine:
php56-php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php56w-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php70-php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php70w-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php71-php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
libmcrypt.i686 : Encryption algorithms library
libmcrypt.x86_64 : Encryption algorithms library
libtomcrypt.i686 : A comprehensive, portable cryptographic toolkit
libtomcrypt.x86_64 : A comprehensive, portable cryptographic toolkit
mcrypt.x86_64 : Replacement for crypt()
```
Finally:
sudo service httpd restart
I was having same issue in centos 6.5
Finaly solution below worked for me
-go to http://dl.fedoraproject.org/pub/epel/6/x86_64/
-search for php-mcrypt(http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm)
-execute wget http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm
-rpm -ivh php-mcrypt-5.3.3-3.el6.x86_64.rpm
if there are any dependencies you can download same using http://dl.fedoraproject.org/pub/epel/6/x86_64/
For php 7 to install mcrypt run:
Centos:
sudo yum install php7.0-mcrypt to install
On Ubuntu:
sudo apt-get install php7.0-mcrypt
If you want to recompile PHP with mcrypt enable.
1.
Insatll mcrypt. libmcrypt-devel is from Third Party Repositories EPEL, so you should:
yum --enablerepo=extras install epel-release
yum install libmcrypt-devel
2.
Append --with-mcrypt to your ./configure arguments:
./configure --with-mcrypt
3.
Build and install:
make & make install
Try
yum clean all
yum remove epel-release
yum install epel-release
and finally
yum install php-mcrypt
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.
I have a local machine with Ubuntu, Apache 2.4 and PHP 7.0
I could install imagick easily using apt-get, but I can't seem to be able to do it on CentOS with XAMPP.
I tried many things including:
yum install php70w-pecl-imagick-devel.x86_64
pecl install imagick
Copying the imagick.so file to the modules directory
Adding extension=imagick.so to /opt/lampp/etc/php.ini and restarting
But the module simply isn't being loaded!
I keep on getting Class 'Imagick' not found in Laravel
Try with CMD or SSH or PuTTY
Once you have enabled the EPEL repository, install ImageMagick with dnf command.
dnf install -y ImageMagick ImageMagick-devel
PHP Imagick is a native PHP extension to create and modify bitmap images using the ImageMagick API.
dnf install -y php php-devel php-pear make
Now, install PHP Imagick with pecl command.
pecl install imagick
Please provide the prefix of Imagemagick installation [autodetect] :
just press Enter; do not type a prefix (that is, allow autodetect).
Add the extension into the php.ini file.
echo "extension=imagick.so" > /etc/php.d/20-imagick.ini
Restart the Apache web service to take an effect of newly installed PHP extension.
systemctl restart httpd
List the complied modules to see if PHP Imagick is installed and available.
php -m
I am trying to do a Magento 2 DRC installation on a remote linux server, running Centos 7, Apache 2.4.6, MariaDB and PHP v5.6.9. When I try to install Composer I get the following message:
$ cd /var/www/html/magento2 && composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-intl * is missing from your system.
I have installed ext-intl using:
yum list php*intl
and
yum install php-intl
But is still gives me the same message.
I have tried various other installations to get around the problem, to no avail. Any suggestions would be gratefully erceived as it is stalling the project.
Would it help to downgrade to PHP 5.5?
You can follow the below steps for magento2 installation on Centos 7.
http://gotechnies.com/install-magento2-centos-7/
There are few easy steps to install Magento 2(M2) on Centos Distro.
Step 1-:
First of all we need to add few EPEL repositories for the php5.6, mysql-server5.6, and phpmyadmin.
# EPEL Repository for php5.6
$ rpm -iUvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ rpm -iUvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
# EPEL Repository for mysql-server5.6
$rpm -iUvh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
# EPEL Repository for phpMyadmin on Centos 7
$ rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
$ yum -y update
Step 2-:
Install Require packages like apache, php5.6, mysql-server, phpmyadmin.
$ yum install-y httpd php mysql-server phpmyadmin php56w-mcrypt php56w-intl php56w-xsl git
To allow the phpmyadmin in apache 2.4 add the line
Require all granted
Readmore go to above link
Magento2 installation on RHEL/Centos 7 with Php7.
Subscribing to the IUS Community Project Repository
Since PHP 7.x is not yet packaged in official repositories for the major distributions, we’ll have to rely on a third-party source. Several repositories offer PHP 7 RPM files. We’ll use the IUS repository.
IUS offers an installation script for subscribing to their repository and importing associated GPG keys. Make sure you’re in your home directory, and retrieve the script using curl:
curl 'https://setup.ius.io/' -o setup-ius.sh
sudo bash setup-ius.sh
Install Required Packages-:
sudo yum install -y mod_php70u php70u-cli php70u-mysqlnd php70u-json php70u-gd php70u-dom php70u-simplexml php70u-mcrypt php70u-intl httpd mysql-server git
See my Article for Complete Installation magento2-php7-centos7-mysql5.7
The extension has to be installed and activated for the command line PHP, not only for the web server PHP. If you run php -i, which is the CLI equivalent of running phpinfo(), you should see a section containing info about the "intl" extension. If this is missing, you'd also see the path to the "php.ini" file that is being used - this is where you should double check whether or not the extension is activated or not.
Most of the time, it is not.
I am installing mysql and php on CentOS 6. While trying to install phpMyAdmin i am getting the following error on command prompt
No package phpMyAdmin available.
Nothing to do
I am following the below tutorial to install and configure my server. This is my first attempt to install and setup my server
LINK
Please guide me
Thank you
I wanted the latest version (4.0.5), not the 3.5 version in EPEL and found this information which worked perfectly for me:
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi install phpmyadmin
from http://www.if-not-true-then-false.com/2012/install-phpmyadmin-on-fedora-centos-red-hat-rhel/
Phpmyadmin isn't shipped with Centos. But there are unofficial repositories for phpmyadmin. I suggest you install the EPEL.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
or
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
and than install using the enablerepo flag
yum --enabledrepo=epel install phpmyadmin
At the moment the phpmyadmin package in the epel repo is not the latest version (4.0.3), but it's the most recent 3.5.x version.
A small warning: don't install phpmyadmin from the RPMforge repo. Since this repo is somewhere at version 2.
It's about two months since the questions was asked, so I don't expect to be of any use to the original question author, but there are always people visiting old questions with the same problem.
To get the packages we need, we'll have to add an additional repo to our system. The EPEL repo (Extra Packages for Enterprise Linux) contains many additional packages, including the phpMyAdmin package we are looking for.
The EPEL repository can be made available to your server by installing a special package called epel-release. This will reconfigure your repository list and give you access to the EPEL packages.
To install, just type:
sudo yum install epel-release
Now that the EPEL repo is configured, you can install the phpMyAdmin package using the yum packaging system by typing:
sudo yum install phpmyadmin
You can't find it as the directions state you need to add the package (myAdmin) to your repository first, update then install with Yum. You need to search an alternate way to add to your repo , then update ya repo, then install :)
For that you can download phpMyAdmin from here
after downloading use rpm -ivh packagename.rpm or follow your tutorial it wont show above error
You can just download phpmyadmin from here:
https://www.phpmyadmin.net/
and unzip and move to apache root directory
then you can check that in your url.
sudo yum install epel-release
-some version this command not works
To Install Phymyadmin sometimes this command not works
so use this below command
sudo amazon-linux-extras install epel