您的位置:首页 > 文档 > 系统管理 >
 文章分类 

接触solaris:安装apache+php+mysql


创建:2005-10-28 00:00:00
作者:Unlinux
来自: http://www.Unlinux.com

这是最简单的安装,请扩展成自己需要的

作者信息
=================================
Macro Zeng
http://www.ctohome.com


Before Start
=======================================
install gtar :
install gcc : gcc-2.8.1-sol7-sparc-local
install gzip : gzip-1.3-sol7-sparc-local
install make : make-3.77-sol7-sparc-local
install gd 1.8.3 :
install autoconf-2.13-sol7-sparc-local;
install perl-5.005_02-sol7-sparc-local
gd-1.8.3.tar.gz
zlib-1.1.3-sol7-sparc-local.gz (安装GD库需要)
jpeg-6b-sol7-sparc-local.gz (和GD库相关)
libpng-1.0.2-sol7-sparc-local.gz (安装GD库需要)
xpm-3.4k-sol7-sparc-local.gz (和GD库相关)


Mysql
=======================================
pkgadd -d mysql-3.23.28-gamma-sun-solaris2.7-sparc
(进入解包后的目录)
./scripts/mysql_install_db


PHP
=======================================
cd apache_1.3.14
./configure --prefix=/usr/local/apache_php
/**
* this step need 1 minutes
**/
cd ../php-4.0.3pl1
./configure --prefix=/usr/local/php --with-apache=../apache_1.3.14 --with-mysql=/usr/local/mysql

--with-ftp --with-xml --enable-track-vars
/**
* NOTE:You must install gd lib before you use --with-gd
* this step need 2 minutes
**/
make
/**
* If not find libtool,you must redirector the make path to /usr/css/bin
* successful message : Making all in pear
* this step need 5 minutes
**/
make install
/**
* successful message : done
* this step need 1 minutes
* creat the /usr/local/php directory
**/

Apache
=======================================
cd ../apache_1.3.14
./configure --prefix=/usr/local/apache_php --activate-module=src/modules/php4/libphp4.a
/**
* successful message : Creating Makefile in src/...
* this step need 2 minutes
**/
make
/**
* successful message : <=== src/support <=== src
* this step need 1 minutes
**/
make install
/**
* successful message : <=== [config]
* this step need 1 minutes
* creat the /usr/local/apache_php directory
**/

Others
======================================
cd ../php-4.0.3pl1
cp php.ini-dist /usr/local/lib/php.ini
/**
* modify /usr/local/apache_php/conf/httpd.conf
* modify /usr/local/lib/php.ini
**/

转载自:http://www.unlinux.com/doc/system/20051105/6774.html

评论】 【加入收藏夹】 【 】 【打印】 【关闭
 *  请尊重我们的劳动,转载请注明出自UnLinux.Com及作者名 * 

※ 相关链接
 ·(数据类型转换)全接触  (2005-10-28 00:09:10)
 ·从用户接触到完成需求说明书  (2005-10-28 00:08:41)
 ·亲密接触xml(10)-其它例子  (2005-10-28 00:08:02)
 ·亲密接触XML(6)-元素的内容  (2005-10-28 00:08:02)
 ·亲密接触XML(7)- 元素 vs. 属性的使用  (2005-10-28 00:08:02)
 ·亲密接触XML(7)-我的属性规则的一个例外  (2005-10-28 00:08:02)
 ·亲密接触xml(9XML在Netscape和Explorer中  (2005-10-28 00:08:02)
 ·linux 启动全接触  (2005-10-28 00:00:00)
 ·全面接触SQL语法(1)  (2005-10-27 22:52:37)
 ·全面接触SQL语法(2)  (2005-10-27 22:52:37)

Copyright © 2005 UnLinux.Com All Rights Reserved