 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

23rd April 2008, 05:37 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
|
I dont want to destroy the php that is setup already cos my website will stop working and I undoubtedly would have to pay the £200 or so for my host to rectify.
Would messing with the PHP cause anything catastrophic to happen?
|

23rd April 2008, 05:38 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
Quote:
|
Originally Posted by PabloTwo
Are you running those yum install commands on your local machine or on the server via ssh?
|
On the server via SSH (putty I use to login)
|

23rd April 2008, 05:44 PM
|
 |
"Registered User" T-Shirt Winner
|
|
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118

|
|
http://redhat.download.fedoraproject...6-1.6.i386.rpm
Grab this package (matches the version of php-gd you already have), install to the same directory and run
[CODE}rpm -ivh php-5.1.6-1.6.i386.rpm php-gd-5.1.6-1.6.i386.rpm[/CODE]
These are not newer packages, but it'll test whether you need any more deps or not.
|

23rd April 2008, 05:47 PM
|
 |
"Registered User" T-Shirt Winner
|
|
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118

|
|
STOP !!
If PHP is already installed on the server, first, find out what version.
Code:
rpm -qa | grep -i php
Then we'll find the version of php-gd that matches and install that.
|

23rd April 2008, 05:53 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
Right heres what happened now
Code:
[root@server88-208-229-229 src]# rpm -ivh php-5.1.6-1.6.i386.rpm php-gd-5.1.6-1.6.i386.rpm
Preparing... ########################################### [100%]
file /usr/bin/php from install of php-5.1.6-1.6 conflicts with file from package php-5.1.6-1.2
file /usr/bin/php-cgi from install of php-5.1.6-1.6 conflicts with file from package php-5.1.6-1.2
file /usr/lib/httpd/modules/libphp5.so from install of php-5.1.6-1.6 conflicts with file from package php-5.1.6-1.2
|

23rd April 2008, 05:54 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
|
Sorry that messed up
again......
[root@server88-208-229-229 src]# rpm -ivh php-5.1.6-1.6.i386.rpm php-gd-5.1.6-1.6.i386.rpm
Preparing... ########################################### [100%]
file /usr/bin/php from install of php-5.1.6-1.6 conflicts with file from package php-5.1.6-1.2
file /usr/bin/php-cgi from install of php-5.1.6-1.6 conflicts with file from package php-5.1.6-1.2
file /usr/lib/httpd/modules/libphp5.so from install of php-5.1.6-1.6 conflicts with file from package php-5.1.6-1.2
|

23rd April 2008, 05:57 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
|
Just seen the STOP!
did your command heres the outcome
[root@server88-208-229-229 src]# rpm -qa | grep -i php
php-pdo-5.1.6-1.2
php-ldap-5.1.6-1.2
php-mysql-5.1.6-1.2
php-5.1.6-1.2
php-pear-1.4.9-1.2
[root@server88-208-229-229 src]#
|

23rd April 2008, 06:13 PM
|
 |
"Registered User" T-Shirt Winner
|
|
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118

|
|
Might take a little time to find an exact match rpm package of php-gd for "php-gd-5.1.6-1.2".
I'm not sure why rpm is complaining, as it is really the same base version, only the "release" number is different. In the meantime, you could try,
Code:
rpm -ivh --nodeps php-gd-5.1.6-1.6.i386.rpm
and see how it played.
|

23rd April 2008, 06:16 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
I did this dont know what it means though
[root@server88-208-229-229 src]# rpm -ivh --nodeps php-gd-5.1.6-1.6.i386.rpm
Preparing... ########################################### [100%]
1  hp-gd ########################################### [100%]
[root@server88-208-229-229 src]#
|

23rd April 2008, 06:19 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
|
what do I do in putty then and where do i put this file?
|

23rd April 2008, 06:20 PM
|
 |
"Registered User" T-Shirt Winner
|
|
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118

|
|
It means it was successfully installed
Probably won't need to last link version now, but grab it anyway just in case.
Do [/B]rpm -qa | grep -i php[/B] again to confirm.
|

23rd April 2008, 06:21 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
Quote:
|
Originally Posted by PabloTwo
|
That link aint working pablo, its asking for a username and email
|

23rd April 2008, 06:21 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 40

|
|
|
So what was successfully installed how will i know if it is or is working?
|

23rd April 2008, 06:24 PM
|
 |
"Registered User" T-Shirt Winner
|
|
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118

|
|
will tell you if it's installed.
Is it working? How would I know?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 03:28 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|