• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 一步到位的 LAMP 安裝腳本 (AMP部分)

    發表于:2007-05-26來源:作者:點擊數: 標簽:
    #!/bin/sh APACHE_VER=2.0.54 PHP _VER=4.4.0 MY SQL _VER=4.0.25 HTTPD=/httpd MYSQL=/ mysql #SRC_ROOT=/root/comp/test if [ -e mysql-$.tar.bz2 ]; then echo mysql-$.tar.bz2 tar -jxf mysql-$.tar.bz2 else echo mysql-$.tar.gz tar -zxf mysql-$.tar.

    #!/bin/sh
    APACHE_VER="2.0.54"
    PHP_VER="4.4.0"
    MYSQL_VER="4.0.25"
    HTTPD="/httpd"
    MYSQL="/mysql"
    #SRC_ROOT="/root/comp/test"

    if [ -e mysql-$.tar.bz2 ]; then
    echo "mysql-$.tar.bz2"
    tar -jxf mysql-$.tar.bz2
    else
    echo "mysql-$.tar.gz"
    tar -zxf mysql-$.tar.gz
    fi
    cd mysql-$
    pwd
    ./configure --prefix=$ \
    --with-charset=gb2312 \
    --without-bench \
    --without-docs \
    --with-mysqld-user=mysqld \
    CFLAGS=-DUSE_OLD_FUNCTIONS \
    --with-pthread 2>&1 >>test.log

    make 2>&1 >>test.log
    make install 2>&1 >>test.log
    cp support-files/my-medium.cnf /etc/my.cnf
    cp support-files/mysql.server /etc/rc.d/mysql.server
    cd $
    bin/mysql_install_db --user=mysqld
    chown -R root  .
    chown -R mysqld var
    chgrp -R mysqld .
    bin/mysqld_safe --user=mysqld &
    bin/mysqladmin -u root password 'Passwd'
    chmod +x /etc/rc.d/mysql.server
    echo "/etc/rc.d/mysql.server start" >>/etc/rc.d/rc.local
    echo "skip.networking " >> /etc/my.cnf
    /etc/rc.d/mysql.server restart
    cp $/lib/mysql/lib* /usr/lib
    ldconfig -v


    cd -
    cd ..


    if [ -e httpd-$.tar.bz2 ]; then
    pwd
    echo "httpd-$.tar.bz2"
    tar -jxf httpd-$.tar.bz2
    else
    pwd
    echo "httpd-$.tar.gz"
    tar -zxf httpd-$.tar.gz
    fi
    cd httpd-$
    pwd
    ./configure --prefix=/$ \
    --enable-example \
    --enable-log-forensic \
    --enable-logio \
    --enable-mime-magic \
    --enable-cern-meta \
    --enable-expires \
    --enable-headers \
    --enable-usertrack \
    --enable-unique-id \
    --enable-ssl \
    --enable-static-htpasswd \
    --enable-static-htdigest \
    --enable-static-rotatelogs \
    --enable-static-ab \
    --enable-static-checkgid \
    --enable-http \
    --disable-status \
    --enable-cgi \
    --enable-cgid \
    --disable-dir \
    --enable-rewrite \
    --enable-module=so 2>&1 >>make.log

    make 2>&1 >>make.log
    make install 2>&1 >>make.log


    cd ..
    if [ -e php-$.tar.bz2 ];then
    echo "php-$.tar.bz2"
    tar -jxf php-$.tar.bz2
    else
    echo "php-$.tar.gz"
    tar -zxf php-$.tar.gz
    fi
    cd php-$

    pwd
    ./configure --with-apxs2=$/bin/apxs --with-mysql=$ 2>&1 >>make.log

    make 2>&1 >>make.log
    make install 2>&1 >>make.log
    cp php.ini-dist /usr/local/lib/php.ini
    echo "LoadModule php4_module libexec/libphp4.so" >> $/conf/httpd.conf
    echo "AddType application/x-httpd-php .php .phtml " >> $/conf/httpd.conf
    echo "<? phpinfo() ?> " > $/htdocs/index.php
    $/bin/apachectl start


    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>