接触 solaris : 安装 apache + php + mysql
接触 solaris : 安装 apache + php + mysql
这是最简单的安装请扩展成自己需要的
作者信息
=================================
Macro Zeng
Before Start
=======================================
install gtar :
install gcc : gccsolsparclocal
install gzip : gzipsolsparclocal
install make : makesolsparclocal
install gd :
install autoconfsolsparclocal;
install perl_solsparclocal
gdtargz
zlibsolsparclocalgz (安装GD库需要)
jpegbsolsparclocalgz (和GD库相关)
libpngsolsparclocalgz (安装GD库需要)
xpmksolsparclocalgz (和GD库相关)
Mysql
=======================================
pkgadd d mysqlgammasunsolarissparc
(进入解包后的目录)
/scripts/mysql_install_db
PHP
=======================================
cd apache_
/configure prefix=/usr/local/apache_php
/**
* this step need minutes
**/
cd /phppl
/configure prefix=/usr/local/php withapache=/apache_ withmysql=/usr/local/mysql
withftp withxml enabletrackvars
/**
* NOTE:You must install gd lib before you use withgd
* this step need minutes
**/
make
/**
* If not find libtoolyou must redirector the make path to /usr/css/bin
* successful message : Making all in pear
* this step need minutes
**/
make install
/**
* successful message : done
* this step need minutes
* creat the /usr/local/php directory
**/
Apache
=======================================
cd /apache_
/configure prefix=/usr/local/apache_php activatemodule=src/modules/php/libphpa
/**
* successful message : Creating Makefile in src/
* this step need minutes
**/
make
/**
* successful message : <=== src/support <=== src
* this step need minutes
**/
make install
/**
* successful message : <=== [config]
* this step need minutes
* creat the /usr/local/apache_php directory
**/
Others
======================================
cd /phppl
cp phpinidist /usr/local/lib/phpini
/**
* modify /usr/local/apache_php/conf/
* modify /usr/local/lib/phpini
**/