最近遇到一台装有Fedora Core 5.0 Linux操作系统的服务器,原来安装的Apache 2.0、PHP 5.1.2不支持GD库,PHP网页中用GD库生成的验证码图片、统计图都无法显示。我试过在此基础上安装php-gd-5.1.2-5.i386.rpm包后还是不行。于是,想到了先卸载已安装PHP的所有RPM包,再重装PHP的方法。于是动手尝试,问题解决。
  
  一、在/var目录下新建一个临时目录php,将Fedora Core 5.0第2~5张光盘RPM目录中,以“php-”开头的RPM文件复制到/var/php目录中;
  
  二、在终端中执行以下命令(红字部分):
  1、查看已安装的PHP有哪些RPM包:
  [root@smis ~]# rpm -qa|grep php
  php-pear-1.4.6-2
  php-5.1.2-5
  php-gd-5.1.2-5
  php-ldap-5.1.2-5
  
  2、卸载用上述命令查看后列出的RPM包:
  [root@smis ~]# rpm -e php-pear-1.4.6-2 php-5.1.2-5 php-gd-5.1.2-5 php-ldap-5.1.2-5
  
  3、进入/var/php目录:
  [root@smis ~]# cd /var/php
  
  4、列出/var/php目录下的文件:
  [root@smis php]# ls
  php-5.1.2-5.i386.rpm           php-ncurses-5.1.2-5.i386.rpm
  php-bcmath-5.1.2-5.i386.rpm    php-odbc-5.1.2-5.i386.rpm
  php-dba-5.1.2-5.i386.rpm       php-pdo-5.1.2-5.i386.rpm
  php-devel-5.1.2-5.i386.rpm     php-pear-1.4.6-2.noarch.rpm
  php-gd-5.1.2-5.i386.rpm        php-pgsql-5.1.2-5.i386.rpm
  php-imap-5.1.2-5.i386.rpm      php-snmp-5.1.2-5.i386.rpm
  php-ldap-5.1.2-5.i386.rpm      php-soap-5.1.2-5.i386.rpm
  php-mbstring-5.1.2-5.i386.rpm  php-xml-5.1.2-5.i386.rpm
  php-mysql-5.1.2-5.i386.rpm     php-xmlrpc-5.1.2-5.i386.rpm
  
  5、安装你需要的组件的RPM包:
  [root@smis php]# rpm -ivh php-5.1.2-5.i386.rpm php-ncurses-5.1.2-5.i386.rpm php-bcmath-5.1.2-5.i386.rpm php-odbc-5.1.2-5.i386.rpm php-dba-5.1.2-5.i386.rpm php-pdo-5.1.2-5.i386.rpm php-devel-5.1.2-5.i386.rpm php-pear-1.4.6-2.noarch.rpm php-gd-5.1.2-5.i386.rpm php-pgsql-5.1.2-5.i386.rpm php-snmp-5.1.2-5.i386.rpm php-ldap-5.1.2-5.i386.rpm php-soap-5.1.2-5.i386.rpm php-mbstring-5.1.2-5.i386.rpm php-xml-5.1.2-5.i386.rpm php-mysql-5.1.2-5.i386.rpm php-xmlrpc-5.1.2-5.i386.rpm
  warning: php-5.1.2-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
  Preparing...                ########################################### [100%]
     1:php                    ########################################### [  6%]
     2:php-pdo                ########################################### [ 12%]
     3:php-ncurses            ########################################### [ 18%]
     4:php-bcmath             ########################################### [ 24%]
     5:php-odbc               ########################################### [ 29%]
     6:php-dba                ########################################### [ 35%]
     7:php-devel              ########################################### [ 41%]
     8:php-pear               ########################################### [ 47%]
     9:php-gd                 ########################################### [ 53%]
    10:php-pgsql              ########################################### [ 59%]
    11:php-snmp               ########################################### [ 65%]
    12:php-ldap               ########################################### [ 71%]
    13:php-soap               ########################################### [ 76%]
    14:php-mbstring           ########################################### [ 82%]
    15:php-xml                ########################################### [ 88%]
    16:php-mysql              ########################################### [ 94%]
    17:php-xmlrpc             ########################################### [100%]
  
  6、重新启动Apache服务:
  [root@smis php]# service httpd restart
  停止 httpd:                                               [确定]
  启动 httpd:                                               [确定]
  
  7、完毕。

Tags: ,



技术大类 » PHP/JS/Shell | 评论(46) | 引用(0) | 阅读(53814)
calm
2008-7-29 20:57
有点夸张, 可能吗?  

我就不信你第5步那么顺利。  

”太不可思议“!
lixi
2009-11-10 17:13
不错,有学习到一招。。。
JM Homepage
2009-12-11 15:11
RPM -IVH ......
进入/var/php目录,然后使用通配符完成安装:
rpm -ivh php*.rpm
你安装的软件太多了吧...算你有耐心
Mlern
2010-4-24 22:01
啊 有点吓人耶!!!
gron
2010-11-23 11:02
黑猫白猫抓老鼠就是好猫!!
ina Homepage
2011-8-30 15:59
xcxc Homepage
2011-9-27 22:15
louis vuitton uk Email Homepage
2011-11-22 17:24
This louis vuitton uk for sale belongs to the sounding just what are termed as Louis Vuitton vintage best sellers, many other products and services for the reason that range appearing companies.You will easily notice the unfold zippers of this coach outlet store online. That is the decoration. There are some inside pockets for you as well. They are easy to match your clothes and to carry.Let us inspire your inner beauty with fine christian louboutin sale. Purse the elegance in bridal wedding. Enjoy the fashion.
armani watches Email Homepage
2011-11-23 10:25
If you are looking for armani Bags, our armani watches Handbags Canada outlet store is your first choice. We promise Original Packing and Best Discount,3-5 Workdays To Your Door!If you buy bags and purses of the latest new designs from the louis vuitton outlet now, you can enjoy special discounts. What else are you waiting for?After you choose the right kind of plants and the size pot for the plant.
coach01outlet Email Homepage
2012-2-17 10:20
coach outlet can provide the coach exactly the same is expected in a retail store. It can help you find bags of various colors, shapes and designs, which prove once again that the coach is actually a selection for the housekeeper.I got the information of coach outlet online from my close friends. They often buy bags, purses and other accessories from this outlet.<br/>
louis vuitton uk Email Homepage
2012-2-17 15:07
The <a href="http://www.louisvuittonuks.org.uk" title="louis vuitton uk">louis vuitton uk</a> are built around the idea of luxury travel, so it follows naturally that it would be particularly suited to a season that came about out of the need for pre-season travel goods for those who have the money and flexibility to escape the winter weather in less exotic locales.<a href="http://www.louisvuittonuks.org.uk" title="louis vuitton outlet">louis vuitton outlet</a> online just like a person who want to show himself in front of other people, because he is confident enough, he can attain the respect of other people.<br/>
louis vuitton uk Email Homepage
2012-2-17 15:08
The <h1>louis vuitton uk</h1> are built around the idea of luxury travel, so it follows naturally that it would be particularly suited to a season that came about out of the need for pre-season travel goods for those who have the money and flexibility to escape the winter weather in less exotic locales.<h1>louis vuitton outlet</h1> online just like a person who want to show himself in front of other people, because he is confident enough, he can attain the respect of other people.<br/>
louis vuitton outlet Email Homepage
2012-2-17 16:18
louis vuitton outlet is really so well-liked and also treasured during the human beings to be a number of high-end, they may realize that the bring up to date might impact their very own laurels signature in the fashion world as well as talk about in your predisposition in their enthusiasts.Louis Vuitton is one of the world's leading international fashion houses.The catching styles and upmarket qualities endeared louis vuitton uk to almost everyone.<br/>
coach outlet online Email Homepage
2012-3-7 14:04
Vehicles will not be low priced, they can be very affordable. Select essential for anyone to featuring retail outlets nowadays to get the best tote with Coach Outlet bags. You're able to look online and also pick up many of the most well liked, most recent and design seems to be however , less expensive costs added to reliable Coach Outlet Online carriers you will find anywhere! A good actions immediately and select a very good and stylish for you to share personal persona?    
     To find out more take a look at our site, with a little luck you want you can savor the shopping. Your product or service also can be learned throughout critical high-end merchants just like. presently involve some connected with kinds of layouts, duffel, Coach Outlet Store totes are generally considered as a result of exclusivity as well as know how that may come to be for you to work for any type of expanded phase of time. Dullard's and a lot of additional trainer wall socket store. What type of handbags you decide on are usually a person. Keep in mind that a person's purse is reflecting the identity and design, but you should definitely really do the Somebody you ought to develop into. It does not matter Coach Online Outlet Store sacks that is, in the event you Purchased it, it is possible to stroll all-around with all your travel retained large. Eventually, really don't disregard to not ever expend an excessive amount. If you wish this name brand, understand on the web less expensive. For those who will have to waste money make sure don't use a credit-based card.
coach factory outlet Email Homepage
2012-5-17 10:00
Today, following half a century, mentor leather-bases coach factory outlet continues to be the delicate craft of leather-based master is accountable for,Would you like to meet more friends, or go with the times? If yes, coach factory online is opening welcome doors to you.in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our coach factory outlet online store to choose one.
louis vuitton sale Email Homepage
2012-5-17 10:00
Louis Vuitton belt at louis vuitton sale is one kind of fashion accessory with high cost performance among the Louis Vuitton accessories.Offering quality LV products with favorable prices, louis vuitton outlet store is at your service. Hurry up, or you can not seize the chance.in fact, louis vuitton is one of the most famous fashion design master.he opened the fist suitcase shop called after his name.
coach outlet online Email Homepage
2012-5-17 10:00
I heard of coach outlet online through the advertisement when I was shopping. And now I often brow the webpage and buy Coach bags online.It is a symbol regarding position not to mention nature.Here I would like to launch a excellent bags pertaining to business men.Which may be coach outlet store.coach outlet has always been simple,durable style features to win consumers.The products are more flexible,with easy bleaching,wear characteristics,and simply use a damp cloth.
coach outlet, Email Homepage
2012-5-17 10:00
Remember the coach outlet provide coach bags which won't be deteriorated into its overall styles by any means. It will maintain its looks, colors, and uniqueness for long time.coach outlet store online has been voted by Hour Detroit magazine readers as the Best of Detroit in their 12th annual readers'poll.Lots of women like which usually amount normally include a coach outlet online ,it provides coziness to many girls that don't even think it is a great bushel of great interest directly to them.
xujie777 Email
2012-5-18 14:51
We aim to make all our customers satisfy with our products. You will find a variety of Men's fashion louis vuitton uk, fashion Women's cheap Louis Vuitton bags in our store at affordable price.Thinking of interesting ways to cost a milestone birthday? louis vuitton online shop had one of the most distinctive distinctive celebrations.bakery along with living room operated by means of about three moment louis vuitton online Most effective Pastry Chef’s of the year Rammy Nominee Chef’s.
xujie777 Email
2012-5-18 14:51
The choices are likely to be basically countless seeing that louis vuitton outlet occurs with the help of completely new and also incredible concepts once in a while.Louis vuitton Wholesale Monogram Canvas HandbagsLouis Vuitton Collection Beach Handbags louis vuitton bags outlet Damier Canvas HandbagsLouis vuitton Mahina HandbagsLouis Vuitton Monogram Mini Lin HandbagsLouis Vuitton Monogram Multicolore HandbagsLouis vuitton Monogram Vernis HandbagsLouis Vuitton Wholesale Epi Leather HandbagsLouis Vuitton For Men HandbagsLouis Vuitton Damier Canvas WalletsLouis Vuitton Epi Leather WalletsLouis Vuitton Monogram Canvas WalletsLouis Vuitton Monogram Vernis WalleLouis Vuitton ShoesLouis Vuitton Men wallets.As the Authentic Louis Vuitton are so high-priced, so came the louis vuitton handbags outlet.
分页: 1/3 第一页 1 2 3 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]