LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2009, 09:29 AM   #1
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Rep: Reputation: 0
GD needing php-common, but its installed


CentOS 5 box.

Did yum install php-gd get this

Code:
Resolving Dependencies
--> Running transaction check
---> Package php-gd.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-gd
--> Finished Dependency Resolution
php-gd-5.1.6-23.2.el5_3.i386 from base has depsolving problems
  --> Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-gd-5.1.6-23.2.el5_3.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-gd-5.1.6-23.2.el5_3.i386 (base)
So, i do yum install php-common and i get this

Code:
Setting up Install Process
Parsing package install arguments
Package matching php-common-5.1.6-23.2.el5_3.i386 already installed. Checking for update.
Nothing to do
HELP PLEASE!! Kinda lost on this one.
 
Old 12-21-2009, 10:51 AM   #2
Lee_Ball
Member
 
Registered: Jul 2005
Location: Manchester (UK)
Distribution: Fedora CentOS
Posts: 132

Rep: Reputation: 18
You tried removing it and getting php-gd to add it as a dependency?

Also, don't forget to try a yum clean all and a yum update prior to installation.
 
1 members found this post helpful.
Old 12-21-2009, 11:28 AM   #3
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
updating box now. will post back with results.

If i remove php-common, will it break anything important until it comes back? Its a live box.

thanks.
 
Old 12-21-2009, 12:05 PM   #4
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
If i remove php-common, it looks like it will also remove a bunch of other packages that i need, like php-mysql.

I did the clean and the update, but i am still stuck.
 
Old 12-22-2009, 11:02 AM   #5
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
bump for help plz. i am stuck big time on this!!
 
Old 12-24-2009, 06:13 PM   #6
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
find in php.ini section where it is extension and this:
extension = gd.so
extension = mysql.so
restart machine and see what happend.
 
1 members found this post helpful.
Old 12-29-2009, 12:42 PM   #7
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for the reply

In my php.ini is says

Code:
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;                
;
; If you wish to have an extension loaded automatically, use the following    
; syntax:
;                  
;   extension=modulename.extension
;
; For example:
; 
;   extension=msql.so              
; 
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.

Add them here???
Right below the above is this, do i need to do anything with this?
Code:
;;;;
; Note: packaged extension modules are now loaded via the .ini files                  
; found in the directory /etc/php.d; these are loaded by default.                 
;;;;

Do i need to restart the box or apache?

I am gunna add them to the php.ini file and restart apache, then see what happens, if it breaks, i can undo the edits.

Am i doing it right?

Thanks for the help!!
 
Old 12-29-2009, 02:42 PM   #8
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
k, i did

Code:
rpm -e --justdb --nodeps php-common
To remove the listing from the database, then did

Code:
yum install php-gd
and it installed php-gd and php-common

rebooted box, but still do not have any php-gd support.

My php.ini now shows

Code:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example:
;                
;   extension=msql.so
; 
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.
extension=gd.so
extension=mysql.so
my phpinfo is http://gallery.lewispestcontrol.net/phpinfo.php

Now what?!?! I am pulling my hair out for a simple solution to have a pic gallery for this website. I am about to roll my own....
 
Old 12-29-2009, 04:13 PM   #9
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
is in php info in the button you see GD loaded or not ? And which modules are loaded ?
 
Old 12-29-2009, 04:15 PM   #10
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
Post php info page to see how I can help you.
 
Old 12-29-2009, 04:22 PM   #11
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
I see, check if installed php-cli, php-common, php-gd, gd, gd-devel. You can use "yum -y install"
 
Old 12-30-2009, 08:31 AM   #12
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by volga629 View Post
I see, check if installed php-cli, php-common, php-gd, gd, gd-devel. You can use "yum -y install"
Yep, all installed.

Thanks for the help.
 
Old 12-30-2009, 08:33 AM   #13
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by volga629 View Post
Post php info page to see how I can help you.
I must have delete the phpinfo() file i made. Its back.

http://gallery.lewispestcontrol.net/phpinfo.php

Thanks again!!
 
Old 12-30-2009, 11:32 AM   #14
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
Set this to right path Configuration File (php.ini) Path in php info it is just /etc you have set to /etc/php.ini as Loaded Configuration File /etc/php.ini
 
Old 12-30-2009, 11:38 AM   #15
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
And check if two libraries installed libjpeg libpng just from software manger or through yum
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum update PHP on CentOS - missing dependency php-common AndyMillne Linux - Server 7 05-21-2013 06:34 AM
php-common problems due to repo sir-lancealot Linux - Server 5 03-28-2009 06:20 AM
RH 9.0 glibc rpm says it needs glibc-common, but glibc-common is installed whitshade Red Hat 2 04-28-2007 05:49 PM
LXer: Five common PHP design patterns LXer Syndicated Linux News 0 07-21-2006 01:24 AM
php-common won't install ixion Linux - Software 1 02-22-2004 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration