PHP

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP相关的知识,希望对你有一定的参考价值。

1、首先安装GD库和GD库关联程序 ,用来处理和生成图片
yum install \
libjpeg-devel \
libpng-devel \
freetype-devel \
zlib-devel \
gettext-devel \
libXpm-devel \
libxml2-devel \
fontconfig-devel \
openssl-devel \
bzip2-devel
技术分享图片
2、安装gd库
技术分享图片
3、编译gd库
技术分享图片

4、解压php压缩包,并配置PHP,编译
./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-gd \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/etc \
--enable-sqlite-utf8 \
--with-zlib-dir \
--with-libxml-dir \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-ttf \
--with-iconv \
--with-openssl \
--with-gettext \
--enable-mbstring \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--enable-static \
--enable-zend-multibyte \
--enable-inline-optimization \
--enable-sockets \
--enable-soap \
--enable-ftp \
--disable-ipv6
技术分享图片
技术分享图片技术分享图片

5、编辑Apache配置文件,让其支持PHP vim /usr/local/apache/conf/httpd.conf
技术分享图片技术分享图片

6、更改Apache首页,cd /usr/local/apache/htdocs/ 编辑index.php 重启服务
技术分享图片技术分享图片技术分享图片技术分享图片

以上是关于PHP的主要内容,如果未能解决你的问题,请参考以下文章

php send.php php邮件模板#php

IntelliJ IDEA 11编辑php是,支持php文件名为.php5和.php4,如何设置能让其也支持.php呢?

如何从php5升级到php7

请问php中如何调用php文件中的内容?

php [php:PHPMailer示例] php库“PHPMailer”示例。 #PHP

php基础