GNU/Linux >> Linux の 問題 >  >> Cent OS

CentOS6のISPConfig3サーバーにRoundcubeをインストールする方法

このチュートリアルは、The Perfect Server-CentOS 6.4 x86_64 [ISPConfig 3]をインストールしていて、代替のWebメールアプリケーションであるRoundcubeを使用したい方のために作成されました。このRoundcubeのインストールではSquirremailが上書きされないため、引き続きSquiremailにアクセスできる場合があります。

CentOSにRoundcubeをインストールするためのチュートリアルが不足していて、ISPConfig用のRoundcubeプラグインがどういうわけか機能していないことに気づきました。さて、始めましょう。

ステップ1

データベースとデータベースユーザーの詳細を準備する必要があります。 ISPConfigを使用するか、phpmyadminやsqlyogなどのツールを使用して作成できます。例:

データベース名:dbroundcube
データベースユーザー:roundcubeuser
データベースユーザーパスワード:xxxxxx

次に、/ usr / share / roundcube / SQL/mysqlからSQLファイルをインポートしてデータベースを初期化します。 .initial.sql。

ステップ2

Roundcubeコードを保存するフォルダーを作成する必要があります。

mkdir / usr / share / roundcube
cd / usr / share / roundcube

ステップ3

roundcubeのWebから最新バージョンをダウンロードし、現在のディレクトリで解凍します。

wget http://jaist.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.0/roundcubemail-1.0.0.tar.gz
tar -zxvf roundcubemail-1.0.0.tar.gz
mv roundcubemail-1.0.0 roundcube

wgethttp://jaist.dl.sourceforge.net/project/roundcubemail/roundcubemail/1.0.0/roundcube-framework-1.0.0.tar。 gz
tar -zxvf roundcube-framework-1.0.0.tar.gz

mkdir / usr / share / roundcube / installer / Roundcube
cp / usr / share / roundcube-フレームワーク-1.0.0/bootstrap.php / usr / share / roundcube / installer / Roundcube

ステップ4

このフォルダへのアクセスを許可します。

chown root:root -R / usr / share / roundcube
chmod 777 -R / usr / share / roundcube / temp /
chmod 777 -R / usr / share / roundcube / logs /

ステップ5

Roundcubeフォルダーを指すようにapacheを構成します。ファイル/etc/httpd/conf/sites-enabled/000-ispconfig.confを開きます 次の数行を追加します:

[...]
<Directory /usr/share/roundcube>
  Order allow,deny
  Allow from all
</Directory>
[...]
ステップ6

ファイルを作成します/etc/httpd/conf.d/roundcube.conf 次の内容で:

#
# Roundcube is a webmail package written in PHP.
#
Alias /roundcube /usr/share/roundcube
<Directory /usr/share/roundcube/config> Order Deny,Allow Deny from All </Directory>
<Directory /usr/share/roundcube/temp> Order Deny,Allow Deny from All </Directory>
<Directory /usr/share/roundcube/logs> Order Deny,Allow Deny from All </Directory>
# this section makes Roundcube use https connections only, for this you # need to have mod_ssl installed. If you want to use unsecure http # connections, just remove this section: <Directory /usr/share/roundcube> RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </Directory>
ステップ7

ファイル/usr/share/roundcube/installer/index.phpを編集します 、この行を変更します

require_once'bc.php';

require_once'/usr/share/roundcube/program/include/bc.php';

次に、Webサーバーを再起動します。

service httpd restart

ステップ8

URLを開きますhttps:// {your_ip} / roundcube / installer すべてが正常にテストされたかどうか、環境を確認してください。データベースセクションについては、インストールするデータベースに問題がないことを確認してください。
利用できません」にデータベースが表示されている場合は、次の手順を実行してください。 "。

国際:利用できません

yum -y install libicu-devel
yum -y install php-intl

date.timezone:利用できません
php.iniを編集してください 値を設定します。 例:アジア/クアラルンプール

Webサーバーを再起動します。

ステップ9

データベースの詳細を入力し、CREATECONFIGボタンを押します。システムが生成したコーディングをコピーして、 /usr/share/roundcube/config/config.inc.phpに貼り付けます。 。

ステップ10

次のページに進みます。 Not OKをお持ちの場合 mime.typesで 、以下の手順を実行してください:
/etc/httpd/conf/httpd.confを開きます 、次のコメント解除があることを確認してください 。

TypesConfig /etc/mime.types

次に、

cd / etc
mv /etc/mime.types /etc/mime.types.bak
wget http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf /mime.types
service httpd restart

ステップ11

roundcubeのインストーラーフォルダを削除します。

rm -rf / usr / share / roundcube / installer

これで、 https:// {your_ip} / roundcubeでメールボックスにログインしてみることができます。

参照リンク
  • https://www.howtoforge.com/changing-from-squirrelmail-to-roundcube-on-your-ispconfig3-server
  • http://www.ochounos.com/blog/13
  • https://www.centos.org/forums/viewtopic.php?t=29226

このチュートリアルで何か間違ったことを言ったら訂正してください。私の文法の間違いを訂正することもできます(私はたくさんのheheがあることを知っています)。ありがとう。


Cent OS
  1. CentOS7にMinecraftサーバーをインストールする方法

  2. CentOS8にTeamspeak3サーバーをインストールする方法

  3. CentOS7にProFTPDをインストールする方法

  1. CentOS8にNginxをインストールする方法

  2. CentOS8にPostgreSQLをインストールする方法

  3. CentOS8にMariaDBをインストールする方法

  1. CentOS7にFreeIPAサーバーをインストールする方法

  2. CentOS8にSambaサーバーをインストールする方法

  3. Centos7にCentreonをインストールする方法