Hello,
I am quite new to setting up and configuring web servers and I can’t seem to figure this out. I am trying to install the PHP GD library on my machine, but I get an error I don’t know how to solve.
I executed the command : sudo yum install php-gd
And got the following: Error: Package: php-gd-5.3.3-27.el6_5.i686 (updates) Requires: php-common(x86-32) = 5.3.3-27.el6_5 Installed: php-common-5.4.27-1.el6.remi.i686 (@remi) php-common(x86-32) = 5.4.27-1.el6.remi Available: php-common-5.3.3-26.el6.i686 (base) php-common(x86-32) = 5.3.3-26.el6 Available: php-common-5.3.3-27.el6_5.i686 (updates) php-common(x86-32) = 5.3.3-27.el6_5 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
Also, I used the following repositories: sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Any ideas about how to solve this?
Thanks a lot in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It looks like the “Remi” third party repository you added has a newer version of php, but not a corresponding version of php-gd. You have php 5.4 installed, but only php-gd 5.3 is available.
Hi, I finally managed to install php-gd, although I’m still not able to make it work. <br> <br>If I run the command: rpm -qa | grep php <br> <br>I get the following: <br>php-common-5.4.27-1.el6.remi.i686 <br>php-pdo-5.4.27-1.el6.remi.i686 <br>php-fpm-5.4.27-1.el6.remi.i686 <br>php-gd-5.4.27-1.el6.remi.i686 <br>php-mysql-5.4.27-1.el6.remi.i686 <br> <br>So I’m guessing it should be installed. <br> <br>I also added a swap file: <br> <br>Command: swapon -s <br>Result: <br>Filename Type Size Used Priority <br>/swapfile file 524280 0 -1 <br> <br>I restarted nginx and there is still no sign of gd when in run phpinfo(). Any ideas why this is happening? <br> <br>Thanks in advance!
You might need to restart php-fpm for it to take effect: <br> <br><pre> <br>/etc/rc.d/init.d/php-fpm restart <br></pre>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.