0

我正在尝试解决 Roundcube 的问题。星期一我正在更新服务器并安装 php 7.1.5(带 ISPConfig 的 Debian 8)手册:https ://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ 。似乎除了 Roundcube webmail 之外,php 和其他所有东西都在工作。

用户开始抱怨他们无法访问 Roundcube 网页并出现错误:ERROR: Config file "config/config.php" not found. You need to configure SquirrelMail before you can use it.像什么?我没有使用 Squirrelmail。我发现启用 apache2/conf 时缺少 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 别名正在指向该目录,但是然后.. 嗯.. 另外,我在 roundcube 文件夹 /usr/share/roundcube/roundcube 中使用与父级完全相同的代码赢得另一个 roundcube 文件夹与 Linux 更新/php 安装时间匹配。

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

任何意见,将不胜感激。谢谢

4

2 回答 2

0

问题解决了。对于其他有同样问题的人:

中有一个符号链接/usr/share/squirrelmail -> roundcube,所以当我运行apt-get upgrade系统时,将新的 squirrelmail 文件写入roundcube 文件夹并重写index.html(我的第一篇文章中的错误:) ERROR: Config file "config/config.php" not found. You need to configure SquirrelMail before you can use it.,所以在键入后<server-ip>/webmail它试图从 roundcube 文件夹运行未配置的 squirrelmail,所以它本身就是“屏蔽” :)

我不知道这个符号链接(我还没有安装那个服务器),并且在下载了适当版本的圆形立方体并将文件复制到/usr/share/roundcube(+ 加上删除 squirrelmail 文件)之后,圆形立方体又开始正常工作了。

于 2017-05-30T14:45:20.940 回答
0

你已经升级到 PHP 7 了吧?
因此 PHP 7 将忽略此指令:<IfModule mod_php5.c>
尝试将其更改为:<IfModule mod_php7.c>

于 2017-05-29T13:05:03.243 回答