Solaris9_x86+Apache2+Mysql
电脑知识爱好者http://www.l9l8.com电脑知识爱好者2008-4-8 1:25:46
知识重点: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 ..
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
;;
参与评论
- 相关内容
- 最近更新
- ·错误信息为3004-687不能增加用户
- ·如何打开优化Windows XP系统注册..
- ·无法远程登录FTP解决办法
- ·如何直接转换分区格式
- ·删除win1.exe win2.exe win3.exe..
- ·删除LSASS.exe进程病毒
- ·清除C:\windows\alg.exe病毒
- ·杀除Autorun.infU盘病毒
- ·删除sna.exe木马
- ·清除tel.xls.exe mmc.exe 病毒
添加到百度搜藏