• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

Solaris9_x86+Apache2+Mysql+PHP

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 26次 | 进入软件测试论坛讨论

领测软件测试网
Software packages needed: 

1. GCC 3.2.3 compiled package for x86 platform: 
gcc-3.2.3-sol9-intel-local.gz 

2. MySQL 3.23.55 source code package: 
mysql-3.23.55.tar.gz 

3. Apache 2.0.44 source code package: 
httpd-2.0.44.tar.gz 

4. PHP 4.3.1 source code package: 
php-4.3.1.tar.gz 


Install GCC 3.2.3: 
# gzip -d gcc-3.2.3-sol9-intel-local.gz 
# pkgadd -d ./gcc-3.2.3-sol9-intel-local 
# PATH=/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin:$PATH 
# export PATH 
# which gcc 
# which make 


Install MySQL 3.23.55: 
# groupadd -g 1002 mysql 
# useradd -u 1002 -g mysql -d / -s /usr/bin/false -c "MySQL DB User" mysql 
# gtar zxvf mysql-3.23.55.tar.gz 
# cd mysql-3.23.55 
# ./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charsets=gb2312,gbk --with-mysqld-user=mysql 
# make 
# make install 
# cd /usr/local/mysql 
# cd bin 
# ./mysql_install_db 
# chown -R mysql:mysql /usr/local/mysql/var 
# cd /usr/local/mysql/share/mysql 
# ./mysql.server start 


Install Apache 2.0.44: 
# gtar zxvf httpd-2.0.44.tar.gz 
#./configure --enable-mods-shared=all --with-egd --with-devrandom --enable-so
# make 
# make install 


Install PHP 4.3.1: 
# gtar zxvf php-4.3.1.tar.gz 
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --enable-ftp --with-enable-track-vars 
# make 
# make install 


Configure PHP working for apache: 
Using vi command change the following setting in /usr/local/apache2/conf/httpd.conf: 
DocumentRoot 
ServerName 
ServerAdmin 
User nobody 
Group nobody 
# Add this line for PHP module 
LoadModule php4_module modules/libphp4.so 
# Add index.php to DirectoryIndex 

DirectoryIndex index.html index.php index.php3 index.phtml 

# Add PHP as a application type 
AddType application/x-httpd-php .php .php3 .phtml 
AddType application/x-httpd-php-source .phps 


Create system startup/shutdown scripts: 
# cd /etc/init.d 
# mv apache apache.bak 
# vi apache 

#!/bin/sh 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib;export LD_LIBRARY_PATH 
case "$1" in 
'start') 
echo "Starting Apache Http Server 2.0.44 ...\c" 
/usr/local/apache2/bin/apachectl start 
if [ $? = 0 ] 
then 
echo " done!" 
exit 0 
else 
echo " FAILED!" 
exit 1 
fi 
;; 
'stop') 
echo "Stopping Apache Http Server 2.0.44 ...\c" 
/usr/local/apache2/bin/apachectl stop 
if [ $? = 0 ] 
then 
echo " done!" 
exit 0 
else 
echo " FAILED!" 
exit 1 
fi 
;; 
'restart') 
$0 stop 
$0 start 
;; 
*) 
echo "Usage: `basename $0` { start | stop | restart }" 
exit 1 
esac 
exit 0 
:wq! 
# chmod 0744 apache 
# ./apache start 
# ./apache stop 
# ./apache restart 


# vi mysql 

#!/bin/sh 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib;export LD_LIBRARY_PATH 
case "$1" in 
'start') 
echo "Starting MySQL Database Server 3.23.55 ...\c" 
/usr/local/mysql/share/mysql/mysql.server start 
if [ $? = 0 ] 
then 
echo " done!" 
exit 0 
else 
echo " FAILED!" 
exit 1 
fi 
;; 
'stop') 
echo "Stopping MySQL Database Server 3.23.55 ...\c" 
/usr/local/mysql/share/mysql/mysql.server stop 
if [ $? = 0 ] 
then 
echo " done!" 
exit 0 
else 
echo " FAILED!" 
exit 1 
fi 
;; 
'restart') 
$0 stop 
$0 start 
;; 
*) 
echo "Usage: `basename $0` { start | stop | restart }" 
exit 1 
esac 
exit 0 

# chmod 0744 mysql 
# ./mysql start 
# ./mysql stop 
# ./mysql restart 
# ln -s /etc/init.d/mysql /etc/rc2.d/S96mysql 
# ln -s /etc/init.d/mysql /etc/rc0.d/K03mysql 
# ln -s /etc/init.d/mysql /etc/rc1.d/K03mysql 
# ln -s /etc/init.d/mysql /etc/rcS.d/K03mysql 
# ln -s /etc/init.d/apache /etc/rc2.d/S97apache 
# ln -s /etc/init.d/apache /etc/rc0.d/K02apache 
# ln -s /etc/init.d/apache /etc/rc1.d/K02apache 
# ln -s /etc/init.d/apache /etc/rcS.d/K02apache

 南非蜘蛛 回复于:2004-06-18 23:46:23
mysql以前的版本不设置gcc的环境,好像是安装不上的
不知道是不是这个版本不用

 wxijin 回复于:2004-06-19 00:33:06
gcc-3.4.0-sol9-sparc-local
httpd-2.0.49

# PATH=/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin:$PATH 
# which gcc
/usr/local/bin/gcc
# which make 
/usr/ccs/bin/make
# ./configure --prefix=/usr/local/apache --enable-so --enable-ssl  --enable-prox
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
Configuring APR library
Platform: sparc-sun-solaris2.9
checking for working mkdir -p... yes
APR Version: 0.9.5
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr

 kinux 回复于:2004-06-23 22:25:39
我在solaris8上安过一次mysql, 要安很多的包..

gzip-1.3.5-sol8-intel-local
autoconf-2.57-sol8-intel-local.gz
automake-1.7.2-sol8-intel-local.gz 
bison-1.875-sol8-intel-local
make-3.80-sol8-intel-local.gz
zlib-1.1.4-sol8-intel-local.gz
ncurses-5.3-sol8-intel-local.gz
tar-1.13.19-sol8-intel-local.gz

 yueyang_cn 回复于:2004-12-09 17:17:17
怎么都这么喜欢SOURCE的安装方式?

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网