第 3 章 TUTOS

TUTOS is a tool to manage the organizational needs of small groups, teams, departments ...

http://www.tutos.org/

过程 3.1. TUTOS

  1. extract

    tar jxvf TUTOS-php-1.3.20070317.tar.bz2
    sudo mv tutos /www/htdocs/
    			
  2. database

    netkiller@shenzhen:/www/htdocs/tutos$ mysqladmin -uroot -p create tutos
    netkiller@shenzhen:/www/htdocs/tutos$ mysql -uroot -p
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 846
    Server version: 5.0.45 Source distribution
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> grant all on tutos.* to tutos@% identified by "chen";
    Query OK, 0 rows affected (0.05 sec)
    
    mysql> grant all on tutos.* to tutos@localhost identified by "chen";
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> FLUSH PRIVILEGES;
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> quit
    Bye
    
    netkiller@shenzhen:/www/htdocs/tutos$ mysqladmin -uroot -p reload
    			
  3. config

    mkdir /www/htdocs/tutos/repository
    			

    http://192.168.1.7/tutos/php/admin/scheme.php

    or

    cp config_default.pinc  config.php
    			



    < ?php
    # remove this line when finsihed with config
    $tutos['CCSID'] = "10880f50567242006bf2c1a2c0b8b350";
    #
    # sessionpath
    #
    $tutos[sessionpath] = "/tmp";
    #
    # the next lines are a database definition
    #
    $tutos[dbname][0]     = "tutos";
    $tutos[dbhost][0]     = "localhost";
    $tutos[dbport][0]     = "5432";
    $tutos[dbuser][0]     = "tutos";
    $tutos[dbpasswd][0]   = "chen";
    $tutos[dbtype][0]     = "2";
    $tutos[dbalias][0]    = "Mysql database";
    $tutos[cryptpw][0]    = "";
    $tutos[repository][0] = "repository";
    $tutos[dbprefix][0]   = "";
    #
    # MAIL
    #
    $tutos[mailmode] = "2";
    $tutos[sendmail] = "/usr/lib/sendmail";
    $tutos[smtphost] = "localhost";
    #
    # demo mode
    #
    $tutos[demo] = 0;
    #
    # debug mode
    #
    $tutos[debug] = 0;
    $tutos[errlog] = "/tmp/debug.out";
    #
    $tutos[jpgraph] = "/www/htdocs/tutos/php/admin/jpgraph";
    #
    # EOF
    ?>

    sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

  4. login

    http://192.168.1.7/tutos/php/mytutos.php

    User: superuser Password: tutos





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值