一、 系统要求
Freebsd6.2
二、 安装软件
将以下所需要的软件放在/usr/src/software目录下,没有就自己新建
httpd-2.0.58.tar.bz2
php-5.2.0.tar.bz2
perl-5.8.8
mysql-5.0.41.tar.gz
libxml2-2.6.13.tar.gz
Libconv
Iconv
三、 安装步骤
1. 安装Mysql
2. 安装Apache
3. 安装PHP
4. 配置httpd.conf
5. 启动/停止apache
四、安装方法
1、安装Mysql
==============================
#tar xvf mysql-5.0.41.tar.gz /先解压缩至Software目录下
#cd mysql-5.0.41
#pw groupadd mysql /先新建群组
#pw useradd mysql –g mysql /再添加用户
#./configure --prefix=/usr/local/mysql --localstatedir=/var/mysqldata --with-big-tables
#/usr/local/mysql/bin/mysql_install_db --user=mysql
#cp /usr/src/software/mysql-5.0.24a/support-files/mysql.server /usr/local/etc/rc.d/mysql.sh
#chmod 750 /usr/local/etc/rc.d/mysql.sh
2. 安装Apache
==============================
#tar xvf httpd-2.0.58.tar.bz2
# cd httpd-2.0.58
#./configure --prefix=/usr/local/apache2 --enable-shared=max --enable-module=rewrite --enable-so
# make
# make install
#./httpd –k start
Or /usr/local/etc/rc.d/apache.sh 内容为
/usr/local/apache/httpd
Chmod 750 /usr/local/etc/rc.d/apache.sh
. 3.安装PHP
===========================
步骤:
3.1 安装gd-2.0.33.tar.gz
3.2 安装libxml2-2.6.19.tar.gz
3.3 安装libiconv-1.9.1.tar.gz
3.4 安装php
3.1 安装gd
==============================
gd需要以下模块:
. zlib-1.2.3.tar.gz
. libpng-1.2.8-config.tar.gz
. freetype-2.1.10.tar.gz (可选装)
. xpm-3.4k.tar.gz (可选装)
. jpegsrc.v6b.tar.gz (可选装)
3.1.1 安装zlib
==============================
# tar zxvf zlib-1.2.3.tar.gz
# cd zlib-1.2.3
# ./configure && make && make install
默认情况zlib被安装到/usr/local/include/
http://www.zlib.net/
3.1.2 安装libpng
==============================
# tar libpng-1.2.8-config.tar.gz
# cd libpng-1.2.8-config
# ./configure && make && make install
默认情况libpng被安装到/usr/local/include/libpng/
http://www.libpng.org/pub/png/libpng.html
3.1.3 安装gd
==============================
# tar zxvf gd-2.0.33.tar.gz
# cd gd-2.0.33
# cp /usr/local/include/png.h .
# cp /usr/local/include/pngconf.h .
# ./configure && make && make install
#
*** 我遇到过gd_png.c找不到png库文件的情况, 这时要手工把png.h和pngconf.h两个文件
拷贝到gd_png.c所在目录就可以了. ***
默认情况gd被安装到/usr/local/include/
http://www.boutell.com/gd/
3.2 安装libxml
==============================
# tar zxvf libxml2-2.6.19.tar.gz
# cd libxml2-2.6.19
# ./configure && make && make install
#
3.3 安装libiconv
==============================
# tar zxvf libiconv-1.9.1.tar.gz
# cd libiconv-1.9.1
# ./configure && make && make install
#
3.4 安装PHP
==============================
# tar zvxf php-5.1.2.tar.gz
# cd php-5.1.2
#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-xml --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/etc --disable-debug --enable-safe-mode --enable-trans-sid --enable-memory-limit --enable-short-tags --disable-posix --enable-exif --enable-sockets
# make
# make install
Freebsd6.2
二、 安装软件
将以下所需要的软件放在/usr/src/software目录下,没有就自己新建
httpd-2.0.58.tar.bz2
php-5.2.0.tar.bz2
perl-5.8.8
mysql-5.0.41.tar.gz
libxml2-2.6.13.tar.gz
Libconv
Iconv
三、 安装步骤
1. 安装Mysql
2. 安装Apache
3. 安装PHP
4. 配置httpd.conf
5. 启动/停止apache
四、安装方法
1、安装Mysql
==============================
#tar xvf mysql-5.0.41.tar.gz /先解压缩至Software目录下
#cd mysql-5.0.41
#pw groupadd mysql /先新建群组
#pw useradd mysql –g mysql /再添加用户
#./configure --prefix=/usr/local/mysql --localstatedir=/var/mysqldata --with-big-tables
#/usr/local/mysql/bin/mysql_install_db --user=mysql
#cp /usr/src/software/mysql-5.0.24a/support-files/mysql.server /usr/local/etc/rc.d/mysql.sh
#chmod 750 /usr/local/etc/rc.d/mysql.sh
2. 安装Apache
==============================
#tar xvf httpd-2.0.58.tar.bz2
# cd httpd-2.0.58
#./configure --prefix=/usr/local/apache2 --enable-shared=max --enable-module=rewrite --enable-so
# make
# make install
#./httpd –k start
Or /usr/local/etc/rc.d/apache.sh 内容为
/usr/local/apache/httpd
Chmod 750 /usr/local/etc/rc.d/apache.sh
. 3.安装PHP
===========================
步骤:
3.1 安装gd-2.0.33.tar.gz
3.2 安装libxml2-2.6.19.tar.gz
3.3 安装libiconv-1.9.1.tar.gz
3.4 安装php
3.1 安装gd
==============================
gd需要以下模块:
. zlib-1.2.3.tar.gz
. libpng-1.2.8-config.tar.gz
. freetype-2.1.10.tar.gz (可选装)
. xpm-3.4k.tar.gz (可选装)
. jpegsrc.v6b.tar.gz (可选装)
3.1.1 安装zlib
==============================
# tar zxvf zlib-1.2.3.tar.gz
# cd zlib-1.2.3
# ./configure && make && make install
默认情况zlib被安装到/usr/local/include/
http://www.zlib.net/
3.1.2 安装libpng
==============================
# tar libpng-1.2.8-config.tar.gz
# cd libpng-1.2.8-config
# ./configure && make && make install
默认情况libpng被安装到/usr/local/include/libpng/
http://www.libpng.org/pub/png/libpng.html
3.1.3 安装gd
==============================
# tar zxvf gd-2.0.33.tar.gz
# cd gd-2.0.33
# cp /usr/local/include/png.h .
# cp /usr/local/include/pngconf.h .
# ./configure && make && make install
#
*** 我遇到过gd_png.c找不到png库文件的情况, 这时要手工把png.h和pngconf.h两个文件
拷贝到gd_png.c所在目录就可以了. ***
默认情况gd被安装到/usr/local/include/
http://www.boutell.com/gd/
3.2 安装libxml
==============================
# tar zxvf libxml2-2.6.19.tar.gz
# cd libxml2-2.6.19
# ./configure && make && make install
#
3.3 安装libiconv
==============================
# tar zxvf libiconv-1.9.1.tar.gz
# cd libiconv-1.9.1
# ./configure && make && make install
#
3.4 安装PHP
==============================
# tar zvxf php-5.1.2.tar.gz
# cd php-5.1.2
#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-xml --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/etc --disable-debug --enable-safe-mode --enable-trans-sid --enable-memory-limit --enable-short-tags --disable-posix --enable-exif --enable-sockets
# make
# make install
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/1409/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
最后编辑: jackxiang 编辑于2008-12-12 11:27
评论列表