php - Linux 更新 roundcube 停止工作并指向 squirrelmail

标签 php linux apache roundcube squirrelmail

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

用户开始提示他们无法访问 Roundcube 网页并出现错误:错误:找不到配置文件“config/config.php”。您需要先配置 SquirrelMail,然后才能使用它。 比如什么?我没有使用 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,或者别名正在指向那个目录,但是然后.. 呵呵.. 我还用完全相同的代码在 roundcube 文件夹/usr/share/roundcube/roundcube 中 winf 另一个 roundcube 文件夹就像在父级中一样,时间与 Linux 更新/php 安装相匹配。

IMAP 正在运行。只是 Rouncube 部分搞砸了。

如有任何建议,我们将不胜感激。谢谢

最佳答案

您已经升级到 PHP 7 了吗?
所以这个指令将被 PHP 7 忽略:<IfModule mod_php5.c>
尝试将其更改为:<IfModule mod_php7.c>

关于php - Linux 更新 roundcube 停止工作并指向 squirrelmail,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44073708/

相关文章:

linux - 如何在 Linux 上创建独立的加密文件?

mysql - apache进程和Mysql进程过载

php - 我无法将数据添加到 SQL 记录

php - 如何配置 OneUpUploaderBundle 和 OneUpFlysystemBundle 在 Symfony 4.1 中工作

linux - 指向一个子例程的 perl 多个 sig 处理程序

linux - 从 cvs 中删除具有特定模式的文件

php - cURL 失败并出现错误 : Couldn't understand the server certificate format

phpmyadmin 错误 13 权限被拒绝

php - 重写 Doctrine Trait 属性

php - Webmatrix - PHP - Wordpress(不工作)