2017-05-19 38 views
0

我試圖解決與Roundcube問題。在星期一我更新服務器並安裝php 7.1.5(Debian 8 with ISPConfig)手冊:https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/。看來,除了Roundcube webmail,php和其他所有軟件都在運行。Linux更新roundcube停止工作,並poit到squirrelmail

用戶開始抱怨他們無法訪問有錯誤的Roundcube網頁:ERROR: Config file "config/config.php" not found. You need to configure SquirrelMail before you can use it.喜歡什麼?我沒有使用Squirrelmail。我發現在apache2/conf-enabled中缺少roundcube的配置文件,所以我創建了另一個配置文件alias,以便/usr/share/roundcube

配置文件/etc/apache2/conf-enabled/roundcube.conf

Alias /roundcube /usr/share/roundcube 
Alias /webmail /usr/share/roundcube 

<Directory /usr/share/roundcube> 
Options +FollowSymLinks 
# AddDefaultCharset UTF-8 
AddType text/x-component .htc 

<IfModule mod_php5.c> 
AddType application/x-httpd-php .php 
php_flag display_errors Off 
php_flag log_errors On 
# php_value error_log logs/errors 
php_value upload_max_filesize 10M 
php_value post_max_size 12M 
php_value memory_limit 64M 
php_flag zlib.output_compression Off 
php_flag magic_quotes_gpc Off 
php_flag magic_quotes_runtime Off 
php_flag zend.ze1_compatibility_mode Off 
php_flag suhosin.session.encrypt Off 
#php_value session.cookie_path/
php_flag session.auto_start Off 
php_value session.gc_maxlifetime 21600 
php_value session.gc_divisor 500 
php_value session.gc_probability 1 
</IfModule> 

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico 
# security rules: 
# - deny access to files not containing a dot or starting with a dot 
# in all locations except installer directory 
RewriteRule ^(?!installer)(\.?[^\.]+)$ - [F] 
# - deny access to some locations 
RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F] 
# - deny access to some documentation files 
RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml)$ - [F] 
</IfModule> 

<IfModule mod_deflate.c> 
SetOutputFilter DEFLATE 
</IfModule> 

<IfModule mod_expires.c> 
ExpiresActive On 
ExpiresDefault "access plus 1 month" 
</IfModule> 

FileETag MTime Size 

<IfModule mod_autoindex.c> 
Options -Indexes 
</ifModule> 

AllowOverride None 
Require all granted 
</Directory> 

<Directory /usr/share/roundcube/plugins/enigma/home> 
Options -FollowSymLinks 
AllowOverride None 
Require all denied 
</Directory> 

<Directory /usr/share/roundcube/config> 
Options -FollowSymLinks 
AllowOverride None 
Require all denied 
</Directory> 

<Directory /usr/share/roundcube/temp> 
Options -FollowSymLinks 
AllowOverride None 
Require all denied 
</Directory> 

<Directory /usr/share/roundcube/logs> 
Options -FollowSymLinks 
AllowOverride None 
Require all denied 
</Directory> 

如果我錯了類型別名,我得到404,SOR別名正在poiting到該目錄,但後來..呵呵。 。我還winf在roundcube文件夾/ usr/share/roundcube/roundcube中的另一個roundcube文件夾中,與父代中的代碼完全相同,並且時間與Linux更新/ php安裝相匹配。

IMAP正在工作。只是Rouncube的一部分是搞砸了。

任何意見,將不勝感激。謝謝

回答

0

問題解決了。對於其他人有同樣的問題:

有一個符號鏈接/usr/share/squirrelmail -> roundcube,所以當我跑apt-get upgrade系統寫下新的squirrelmail文件roundcube文件夾,(從我的第一篇文章的錯誤:ERROR: Config file "config/config.php" not found. You need to configure SquirrelMail before you can use it.)rewrited index.html,所以打字<server-ip>/webmail後,這是試圖從roundcube文件夾運行未配置的squirrelmail,所以它是「掩蓋」本身:)

我不知道這個符號鏈接(我沒有安裝該服務器),並且下載了專有版本的roundcube和複製文件到/usr/share/roundcube(+加上刪除squirrelmail文件),roundcube開始正常工作了。

0

您已升級到PHP 7的權利?
所以這個指令將通過PHP 7忽略:<IfModule mod_php5.c>
嘗試將它改成這樣:<IfModule mod_php7.c>

+0

好點。是的,我已升級到PHP 7.我必須稍後重寫。我已經解決了這個問題。看我最近的帖子(我一直在寫)。 – user2014521