Plesk üzerine roundcube kurulumu

Plesk üzerine roundcube kurulumu

Linux plesk kontrol panelinde standart olarak atmail ve horde gelmektedir. Bazı kullanıcılar gelişmiş arayüz nedeni ile roundcube tercih etmektedir.

Aşağıdaki adreste kurulum basitçe alatılmaktadır, fakat bu kuruluma ek olarak bilmeniz gerekenler var;

http://www.roundcubeforum.net/3-news-announcements/12-general-discussion/5034-how-install-roundcube-plesk.html

apache ye roundcube tanımlamak için;

/etc/httpd/conf.d/zzz_roundcube_vhost.conf

dosyasını oluşturuyoruz;

IP ADRESLERI kısmını sunucu ip adreslerinize göre düzenlemeyi unutmayınız. /etc/httpd/conf.d altında örnek conf dosyalarına bakarak düzeleme yapabilirsiniz.

nano /etc/httpd/conf.d/zzz_roundcube_vhost.conf

<VirtualHost  IP ADRESLERI:80>
ServerName webmail
ServerAlias webmail.*

#Include /etc/psa/webmail/horde/conf.d/*

UseCanonicalName Off

DocumentRoot /var/www/roundcube

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* – [F]
</IfModule>

<Directory /var/www/roundcube>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off

php_admin_value open_basedir “/var/www/roundcube”
php_admin_value include_path “/var/www/roundcube/:/var/www/roundcube/program/include/:/var/www/roundcube/include:/var/www/roundcube/program:/var/www/roundcube/program/lib:/var/www/roundcube/program/include:/var/www/roundcube:/var/www/roundcube/lib:/usr/share/psa-pear:.”

</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off

php_admin_value open_basedir “/var/www/roundcube”
php_admin_value include_path “/var/www/roundcube/:/var/www/roundcube/program/include/:/var/www/roundcube/include:/var/www/roundcube/program:/var/www/roundcube/program/lib:/var/www/roundcube/program/include:/var/www/roundcube:/var/www/roundcube/lib:/usr/share/psa-pear:.”
</IfModule>

Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost  IP ADRESLERI:443>
ServerName horde.webmail
ServerAlias horde.webmail.*
ServerAdmin mail@host.net

Include /etc/psa/webmail/horde/conf.d/*

UseCanonicalName Off

DocumentRoot /usr/share/psa-horde
Alias /horde/ /usr/share/psa-horde/
Alias /imp/ /usr/share/psa-horde/imp/

SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/httpd/conf/httpd.pem

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* – [F]
</IfModule>

<Directory /usr/share/psa-horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off

php_admin_value open_basedir “/var/www/roundcube”
php_admin_value include_path “/var/www/roundcube/:/var/www/roundcube/program/include/:/var/www/roundcube/program:/var/www/roundcube/program/lib:/var/www/roundcube/program/include:/var/www/roundcube:/var/www/roundcube/lib:/usr/share/psa-pear:.”

</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off

php_admin_value open_basedir “/var/www/roundcube/includes”
php_admin_value include_path “/var/www/roundcube/:/var/www/roundcube/program/include/:/var/www/roundcube/program:/var/www/roundcube/program/lib:/var/www/roundcube/program/include:/var/www/roundcube:/var/www/roundcube/lib:/usr/share/psa-pear:.”
</IfModule>

SSLRequireSSL

Order allow,deny
Allow from all
</Directory>
</VirtualHost>
</IfModule>

/var/www/html/roundcube/program/include/iniset.php dosyasında;

//if (set_include_path($include_path) === false) {
//die(‘Fatal error: ini_set/set_include_path does not work.’);
//}

değişikliğini yapıyoruz. // koyarak bu satırları devre dışı bıraktık.

Eğer open basedir yada include path ile ilgili bir hata verirse;

Bu kod ile include pathin olması gereken yolunu görebiliriz;

/var/www/htm/roundcube/test.php dosyası oluşturun;

<?php

$incPath = str_replace(“\\”,”/”,dirname(__FILE__).”/includes/”);

echo “<pre>”;
echo “Aktueller Includepfad:”.get_include_path().”\n”;
echo “Gewuenschter Includepfad: “.$incPath.”\n”;
echo “Setzte Wunschpfad: “.set_include_path($incPath).”\n”;
echo “Ergebnis: “.get_include_path().”\n”;
echo “</pre>”;
?>

Bu kod size, /etc/httpd/conf.d/zzz_roundcube_vhost.conf dosyasında yazmanız gereken yolları doğru olarak gösterecektir.

About the Author