2006-05-29

多个Project的trac/subversion/apache2 架设

归类于: Tech — chenxq @ 13:22:48

aptitude install libapache2-svn trac subversion

cd /opt/repos
svnadmin create Akantos
svnadmin create test
chown -R www-data:www-data /opt/repos

cd /opt/trac
trac-admin /opt/repos/Akantos initenv
trac-admin /opt/repos/test initenv
chown -R www-data:www-data /opt/trac

moonlight:~# cat /etc/apache2/conf.d/trac.conf 
Alias /trac/chrome/common /usr/share/trac/htdocs
<Directory "/usr/share/trac/htdocs">
        Order allow,deny
        Allow from all
</Directory>
ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
<Location "/trac">
#       SetEnv TRAC_ENV "/opt/trac/"
        SetEnv TRAC_ENV_PARENT_DIR "/opt/trac"
</Location>
<Location "/trac"> # 设置Trac用户验证
        AuthType Basic
        AuthName "Mars Trac Server"
        AuthUserFile /etc/apache2/trac.passwd
        # trac.passwd文件用htpasswd2命令生成
        Require valid-user
</Location>

moonlight:~# cat /etc/apache2/mods-enabled/dav_svn.conf 
<Location /svn>
  DAV svn
  SVNParentPath /opt/repos

  AuthType Basic
  AuthName "MicroInfo Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd
  Require valid-user
  AuthzSVNAccessFile /etc/apache2/dav_svn.authz
</Location>

moonlight:~# cat /etc/apache2/dav_svn.authz                   
[groups]
manager = feuvan
[/]
@manager = rw
* = 
[Akantos:/]

[test:/]
* = rw

2006-05-26

svn出错的可能

归类于: Tech — chenxq @ 15:37:25

一个原因是系统的Berkeley DB升级之后不兼容
所以不要看到升级就把老的package purge掉

feuvan@moonlight:~$ aptitude show db4.2-util
Package: db4.2-util
State: installed
Automatically installed: no
Version: 4.2.52-24
Priority: optional
Section: utils
Maintainer: Debian Berkeley DB Maintainers <pkg-db-devel@lists.alioth.debian.org>
Uncompressed Size: 217k
Depends: libc6 (>= 2.3.5-1), libdb4.2
Description: Berkeley v4.2 Database Utilities
 This package provides different tools for manipulating databases in the Berkeley v4.2 database format, and includes: 
 * db4.2_archive: write the pathnames of the log files no longer in use. 
 * db4.2_checkpoint: daemon process to monitor the database log and checkpoint it periodically. 
 * db4.2_deadlock: traverse the database environment lock region and abort lock requests when a deadlock is detected. 
 * db4.2_load: loads (and creates) a database from standard input. 
 * db4.2_dump: read a database file and write it in a format understood by 
 * db4.2_printlog: dump log files in human readable format. 
 * db4.2_stat: display statistics for Berkeley DB environments. 
 * db4.2_upgrade: upgrades the version of files and the databases they contain. 
 * db4.2_verify: check the structure of files and their databases.

Tags: interface::commandline, role::sw:utility, use::checking, use::viewing, works-with::db

feuvan@moonlight:~$ aptitude show db4.3-util 
Package: db4.3-util
State: not installed
Version: 4.3.29-5
Priority: optional
Section: utils
Maintainer: Debian Berkeley DB Maintainers <pkg-db-devel@lists.alioth.debian.org>
Uncompressed Size: 279k
Description: Berkeley v4.3 Database Utilities
 This package provides different tools for manipulating databases in the Berkeley v4.3 database format, and includes: 
 * db4.3_archive: write the pathnames of the log files no longer in use. 
 * db4.3_checkpoint: daemon process to monitor the database log and checkpoint it periodically. 
 * db4.3_deadlock: traverse the database environment lock region and abort lock requests when a deadlock is detected. 
 * db4.3_load: loads (and creates) a database from standard input. 
 * db4.3_dump: read a database file and write it in a format understood by 
 * db4.3_printlog: dump log files in human readable format. 
 * db4.3_stat: display statistics for Berkeley DB environments. 
 * db4.3_upgrade: upgrades the version of files and the databases they contain. 
 * db4.3_verify: check the structure of files and their databases.

Tags: interface::commandline, role::sw:utility, use::checking, use::viewing, works-with::db

feuvan@moonlight:~$ aptitude show db4.4-util 
Package: db4.4-util
New: yes
State: not installed
Version: 4.4.20-4
Priority: optional
Section: utils
Maintainer: Debian Berkeley DB Maintainers <pkg-db-devel@lists.alioth.debian.org>
Uncompressed Size: 258k
Depends: libc6 (>= 2.3.5-1), libdb4.4
Description: Berkeley v4.4 Database Utilities
 This package provides different tools for manipulating databases in the Berkeley v4.4 database format, and includes: 
 * db4.4_archive: write the pathnames of the log files no longer in use. 
 * db4.4_checkpoint: daemon process to monitor the database log and checkpoint it periodically. 
 * db4.4_deadlock: traverse the database environment lock region and abort lock requests when a deadlock is detected. 
 * db4.4_load: loads (and creates) a database from standard input. 
 * db4.4_dump: read a database file and write it in a format understood by 
 * db4.4_printlog: dump log files in human readable format. 
 * db4.4_stat: display statistics for Berkeley DB environments. 
 * db4.4_upgrade: upgrades the version of files and the databases they contain. 
 * db4.4_verify: check the structure of files and their databases.

我是不称职的聆听者

归类于: 惊蛰 — chenxq @ 15:11:32

而你看着我这一路
嬉闹,反复,痴笑,痛哭,高歌

水哥说
男儿心肠,百炼成钢
万劫余生,仍无所伤

2006-05-22

爱不爱

归类于: 惊蛰 — chenxq @ 12:46:07

都是错

2006-05-05

PHP 5.1.4

归类于: Tech — chenxq @ 00:00:57

修复了一个弱bug

发信人: FreeWizard (拜), 信区: PHP
标  题: 5.1.4
发信站: 水木社区 (Thu May  4 21:38:09 2006), 站内

http://php.net/get/php-5.1.4.tar.gz/from/a/mirror

critical bug in 5.1.3
http://bugs.php.net/bug.php?id=37276

[2 May 2:17pm UTC] puovils at gmail dot com 
Description:
————
problems witch $_POST array

Reproduce code:
—————
<?php
echo "<pre>";
print_r($_POST);
echo "</pre>";
?>
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form method="post" action="" enctype="multipart/form-data">
<input type="text" name="masivasid[id_1]" value="Nzzz1"/><br/>
<input type="text" name="masivasid[id_2]" value="Nzzz2"/><br/>
<input type="submit"/>
</form>
</body>
</html>

Expected result:
—————-
Array
(
    [masivasid] => Array
        (
            [id_1] => Nzzz1
            [id_2] => Nzzz2
        )

)

Actual result:
————–
Array
(
    [masivasid] => Array
        (
            [id_1] => Nzzz1
            [id_2] => Array
                (
                    [id_1] => Nzzz2
                )

        )

)


关于跪拜

    一天要跪拜五次,每一次跪拜只需几分钟即可。跪拜是教徒与康神之间沟通最
直接的方式。跪拜在黎明、中午、下午、日落和晚上各进行一次。教徒几乎可以在
任何地方进行跪拜,像是野外、办公室、工厂或大学中。在跪拜的过程中,一个人
可以感觉到内在的快乐、平静和安适。

※ 修改:・FreeWizard 于 May  4 21:39:13 修改本文・[FROM: 221.217.237.29]
※ 来源:・水木社区 newsmth.net・[FROM: 221.217.237.29]

2006-05-02

PHP 5.1.3

归类于: Tech — chenxq @ 13:47:35

fix了几个我遇到过的bug

时隔四个月,终于升级了

PHP 5 ChangeLog
Version 5.1.3
02-May-2006

    * Updated bundled PCRE library to version 6.6. (Andrei)
    * Moved extensions to PECL:
          o ext/msession (Derick)
    * Reimplemented FastCGI interface. (Dmitry)
    * Improved SPL: (Marcus)
          o Fixed issues with not/double calling of constructors of SPL iterators.
          o Fixed issues with info-class/file-class in SPL directory handling classes.
          o Fixed ArrayIterator::seek().
          o Added SimpleXMLIterator::count().
          o Dropped erroneous RecursiveDirectoryIterator::getSubPathInfo().
    * Improved SimpleXML: (Marcus, Rob)
          o Added SimpleXMLElement::getName() to retrieve name of element.
          o Added ability to create elements on the fly.
          o Added addChild() method for element creation supporting namespaces.
          o Added addAttribute() method for attribute creation supporting namespaces.
          o Added ability to delete specific elements and attributes by offset.
    * Improved Reflection API: (Marcus)
          o Added ReflectionClass::newInstanceArgs($args).
          o Added ability to analyze extension dependency.
          o Added ReflectionFunction::isDeprecated() and constant IS_DEPRECATED.
          o Added ReflectionParameter::getDeclaringClass().
          o Changed reflection constants to be prefixed with IS_. (Johannes)
    * Improved cURL extension: (Ilia)
          o Added curl_setopt_array() function that allows setting of multiple options via an associated array.
          o Added the ability to retrieve the request message sent to the server.
    * Improved GD extension: (Pierre)
          o Added a weak/tolerant mode to the JPEG loader.
          o Added filtering mode option to imagepng() to allow reducing file size.
          o Fixed imagecolorallocate() and imagecolorallocatelapha() to return FALSE on error.
    * Changed get_headers() to retrieve headers also from non-200 responses. (Ilia)
    * Changed get_headers() to use the default context. (Ilia)
    * Changed SOAP extension to cache WSDL structure in memory and thus speed up SoapClient/SoapServer construction. (Andrei, Dmitry)
    * Added lchown() and lchgrp() to change user/group ownership of symlinks. (Derick)
    * Added support for exif date format in strtotime(). (Derick)
    * Added a check for special characters in the session name. (Ilia)
    * Added "consumed" stream filter. (Marcus)
    * Added new mysqli constants for BIT and NEW_DECIMAL field types: MYSQLI_TYPE_NEWDECIMAL and MYSQLI_TYPE_BIT. FR #36007. (Georg)
    * Added imap_savebody() that allows message body to be written to a file. (Mike)
    * Added overflow checks to wordwrap() function. (Ilia)
    * Added support for BINARY_DOUBLE and BINARY_FLOAT to PDO_OCI and OCI8 (also fixes bug #36764). (Tony)
    * Eliminated run-time constant fetching for TRUE, FALSE and NULL. (Dmitry)
    * Removed the E_STRICT deprecation notice from "var". (Ilia)
    * Fixed reading stream filters never notified about EOF. (Mike)
    * Fixed tempnam() 2nd parameter to be checked against path components. (Ilia)
    * Fixed a bug that would not fill in the fifth argument to preg_replace() properly, if the variable was not declared previously. (Andrei)
    * Fixed safe_mode check for source argument of the copy() function. (Ilia)
    * Fixed mysqli bigint conversion under Windows (Georg)
    * Fixed XSS inside phpinfo() with long inputs. (Ilia)
    * Fixed Apache2 SAPIs header handler modifying header strings. (Mike)
    * Fixed ’auto_globals_jit’ to work together with ’register_argc_argv’. (Dmitry)
    * Fixed offset/length parameter validation in substr_compare() function. (Ilia)
    * Fixed debug_zval_dump() to support private and protected members. (Dmitry)
    * Fixed SoapFault::getMessage(). (Dmitry)
    * Fixed issue with iconv_mime_decode where the "encoding" would only allow upper case specifiers. (Derick)
    * Fixed tiger hash algorithm generating wrong results on big endian platforms. (Mike)
    * Fixed crash with DOMImplementation::createDocumentType("name:"). (Mike)
    * Fixed bug #37205 (Serving binary content/images fails with "comm with server aborted" FastCGI err). (Dmitry)
    * Fixed bug #37192 (cc may complain about non-constant initializers in hash_adler.c). (Mike)
    * Fixed bug #37191 (chmod takes off sticky bit when safe_mode is On). (Tony)
    * Fixed bug #37167 (PDO segfaults when throwing exception from the fetch handler). (Tony)
    * Fixed bug #37162 (wddx does not build as a shared extension). (jdolecek at NetBSD dot org, Ilia)
    * Fixed bug #37158 (fread behavior changes after calling stream_wrapper_register). (Wez)
    * Fixed bug #37138 (__autoload tries to load callback’ed self and parent). (Dmitry)
    * Fixed bug #37103 (libmbfl headers not installed). (Jani)
    * Fixed bug #37083 (Frequent crashes in SOAP extension with new WSDL caching code in multithread WS). (Andrei, Dmitry)
    * Fixed bug #37062 (compile failure on ARM architecture). (Tony)
    * Fixed bug #37061 (curl_exec() doesn’t zero-terminate binary strings). (Tony)
    * Fixed bug #37060 (Type of retval of Countable::count() is not checked). (Johannes)
    * Fixed bug #37059 (oci_bind_by_name() doesn’t support RAW and LONG RAW fields). (Tony)
    * Fixed bug #37057 (xmlrpc_decode() may produce arrays with numeric strings, which are unaccessible). (Tony)
    * Fixed bug #37055 (incorrect reference counting for persistent OCI8 connections). (Tony)
    * Fixed bug #37054 (SoapClient Error Fetching http headers). (Dmitry)
    * Fixed bug #37053 (html_errors with internal classes produces wrong links). (Tony)
    * Fixed bug #37046 (foreach breaks static scope). (Dmitry)
    * Fixed bug #37045 (Fixed check for special chars for http redirects). (Ilia)
    * Fixed bug #37017 (strtotime fails before 13:00:00 with some time zones identifiers). (Derick)
    * Fixed bug #37002 (Have to quote literals in INI when concatenating with vars). (Dmitry)
    * Fixed bug #36988 (mktime freezes on long numbers). (Derick)
    * Fixed bug #36981 (SplFileObject->fgets() ignores max_length). (Tony)
    * Fixed bug #36957 (serialize() does not handle recursion). (Ilia)
    * Fixed bug #36944 (strncmp & strncasecmp do not return false on negative string length). (Tony)
    * Fixed bug #36941 (ArrayIterator does not clone itself). (Marcus)
    * Fixed bug #36934 (OCILob->read() doesn’t move internal pointer when reading 0’s). (Tony)
    * Fixed bug #36908 (wsdl default value overrides value in soap request). (Dmitry)
    * Fixed bug #36898 (__set() leaks in classes extending internal ones). (Tony, Dmitry)
    * Fixed bug #36886 (User filters can leak buckets in some situations). (Ilia)
    * Fixed bug #36878 (error messages are printed even though an exception has been thrown). (Tony)
    * Fixed bug #36875 (is_*() functions do not account for open_basedir). (Ilia)
    * Fixed bug #36872 (session_destroy() fails after call to session_regenerate_id(true)). (Ilia)
    * Fixed bug #36869 (memory leak in output buffering when using chunked output). (Tony)
    * Fixed bug #36859 (DOMElement crashes when calling __construct when cloning). (Tony)
    * Fixed bug #36857 (Added support for partial content fetching to the HTTP streams wrapper). (Ilia)
    * Fixed bug #36851 (Documentation and code discrepancies for NULL data in oci_fetch_*() functions). (Tony)
    * Fixed bug #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault). (Tony)
    * Fixed bug #36820 (Privileged connection with an Oracle password file fails). (Tony)
    * Fixed bug #36809 (__FILE__ behavior changed). (Dmitry)
    * Fixed bug #36808 (syslog ident becomes garbage between requests). (Tony)
    * Fixed bug #36802 (mysqli_set_charset() crash with a non-open connection). (Ilia)
    * Fixed bug #36756 (DOMDocument::removeChild corrupts node). (Rob)
    * Fixed bug #36749 (SOAP: ’Error Fetching http body’ when using HTTP Proxy). (Dmitry)
    * Fixed bug #36745 (No error message when load data local file isn’t found). (Georg)
    * Fixed bug #36743 (In a class extending XMLReader array properties are not writable). (Tony)
    * Fixed bug #36727 (segfault in pdo_pgsql bindValue() when no parameters are defined). (Tony)
    * Fixed bug #36721 (The SoapServer is not able to send a header that it didn’t receive). (Dmitry)
    * Fixed bug #36697 (Transparency is lost when using imagecreatetruecolor). (Pierre)
    * Fixed bug #36689 (Removed arbitrary limit on the length of syslog messages). (Ilia)
    * Fixed bug #36656 (http_build_query generates invalid URIs due to use of square brackets). (Mike)
    * Fixed bug #36638 (strtotime() returns false when 2nd argument < 1). (Derick)
    * Fixed bug #36629 (SoapServer::handle() exits on SOAP faults). (Dmitry)
    * Fixed bug #36625 (pg_trace() does not work). (iakio at mono-space dot net)
    * Fixed bug #36614 (Segfault when using Soap). (Dmitry)
    * Fixed bug #36611 (assignment to SimpleXML object attribute changes argument type to string). (Tony)
    * Fixed bug #36606 (pg_query_params() changes arguments type to string). (Tony)
    * Fixed bug #36599 (DATE_W3C format constant incorrect). (Derick)
    * Fixed bug #36575 (SOAP: Incorrect complex type instantiation with hierarchies). (Dmitry)
    * Fixed bug #36572 (Added PDO::MYSQL_ATTR_DIRECT_QUERY constant that should be set when executing internal queries like "show master status" via MySQL). (Ilia)
    * Fixed bug #36568 (memory_limit setting on win32 has no effect). (Dmitry)
    * Fixed bug #36513 (comment will be outputted in last line). (Dmitry)
    * Fixed bug #36510 (strtotime() fails to parse date strings with tabs). (Ilia, Derick)
    * Fixed bug #36459 (Incorrect adding PHPSESSID to links, which contains \r\n). (Ilia)
    * Fixed bug #36458 (sleep() accepts negative values). (Ilia)
    * Fixed bug #36436 (DBA problem with Berkeley DB4). (Marcus)
    * Fixed bug #36434 (Improper resolution of declaring class name of an inherited property). (Ilia)
    * Fixed bug #36420 (segfault when access result->num_rows after calling result->close()). (Ilia,Tony)
    * Fixed bug #36403 (oci_execute() no longer supports OCI_DESCRIBE_ONLY). (Tony)
    * Fixed bug #36400 (Custom 5xx error does not return correct HTTP response error code). (Tony)
    * Fixed bug #36396 (strtotime() fails to parse dates in dd-mm-yyyy format). (Derick)
    * Fixed bug #36388 (ext/soap crashes when throwing exception and session persistence). (David)
    * Fixed bug #36382 (PDO/PgSQL’s getColumnMeta() crashes). (Derick)
    * Fixed bug #36359 (splFileObject::fwrite() doesn’t write when no data length specified). (Tony)
    * Fixed bug #36351 (parse_url() does not parse numeric paths properly). (Ilia)
    * Fixed bug #36345 (PDO/MySQL problem loading BLOB over 1MB). (Ilia)
    * Fixed bug #36337 (ReflectionProperty fails to return correct visibility). (Ilia)
    * Fixed bug #36334 (Added missing documentation about realpath cache INI settings). (Ilia)
    * Fixed bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary). (Ilia)
    * Fixed bug #36306 (crc32() differ on 32-bit and 64-bit platforms) (anight@eyelinkmedia dot com, Pierre)
    * Fixed bug #36303 (foreach on error_zval produces segfault). (Dmitry)
    * Fixed bug #36295 (typo in SplFileObject::flock() parameter name). (Tony)
    * Fixed bug #36287 (Segfault with SplFileInfo conversion). (Marcus)
    * Fixed bug #36283 (SOAPClient Compression Broken). (Dmitry)
    * Fixed bug #36268 (Object destructors called even after fatal errors). (Dmitry)
    * Fixed bug #36258 (SplFileObject::getPath() may lead to segfault). (Tony)
    * Fixed bug #36250 (PHP causes ORA-07445 core dump in Oracle server 9.2.x). (Tony)
    * Fixed bug #36242 (Possible memory corruption in stream_select()). (Tony)
    * Fixed bug #36235 (ocicolumnname returns false before a successful fetch). (Tony)
    * Fixed bug #36226 (Inconsistent handling when passing potential arrays). (Dmitry)
    * Fixed bug #36224 (date(DATE_ATOM) gives wrong results). (Derick, Hannes Magnusson)
    * Fixed bug #36222 (errorInfo in PDOException is always NULL). (Ilia)
    * Fixed bug #36208 (symbol namespace conflicts using bundled gd). (Jakub Moc)
    * Fixed bug #36205 (Memory leaks on duplicate cookies). (Dmitry)
    * Fixed bug #36185 (str_rot13() crash on non-string parameter). (Pierre)
    * Fixed bug #36176 (PDO_PGSQL - PDO::exec() does not return number of rows affected by the operation). (Ilia)
    * Fixed bug #36158 (SIGTERM is not handled correctly when running as a FastCGI server). (Dmitry)
    * Fixed bug #36152 (problems with curl+ssl and pgsql+ssl in same PHP). (Mike)
    * Fixed bug #36148 (unpack("H*hex", $data) is adding an extra character to the end of the string). (Ilia)
    * Fixed bug #36134 (DirectoryIterator constructor failed to detect empty directory names). (Ilia)
    * Fixed bug #36113 (Reading records of unsupported type causes segfault). (Tony)
    * Fixed bug #36096 (oci_result() returns garbage after oci_fetch() failed). (Tony)
    * Fixed bug #36083 (SoapClient waits for responses on one-way operations). (Dmitry)
    * Fixed bug #36071 (Engine Crash related with ’clone’). (Dmitry)
    * Fixed bug #36055 (possible OCI8 crash in multi-threaded environment). (Tony)
    * Fixed bug #36046 (parse_ini_file() miscounts lines in multi-line values). (Ilia)
    * Fixed bug #36038 (ext/hash compile failure on Mac OSX). (Tony)
    * Fixed bug #36037 (heredoc adds extra line number). (Dmitry)
    * Fixed bug #36016 (realpath cache memleaks). (Dmitry, Nuno)
    * Fixed bug #36011 (Strict errormsg wrong for call_user_func() and the likes). (Marcus)
    * Fixed bug #36010 (Segfault when re-creating and re-executing statements with bound parameters). (Tony)
    * Fixed bug #36006 (Problem with $this in __destruct()). (Dmitry)
    * Fixed bug #35999 (recursive mkdir() does not work with relative path like "foo/bar"). (Tony)
    * Fixed bug #35998 (SplFileInfo::getPathname() returns unix style filenames in win32). (Marcus)
    * Fixed bug #35988 (Unknown persistent list entry type in module shutdown). (Dmitry)
    * Fixed bug #35954 (Fatal com_exception casting object). (Rob)
    * Fixed bug #35900 (stream_select() should warning when tv_sec is negative). (Ilia)
    * Fixed bug #35785 (SimpleXML causes memory read error zend engine). (Marcus)
    * Fixed bug #34272 (empty array onto COM object blows up). (Rob)
    * Fixed bug #29476 (sqlite_fetch_column_types() locks the database forever). (Ilia)

登录 | 访问数234019 | 水木BLOG | 水木社区 | 关于我们 | Blog论坛 | 法律声明 | 隐私权保护 | 京ICP证050249号
水木社区Blog系统是基于KBS系统WordPress MU架构的