Installation steps of php gd library under linux

WBOY
Release: 2016-07-25 08:55:11
Original
1022 people have browsed it
  1. tar xzvf zlib-1.2.3.tar.gz
  2. cd zlib-1.2.3
  3. ./configure
  4. make
  5. make install
Copy the code

2. Install freetype

  1. tar xzvf freetype-2.2.1.tar.gz
  2. cd freetype-2.2.1
  3. ./configure
  4. make
  5. make install
Copy the code

3. Install libpng

  1. tar Create file package:/usr/local/man/man1
tar xzvf jpegsrc.v6b.tar.gz./configure --enable-shared --enable-staticmake
make install

Copy code
  1. Note that if you install PHP5, it must be installed libxml2
  2. 5. Install GD library
tar Code

2, change the apache configuration file: Let apache interpret the php program. 1. Find the AddType application/x-tar .tgz line and add it below:

  1. AddType application/x-httpd-php .php
  2. AddType application/x-httpd-php .php3
  3. AddType application/x-httpd-php .phtml
  4. AddType application/x-httpd-php-source . phps
Copy the code
2, find the following line and add it at the end: index.php, indicating that the default page of the website is also allowed to be index.php

  1. DirectoryIndex index.html index.html.var index.php
  2. Copy code

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template