欢迎光临
我们一直在努力

LAMP环境配置安装注意安装步骤及说明事项

本站教程收集整理的这篇文章主要介绍了LAMP环境配置安装注意安装步骤及说明事项,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。

美国高防vps

一.安装gcc

sHell># yum -y install gcc

?

二.安装zlib压缩库

sHell>## cd /home/hsk/tar

sHell># tar –zxvf zlib-1.2.5.tar.gz

sHell># cd zlib-1.2.5

sHell># ./configure –build=arm-linux????//这个配置编译命令不要加目录参数

sHell># @H_284_17@make && make install

?

三.安装apache

sHell># cd /home/hsk/tar

sHell># tar -jxvf httpd-2.2.19.tar.bz2

sHell># cd httpd-2.2.19

sHell>#./configure –prefix=/usr/local/http2 \

@R_944_5179@?–enable-modules=all \

@R_944_5179@?–enable-mods-shared=all \

@R_944_5179@?–enable-so

–build=arm-linux

sHell># make && make install

?

启动Apache

sHell># /usr/local/http2/bin/apachectl start/stop/restart

?

四.安装libxml2

sHell># cd /home/hsk/tar

sHell># tar zxvf libxml2-2.7.2.tar.gz

sHell># cd libxml2-2.7.2

sHell>#./configure –prefix=/usr/local/libxml2 \

–without-zlib –build=arm-linux

sHell># make && make install

?

五.安装jpeg8

sHell># cd /home/hsk/tar

sHell># tar -zxvf jpegsrc.v8b.tar.gz

sHell># cd jpeg-8b

sHell>#./configure –prefix=/usr/local/jpeg \

–enable-shared –enable-static –build=arm-linux

sHell># make && make install

六.安装libpng

sHell># cd /home/hsk/tar

sHell># tar zxvf libpng-1.4.3.tar.gz

sHell># cd libpng-1.4.3

sHell>#./configure –build=arm-linux

sHell># make && make install

?

七.安装freetype(字体库)

sHell># cd /home/hsk/tar

sHell># tar zxvf freetype-2.4.1.tar.gz

sHell># cd freetype-2.4.1

sHell>#./configure –prefix=/usr/local/freetype –build=arm-linux

sHell># make && make install

?

八.安装GD库

sHell># cd /home/hsk/tar

sHell># tar -zvxf gd-2.0.35.tar.gz

sHell># cd gd-2.0.35

sHell>#./configure –prefix=/usr/local/gd \

@R_944_5179@?????–with-jpeg=/usr/local/jpeg/ ????\

@R_944_5179@?????–with-png –with-zlib \

@R_944_5179@?????–with-freetype=/usr/local/freetype –build=arm-linux

sHell># make && make install

?

九.安装 php5

sHell># cd /home/hsk/tar

sHell># tar -jxvf php-5.3.6.tar.bz2

sHell># cd php-5.3.6

sHell>#./configure –prefix=/usr/local/php \

@R_944_5179@?????–with-apxs2=/usr/local/http2/bin/apxs \

@R_944_5179@?????–with-MysqL=MysqLnd \

@R_944_5179@?????–with-pdo-MysqL=MysqLnd \

@R_944_5179@?????–with-MysqLi=MysqLnd \

@R_944_5179@?????–with-freetype-dir=/usr/local/freetype \

@R_944_5179@?????–with-gd=/usr/local/gd \

@R_944_5179@?????–with-zlib –with-libxml-dir=/usr/local/libxml2 \

@R_944_5179@?????–with-jpeg-dir=/usr/local/jpeg \

@R_944_5179@?????–with-png-dir \

@R_944_5179@?????–enable-mbString=all \

@R_944_5179@?????–enable-mbregex \

@R_944_5179@?????–enable-shared \

@R_944_5179@?????–build=arm-linux

sHell># make && make install

复制php.ini配置文件到指定目录

sHell># cp php.ini-development /usr/local/php/lib/php.ini

?

@H_395_403@配置Apache使其支持php

vi /usr/local/http2/conf/httpd.conf

  1. 在httpd.conf(Apache主配置文件)中增加:

AddType application/x-httpd-php .php????

?

  1. 找到下面这段话:

<IfModule dir_module>

DirectoryIndex index.html

</IfModule>

在index.html 前面添加index.php

?

  1. 建立php测试网页

vi /usr/local/http2/htdocs/index.php????

输入如下内容:

<?php

phpinfo();

?>

?

@H_617_450@

  • 安装MysqL

    参考本地网页版安装MysqL

  • 本站总结

    以上是本站教程为你收集整理的LAMP环境配置安装注意安装步骤及说明事项全部内容,希望文章能够帮你解决LAMP环境配置安装注意安装步骤及说明事项所遇到的程序开发问题。

    如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。

    本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
    如您有任何意见或建议可联系处理。

    赞(0)
    【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。