LAMP环境配置安装注意安装步骤及说明事项
一.安装gccshell># 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># make && make install ? 三.安装apacheshell># 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 ????????--enable-modules=all ????????--enable-mods-shared=all ????????--enable-so --build=arm-linux shell># make && make install ? 启动Apache shell># /usr/local/http2/bin/apachectl start/stop/restart ? 四.安装libxml2shell># 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 ? 五.安装jpeg8shell># 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 六.安装libpngshell># 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 ????????????--with-jpeg=/usr/local/jpeg/ ???? ????????????--with-png --with-zlib ????????????--with-freetype=/usr/local/freetype --build=arm-linux shell># make && make install ? 九.安装 php5shell># 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 ????????????--with-apxs2=/usr/local/http2/bin/apxs ????????????--with-mysql=mysqlnd ????????????--with-pdo-mysql=mysqlnd ????????????--with-mysqli=mysqlnd ????????????--with-freetype-dir=/usr/local/freetype ????????????--with-gd=/usr/local/gd ????????????--with-zlib --with-libxml-dir=/usr/local/libxml2 ????????????--with-jpeg-dir=/usr/local/jpeg ????????????--with-png-dir ????????????--enable-mbstring=all ????????????--enable-mbregex ????????????--enable-shared ????????????--build=arm-linux shell># make && make install 复制php.ini配置文件到指定目录 shell># cp php.ini-development /usr/local/php/lib/php.ini ? 配置Apache使其支持php vi /usr/local/http2/conf/httpd.conf
AddType application/x-httpd-php .php???? ?
<IfModule dir_module> DirectoryIndex index.html </IfModule> 在index.html 前面添加index.php ?
vi /usr/local/http2/htdocs/index.php???? 输入如下内容: <?php phpinfo(); ?> ?
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |