Composer install, PHP extension GD is missing - php

So I'm trying to deploy my git project to my linux server. After I cloned it I'm trying to do a composer install to get everything up and running but I'm getting an error doing so.
brianmcdo/image-palette dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
Trying to fix this I'm running:
yum install php-gd
Yet giving me another error saying:
Error: php55w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have PHP 5.5.30 on my server, I don't know if that has to do anything with it?
Does anyone know how I can fix this error and get my project running like it's supposed to?

Related

Yum throwing dependency error even when the package is available

I've downloaded some older php packages from Webtatic which are required for my application and created a local repository (repo_php). One of the packages in my 'repo_app' has a dependency on packages from repo_php. While installing, yum returns the following error.
...
--> Finished Dependency Resolution
Error: Package: app-platform-20190921-6.el7.centos.x86_64 (repo_app)
Requires: php72w-mbstring >= 7.2.16-1
Available: php72w-mbstring-7.2.16-1.w7.x86_64 (repo_php)
php72w-mbstring = 7.2.16-1.w7
Error: Package: app-platform-20190921-6.el7.centos.x86_64 (repo_app)
Requires: php72w-ldap >= 7.2.16-1
Available: php72w-ldap-7.2.16-1.w7.x86_64 (repo_php)
php72w-ldap = 7.2.16-1.w7
...
...
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The app-platform-20190921-6.el7.centos.x86_64 is an application package which requires the php packages to be installed from repo_php. From the error log it can be seen that the required package is available but still Yum is unable to proceed with the installation. I've tried using different php version naming in the Requires tag of app-platform rpmspec file. Running out of options to troubleshoot.

Cannot install mbstring php conflict

I am trying to install php-mbstring with php 5.6 and I get this error:
Error: php56w-common conflicts with php-common-5.4.45-3.el6.remi.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have attempted to install php56-mbstring, but I get the following. I am not sure if this means it is already installed or not:
Nothing to do
What is the most appropriate package to install? Which one should I be trying to resolve and how can I resolve it. Thanks!
I run into same problem with my server running PHP 5.6.17. For me it seems that the extension that I was looking for was php56w-mbstring.x86_64
It can be found from webtatic repository. I don't remember enabling that by myself, but in case it is missing here is the instructions how to enable said repo: http://www.certdepot.net/rhel7-install-webtatic-repository/
You can list available repos in your server by command yum repolist
To search if your repos has something related to mbstring use command yum list *mbstring*
So solution for me was this: yum install php56w-mbstring.x86_64
Finally restart Apache: service httpd restart
By the way, I am running CentOS server so your commands might be slightly different on your OS.
Have you added the module to your PHP.ini file extension=php_mbstring.dll
I tried and tried everything until i came to this link. https://docs.phpmyadmin.net/en/latest/setup.html#debian-setup
I run /usr/sbin/pma-configure and bam I had phpmyadmin working without the mbstring error
there is so many setups now that it is hard to find the one you need.
running ubuntu 14.04 with 4 versions of php installed with virtualmin webmin cp. Debian and Ubuntu changed the way how setup is enabled and disabled. few just happy this is working now. hope this helps you spend less time that i did to find this solution.

Upgraded PHP to 5.6.16 and MySQL Extension not working

I was running a very outdated version of PHP version 5.3.3. So I updated it to 5.6.16. However since I've updated I am getting the following error when I try to view my Wordpress site:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I understand that the reason for this error is because the mysql extension is not being loaded by PHP but I am unsure as to what to do to get this? I've checked my php.ini file and uncommented this line
extension=msql.so
restarted my apache server and no luck!
The Code I am using to check if it is enabled is:
if (extension_loaded('mysql') or extension_loaded('mysqli')) {
echo "Loaded";
}else{
echo "Not Loaded";
}
when I run php -m in my terminal I see mysql is not listed.
Could anyone help me out with getting this to work.
I've also tried running this command yum install php-mysql but I get this error:
Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.3.3-46.el6_6.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Thanks
Have you tried yum install php56w-mysql?
That should install the 5.6 version of the MySQL libraries. It looks like yum is trying to install the 5.3 version by default. Out of curiosity, what OS is this you are installing on, it might be a little out of date.

PECL - Error not found installing extension

I want to install cld exention with pecl. There is a strange error and I don't know how to solve it. Following the log: http://pastebin.com/YunLWetm, how to solve it? My SO is Ubuntu 13.10.

Package Requires: libcurl.so.3

Mysql is not working with PHP. I got a blank white page on my website. and I'm looking for the problem, for some reasons, i found out that my php version doesn't have a mysql version. So look for some solutions and here's what I've gone so far.
I tried to update my php version and mysql.
I got this error after executing this command
yum install -y php php-mysql
i have a centOS 6.4 and a php 5.3.3 . and my php doesn't have a mysql support. what should i do?
and after i execute the said command (yum install -y php php-mysql). I got an error message. Is there something wrong with my code?
Error: Package: php-common-5.3.27-2.w5.i386 (webtatic) Requires: libcurl.so.3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
in my situation I solved my problem by enabling rpmforge-extras repository in yum.repos:
thanks to this
> cat /etc/yum.repos.d/rpmforge.repo
...
[rpmforge-extras]
...
enabled = 0
This is strange as yum typically tries to resolve dependencies. Try installing libcurl manually:
yum install libcurl libcurl-devel

Categories