Top / Linux / Roundcube / debian-core

Settings

├── etc 
│     ├── cron.daily
│     │     └── roundcube-core
│     ├── default
│     │     └── roundcube-core
│     ├── logrotate.d
│     │     └── roundcube-core
│     └── roundcube
│         ├── apache.conf
│         ├── db.inc.php
│         ├── htaccess
│         ├── lighttpd.conf
│         └── mimetypes.php

/etc/cron.daily/roundcube : 一時ファイルの寿命の設定

#!/bin/sh

MAX_TMPFILE_LIFETIME=5
# MAX_TMPFILE_LIFETIME can be overridden in this file
if [ -r /etc/default/roundcube-core ]; then
        . /etc/default/roundcube-core
fi

if [ -d /var/lib/roundcube/temp ]; then
        find /var/lib/roundcube/temp -type f -mtime +$MAX_TMPFILE_LIFETIME - print0 | xargs -0 -r rm
fi

/etc/default/roundcube : 一時ファイルの寿命の設定 

# Uncomment the following line to alter the default delay to clean
# temporary directory /var/lib/roundcube/temp
# MAX_TMPFILE_LIFETIME=5

/etc/logrotate.d/roundcube-core : ログファイルの設定

/var/log/roundcube/sendmail /var/log/roundcube/errors {
   weekly
   rotate 4
   compress
   missingok
}

/etc/roundcube

apache.conf  : Web サーバーエントリポイントの設定

# Those aliases do not work properly with several hosts on your apache server
# Uncomment them to use it or adapt them to your configuration
# Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
# Alias /roundcube /var/lib/roundcube 

# Access to tinymce files
<Directory "/usr/share/tinymce/www/">
      Options Indexes MultiViews FollowSymLinks
      AllowOverride None
      Order allow,deny
      allow from all
</Directory> 

<Directory /var/lib/roundcube/>
  Options +FollowSymLinks
  # This is needed to parse /var/lib/roundcube/.htaccess. See its
  # content before setting AllowOverride to None.
  AllowOverride All
  order allow,deny
  allow from all
</Directory>

# Protecting basic directories:
<Directory /var/lib/roundcube/config>
        Options -FollowSymLinks
        AllowOverride None
</Directory>

<Directory /var/lib/roundcube/temp>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>

<Directory /var/lib/roundcube/logs>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>

db.inc.php : DBの設定ファイル これを変更しないこと

<?php

/*
 +-----------------------------------------------------------------------+
 | Configuration file for database access                                |
 |                                                                       |
 | This file is part of the Roundcube Webmail client                     |
 | Copyright (C) 2005-2009, Roundcube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+

*/ 

$rcmail_config = array(); 

/* Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database ! */

include_once("/etc/roundcube/debian-db.php");
 
................................

dpkg-reconfigure で debian-db.php が作成設定される。

<?php
##
## database access settings in php format
## automatically generated from /etc/dbconfig-common/roundcube.conf
## by /usr/sbin/dbconfig-generate-include
## Thu, 24 Mar 2011 11:08:32 +0900
##
## by default this file is managed via ucf, so you shouldn't have to
## worry about manual changes being silently discarded.  *however*,
## you'll probably also want to edit the configuration file mentioned
## above too.
##
$dbuser='########';
$dbpass='########';
$basepath='';
$dbname='#########';
$dbserver='';
$dbport='';
$dbtype='mysql';

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-08-19 (土) 20:12:59 (40d)