apache2.2.4+mysql5.0.77+php5.2.8°²×°¾«¼ò

5年以前  |  阅读数:703 次  |  编程语言:PHP 

1.°²×°Apache

½«httpd-2.2.4.tar.gz¿½±´ÖÁ/usr/local/srcĿ¼ÖÐ

tar -zxvf httpd-2.2.4.tar.gz

cd httpd-2.2.4

./configure --prefix=/usr/local/apache2 --enable-so --enable-vhost-alias --enable-rewrite --enable-deflate --enable-mods-shared=all --with-mpm=worker

make && make install

2£®°²×°php

°²×°freetype-2.3.5.tar.gz

tar zxvf freetype-2.3.5.tar.gz

cd freetype-2.3.5

./configure --prefix=/usr/local/phpsyslib/freetype-2.3.5

make && make install

mkdir /usr/local/phpsyslib/freetype-2.3.5/include/freetype2/freetype/internal£¨Èç¹u±¨´iÐeÒª£(C)

°²×°jpeg

tar zxvf jpegsrc.v6b.tar.gz

cd jpeg-6b

./configure --prefix=/usr/local/phpsyslib/jpeg-6b --enable-shared ±ØÐe¼ÓºoÃaeÕa¸o²ÎÊý£¬²»È»²»ÄÜÉu³ÉÄǸo¹²Ïi¿a

¸u¾Ý±¨´iÐÅÏ¢×Ô¼º´´½¨ÏaӦĿ¼

cp libjpeg.a /usr/local/lib(Èç¹u°²×°gd²»³É¹¦µÄ»°)

°²×°zlib

tar zxvf zlib-1.2.3.tar.gz

cd zlib-1.2.3

./configure --prefix=/usr/local/phpsyslib/zlib-1.2.3

°²×°openssl-0.9.8e

tar zxvf openssl-0.9.8e.tar.gz

cd openssl-0.9.8e

./config shared zlib

make

make test

make install

mv /usr/bin/openssl /usr/bin/openssl.OFF

mv /usr/include/openssl /usr/include/openssl.OFF

ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

ln -s /usr/local/ssl/include/openssl /usr/include/openssl

ÅaÖÿaÎļþËÑË÷Â*¾¶

echo "/usr/local/ssl/lib" >> /etc/ld.so.conf

ldconfig -v

°²×°libpng

tar zxvf libpng-1.2.23.tar.gz

cd libpng-1.2.23

cp scripts/makefile.linux makefile

°²×°GD¿a£¨Èç¹uʧ°ÜÏÈ°²×°libtoolºÍgettext£(C)

tar zxvf gd-2.0.35.tar.gz

cd gd-2.0.35

./configure --prefix=/usr/local/phpsyslib/gd-2.0.35 --with-jpeg=/usr/local/phpsyslib/jpeg-6b --with-png=/usr/local/ --with-zlib=/usr/local/phpsyslib/zlib-1.2.3 --with-freetype=/usr/local/phpsyslib/freetype-2.3.5/

make && make install

°²×°gettext(Èç¹uʧ°ÜÏÈ°²×° libtool)

tar zxvf gettext-0.17.tar.gz

cd gettext-0.17

./configure --prefix=/usrmake && make install °²×°libtool

tar zxvf libtool-2.2.tar.gz

cd libtool-2.2

./configure --prefix=/usrmake && make installcp /usr/lib/libattr.la /lib/

°²×°curl

tar zxvf curl-7.17.1.tar.gz

cd curl-7.17.1

./configure --prefix=/usr/local/phpsyslib/curl-7.17.1

make && make install

3£®°²×°mysql

tar zxvf mysql-5.0.77-linux-i686-icc-glibc23.tar.gz

cp mysql-5.0.77-linux-i686-icc-glibc23 /usr/local/mysql

cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysql ---mysql×ÔÆo¶¯

cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf

groupadd mysql

useradd -g mysql mysql

chown -R root /usr/local/mysql

chgrp -R mysql /usr/local/mysql

ÉÏÃaeÁ½¾a¿ÉÓÃ(chown -R root:mysql /usr/local/mysql)

chown -R mysql /usr/local/mysql/data

/usr/local/mysql/scripts/mysql_install_db --user=mysql&

/usr/local/mysql/bin/safe_mysqld --user=mysql&

°²×°php

./configure --prefix=/usr/local/php5.2.8 --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir=/usr/share/doc/libxml2-2.6.16 --with-gd=/usr/local/phpsyslib/gd-2.0.35 --enable-gd-native-ttf --with-jpeg-dir=/usr/local/jpeg-6b --with-png-dir --with-freetype-dir=/usr/local/phpsyslib/freetype-2.3.5 --with-iconv-dir --with-zlib=/usr/local/phpsyslib/zlib-1.2.3 --enable-mbstring --disable-ipv6 --with-openssl-dir=/usr/local/ssl --with-curl=/usr/local/phpsyslib/curl-7.17.1 --with-mime-magic=/usr/share/file/magic.mime

MysqlÈÕ³£ÓÃ*¨

mysqldump ¨CuXXX ¨ChXXX -p samp_db >/usr/archives/mysql/samp_db.1999-10-02 ±¸*Ý

mysql Êý¾Ý¿aÃu <ÎļþÂ*¾¶ Óû§ÃuºÍÃÜÂe£¨Èç¹uÓУ(C) µ¼Èe

½¨Á¢Óû§£º

grant all on redflag.* to Óû§Ãu@"%" identified by "ÃÜÂe";

flush privileges;

 相关文章:
PHP分页显示制作详细讲解
SSH 登录失败:Host key verification failed
获取IMSI
将二进制数据转为16进制以便显示
获取IMEI
文件下载
贪吃蛇
双位运算符
PHP自定义函数获取搜索引擎来源关键字的方法
Java生成UUID
发送邮件
年的日历图
提取后缀名
在Zeus Web Server中安装PHP语言支持
让你成为最历害的git提交人
Yii2汉字转拼音类的实例代码
再谈PHP中单双引号的区别详解
指定应用ID以获取对应的应用名称
Python 2与Python 3版本和编码的对比
php封装的page分页类完整实例