Linux under RPM installation PHP GD library Support (detailed steps)

Source: Internet
Author: User
Tags ldap pear snmp
    1. [Root@jbxue ~]# rpm-qa|grep PHP
    2. Php-pear-1.4.6-2
    3. Php-5.1.2-5
    4. Php-gd-5.1.2-5
    5. Php-ldap-5.1.2-5
Copy Code

2. Uninstall the RPM packages listed above:

    1. [Root@jbxue ~]# 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
Copy Code

3. Enter the/var/php directory:

    1. [Root@jbxue ~]# cd/var/php
Copy Code

4. List the files under the/var/php directory:

    1. [Root@jbxue php]# ls
    2. php-5.1.2-5.i386.rpm php-ncurses-5.1.2-5.i386.rpm
    3. php-bcmath-5.1.2-5.i386.rpm php-odbc-5.1.2-5.i386.rpm
    4. php-dba-5.1.2-5.i386.rpm php-pdo-5.1.2-5.i386.rpm
    5. php-devel-5.1.2-5.i386.rpm php-pear-1.4.6-2.noarch.rpm
    6. php-gd-5.1.2-5.i386.rpm php-pgsql-5.1.2-5.i386.rpm
    7. php-imap-5.1.2-5.i386.rpm php-snmp-5.1.2-5.i386.rpm
    8. php-ldap-5.1.2-5.i386.rpm php-soap-5.1.2-5.i386.rpm
    9. php-mbstring-5.1.2-5.i386.rpm php-xml-5.1.2-5.i386.rpm
    10. php-mysql-5.1.2-5.i386.rpm php-xmlrpc-5.1.2-5.i386.rpm
Copy Code

5, install the required components of the RPM package:

  1. [Root@jbxue 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
  2. Warning:php-5.1.2-5.i386.rpm:header V3 DSA Signature:nokey, key ID 4f2a6fd2
  3. Preparing ... ########################################### [100%]
  4. 1:php ########################################### [6%]
  5. 2:php-pdo ########################################### [12%]
  6. 3:php-ncurses ########################################### [18%]
  7. 4:php-bcmath ########################################### [24%]
  8. 5:PHP-ODBC ########################################### [29%]
  9. 6:PHP-DBA ########################################### [35%]
  10. 7:php-devel ########################################### [41%]
  11. 8:php-pear ########################################### [47%]
  12. 9:PHP-GD ########################################### [53%]
  13. 10:php-pgsql ########################################### [59%]
  14. 11:PHP-SNMP ########################################### [65%]
  15. 12:php-ldap ########################################### [71%]
  16. 13:php-soap ########################################### [76%]
  17. 14:php-mbstring ########################################### [82%]
  18. 15:php-xml ########################################### [88%]
  19. 16:php-mysql ########################################### [94%]
  20. 17:php-xmlrpc ########################################### [100%]
Copy Code

6. Restart Apache Service:

    1. [Root@jbxue php]# Service httpd restart
    2. Stop httpd: [OK]
    3. Start httpd: [OK]
Copy Code

At this point, under Linux installed the PHP GD Library extension, the implementation of Linux under the open PHP GD library Support, then we can use GD to complete the processing of various images.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.