我正在尝试解决 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部分搞砸了。
任何意见,将不胜感激。谢谢