I am trying to install imagick with this command
yum install php-pecl-imagick
This results in this error, I think it's because I am using php7 and not php5
Error: php70u-common conflicts with php-common-5.4.16-36.el7_1.x86_64
How can I download imagicks new version for use with php7 and centos7?
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
for more details see my Article install-php7-centos7/rhel
Remove packages php* , then install php70u .
Related
I was trying to find any information about using Memcached with PHP7, but I failed. The only valuable information is short Readme.md of php-memcached repo.
Unfortunately, its travis build failed as well as 30/126 tests on my machine.
However make install command was successful and created memcached.so file. Does it mean I can use this extension in production or it still has bugs and is not recommended for using?
I will very appreciate any advice or working solution.
You need to use the php7 branch; see here, Travis is passing.
This should be the complete set of steps to install the memcached extension on a Debian/Ubuntu OS:
sudo apt-get update
sudo apt-get install -y libmemcached-dev libmemcached11 git build-essential
git clone https://github.com/php-memcached-dev/php-memcached
cd php-memcached
git checkout php7
git pull
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make
sudo make install
You may need to change some of the paths if you have them installed at different locations.
To install memcached on the latest ubuntu for the latest php use:
sudo apt-get install php-memcached
For Debian 8 users, you can use:
sudo apt-get install php7.0-memcached
I came to this question via an issue with getting artisan to work in the Laravel Lumen framework.
I'm using PHP 7. PHP 7.0.15-0ubuntu0.16.04.4 to be precise.
I found the only solution was to install what appears to be the PHP 5 version* with memcached†:
sudo apt install memcached php-memcached
*
php-memcached/xenial,now 2.2.0-51-ge573a6e+2.2.0-2build2 amd64 [installed]
memcached extension module for PHP5, uses libmemcached
† If you find you then get the error: [RuntimeException] Could not establish Memcached connection., you need to install the memcached extension as the above sudo apt install memcached (if you're on 16.04+, use apt-get if < 16.04)
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 want to install the v8js extension for PHP5.5 on Ubuntu 12.04 but can't make it working.
When I try to install the v8js extension version 0.2.0 (latest) with PECL, I have this message:
configure: error: libv8 must be version 3.24.6 or greater
ERROR: `/tmp/pear/temp/v8js/configure --with-v8js' failed
If I try to install an old version, I have a compilation error. This message is very similar to my issue: Install v8js for php on ubuntu
How can I fix this issue?
EDIT: I couldn't install it on Ubuntu 14.04 with PHP5.5, even with a PHP downgrade with PHPbrew to PHP 5.4. However, using Ubuntu 12.04 with PHP 5.4 works great. I didn't try the downgrade from PHP 5.5 to 5.4 on Ubuntu 12.04.
in case you can't find libv8-dev or libv8-dbg, you can find the correct version by run command
~$ apt-cache search libv8
libv8-3.14-dbg - V8 JavaScript engine - debugging symbols
libv8-3.14-dev - V8 JavaScript engine - development files for 3.14 branch
libv8-3.14.5 - V8 JavaScript engine - runtime library
libv8-dev - V8 JavaScript engine - development files for latest branch
then you can run
~$ sudo apt-get install libv8-3.14-dev libv8-3.14-dbg g++ cpp
then you can try to install v8js via pecl by running
~$ sudo pecl install v8js-0.2.0
if that command return error like this
configure: error: libv8 must be version 3.24.6 or greater
ERROR: `/tmp/pear/temp/v8js/configure --with-v8js' failed
you can try to install v8js-0.1.3 instead by running
~$ sudo pecl install v8js-0.1.3
then edit your php.ini to add v8js extension
~$ echo "extension=v8js.so" >> /etc/php5/cli/php.ini
Open your terminal/console
sudo apt-get install libv8-dev libv8-dbg g++ cpp
Make an update sudo apt-get update
Try sudo pecl install v8js-0.2.0 (or other version i.e.: sudo pecl install v8js-0.1.3)
Edit your php.ini (Check: Where is my php.ini file?) file by adding: extension=v8js.so.
Restart server
If it the extension still doesn't work, try to edit /etc/php5/conf.d/v8js.ini and add extension=v8js.so and restart server again.
Hope this helps.
These other answers work well and I used v8js-0.1.3 for the past 1.5 years but after needing to upgrade to PHP 7 I needed a better solution as v0.1.3 doesn't compile with PHP 7 (something to do with php_smart_str being renamed to php_smart_string).
After a couple hours of frustrating research and compiling libv8 myself, I didn't want to have to go through this whole process on every server I provisioned.
Anyway, I found this site which points you to a launchpad PPA site that provides a couple different ubuntu packages with the 5.1 and 5.2 libv8 libraries.
I ran these commands (please don't add repositories of 3rd party devs without understanding the risks).
sudo apt-add-repository ppa:pinepain/libv8-5.2
sudo apt-get update
sudo apt-get install libv8-5.2-dev
sudo pecl install v8js-1.1.0
(Thanks #JeyKeu for suggesting to add "apt-get update" to these commands)
I couldn't get v8js-1.3.0 or 1.2.0 to build, but 1.1.0 worked well. I checked the changelog and found that the latest updates are not necessary in my circumstance anyway.
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
I need help with installation of php-devel (I need it, cause it has phpize, which is necessary to install eAccelerator). But when I try to install php-devel with yum install php-devel it gives me the following errors:
# yum install php-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: centos.itt-consulting.com
* epel: mirror.yandex.ru
* extras: centos.itt-consulting.com
* passenger: mirror.hmdc.harvard.edu
* updates: centos.itt-consulting.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php = 5.3.3-14.el6_3 for package: php-devel-5.3.3-14.el6_3.x86_64
--> Finished Dependency Resolution
Error: Package: php-devel-5.3.3-14.el6_3.x86_64 (updates)
Requires: php = 5.3.3-14.el6_3
Installed: php-5.4.6-1.el6.remi.x86_64 (#remi-test)
php = 5.4.6-1.el6.remi
Available: php-5.3.3-3.el6_2.8.x86_64 (base)
php = 5.3.3-3.el6_2.8
Available: php-5.3.3-14.el6_3.x86_64 (updates)
php = 5.3.3-14.el6_3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have no idea what to do with these errors. And I have php 5.3.3 installed (phpinfo() says that), so don't understand why in this list I can see Installed: php-5.4...
Rather than running yum install php-devel you needed to run yum --enablerepo=remi,remi-php54 install php-devel .
In short, just specifying which php-devel version you wanted from the remi repo. In your case you had php54 installed from remi so you needed to add in "remi-php54" . That would have successfully installed php-devel without the downtime.
What I did was:
yum search php53
and it showed the php-devel file to install. Once I did the search and found the correct devel package, I simply copied and pasted the entire name after yum install. I executed
yum install php53-devel.x86_64
to get it
If you have php 5.5.x, centos 6.5 64 try this
yum install php55w-devel
You will need also gcc
yum install gcc.x86_64
php was installed from Remi's repository. You will need to either downgrade to the stock php, or get php-devel from the same place.
sudo yum --enablerepo=remi install php-devel
Taking into consideration that I have different things installed from different repos, the only way was to delete all packages installed from Remi's repo and install standard packages with yum.
1) List all packages installed from some strange repo (in my case #remi), e.g. yum list installed | grep remi.
2) Remove all packages completely from the system with yum remove <package_name>
NOTE: after httpd restarting - all sites will DIE!
3) Quickly install all bunch of things you need, e.g. yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc etc.
4) Restart httpd and start mysql server.
5) Your sites are alive again.
The only thing why I did all this is cause I wanted to install eAccelerator for php to speed it up a little bit (and it's installation was impossible because of remi's repo packages), and I'm happy that I did it! All scripts works 2-10 times faster (I could not even imagine that my sites can respond so fast).
About the initial question (install eAccelerator).
This project is dead, and have never work with PHP >= 5.4.
So if you need an opcode cache, please choose a maintained one. I would recommend "opcache", the official cache maintained by the PHP project, included in php-src since 5.5, and available in pecl for 5.4.
And if you use "remi" repository, before trying to build an extension, check first if it is available in the repository, as most of the PECL extensions are available as RPM, see http://blog.remirepo.net/pages/PECL-extensions-RPM-status
yum --enablerepo=remi,remi-php55 install php55-devel
worked for me
For PHP 7.2 and similar, the following works for me(notice the remi-php72)
sudo yum --enablerepo=remi,remi-php72 install php-devel
if this is about installing xdebug requirements for centos then:
sudo yum --enablerepo=remi,remi-php72 install php-devel autoconf automake
Just type:
sudo nano /etc/yum.conf
And then remove php*
then type:
yum install --enablerepo remi php-pear php-devel