分享
 
 
 

Solaris9_x86+Apache2+Mysql

王朝mysql·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有