-
- tar xzvf zlib-1.2.3.tar.gz
- cd zlib-1.2.3
- ./configure
- make
- make install
Copy the code
2. Install freetype
-
- tar xzvf freetype-2.2.1.tar.gz
- cd freetype-2.2.1
- ./configure
- make
- make install
Copy the code
3. Install libpng
-
- tar
Create file package:/usr/local/man/man1
-
-
-
-
tar xzvf jpegsrc.v6b.tar.gz ./configure --enable-shared --enable-staticmake make install
Copy code
- Note that if you install PHP5, it must be installed libxml2
-
- 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:
- AddType application/x-httpd-php .php
- AddType application/x-httpd-php .php3
- AddType application/x-httpd-php .phtml
- 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
- DirectoryIndex index.html index.html.var index.php
-
-
- Copy code
-
|