I am developing my project with
PHP 5.6.27
PostgreSQL 9.6.1
RedHat 7 OS
I had searched for the php_pgsql package everywhere.
also tried with some rpms. but still I am not able to get the package.
I developed my whole project in php_pgsql package in windows and i faced this issue when tried to shift from Windows to Linux.
please help to solve this. thank you.
In order to install that package, you'll need to remove the excluding rule for php in /etc/yum.conf.
Then install the package :
yum update
yum install php-pgsql
Hope it helps.
The accepted answer did not help me, the official link did
Install CentOS SCLo RH repository:
sudo yum install centos-release-scl-rh
Install rh-php72-php-common rpm package:
sudo yum install rh-php72-php-common
Reference: https://centos.pkgs.org/7/centos-sclo-rh-x86_64/rh-php72-php-common-7.2.24-1.el7.x86_64.rpm.html#download
Related
I am trying to install PHP 7.4 on Ubuntu 16.04 for Apache2 server. To install the 7.4 version, I used PPA ondrej repository as follows:
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install -y php7.4
php -v
I get the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.4
E: Couldn't find any package by glob 'php7.4'
E: Couldn't find any package by regex 'php7.4'
I tried all the solutions mentioned in answer to this question:
Unable to install PHP 7.3 on Ubuntu 20.04
None of them helped. How can I install this package?
You can archive this by adding this 3rd party repository to your system:
sudo add-apt-repository ppa:jczaplicki/xenial-php74-temp
sudo apt-get update
CAUTION:
This is adding an external PPA repository to your system. If you do not trust the maintainer you should not do this, since it possibly exposes your system. Also note that this might work for installing php, but there will not be a guarantee that you recvive updates through it (The word "temp" in the repository name indicates that this is only temporary). I would rather recommend compiling it yourself if you really need to have it installed on 16.04.
As a "Long-Term Solution" you really should update your system.
Your OS Ubuntu 16.04 (Xenial) is too old.
Ondrej PPA only supports the following operating systems (as of 10 June 2021):
Hirsute (21.04), Groovy (20.10), Focal (20.04), Bionic (18.04)
Which is why there is no package found.
I ran into this recently. Luckily, I found a repo containing archives of the original Ondrej PPA. You will be able to install php7.4 and extensions.
However, I'd be careful with any archives as they can have a security risk.
sudo add-apt-repository ppa:tomvlk/php-archive
sudo apt-get update
Here are installation instructions for ZendPHP repository - https://help.zend.com/zendphp/current/content/installation/installation.htm
The ZendPHP installation package replaces Ubuntu 16.04 distribution's PHP and supports PHP 5.6, PHP 7.1, PHP 7.2, PHP 7.3, and PHP 7.4 on Ubuntu 16.04. Zend also offers PHP LTS for versions that are EOL and no longer receiving high and critical security patches
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'm now using PHP 5.4 on my Debian 7 Wheezy server. For the newest Laravel version I have to update to PHP 7.0.
So I followed a small tutorial on how to update my PHP version. I have to use a PPA because the PHP7.0 isn't officialy released yet.
I did the following steps:
Adding the PPA
add-apt-repository ppa:ondrej/php
Updating all the packages:
apt-get update && apt-get upgrade
Installing the package
apt-get install php7.0
But now I get the following error:
Unable to locate package php7.0
Couldn't find any package by regex: 'php7.0'
I have no idea what goes wrong and I've spend some hours trying solutions I found on internet but nothing works.
Does someone know a solution or an alternative to install PHP 7 on Debian?
This is a ppa for Ubuntu, therefore it may be not be compatitble with Debian as these packages are built for specific Ubuntu's version.
You can view list of available packages inside this ppa herE
https://launchpad.net/~ondrej/+archive/ubuntu/php
As you can see, there's no php7.0 package build for debian, it's just Ubuntu.
I have installed Ubuntu 14.04 LTS and LAMP server. By default the installed version of php had been 5.5, so I had to upgrade to 5.6 according to the manuals on the web .
After the upgrade the GD extension is not working well.
I tried:
sudo apt-get remove -purge php5-gd - to remove and purge the installed extension.
sudo apt-get install php5-gd - to install again.
Then I test the installation and this is the output:
sudo apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-gd is already the newest version.
Unfortunately I don't see the GD extension in phpinfo page and the test script from the application which I am trying to run also gives me error about GD2.
I have tried almost every suggestion that I found in Google, but find no joy. You are my last hope now. Thank you.
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