php - 在 CentOs 上安装 squirrelmail

标签 php linux centos squirrelmail

我正在尝试在 CentOs 6.5 中安装 squirrelmail,但出现以下错误。

# yum install squirrelmail -y
.....
---> Package tmpwatch.x86_64 0:2.9.16-4.el6 will be installed                        
--> Running transaction check                                                        
---> Package php.x86_64 0:5.3.3-27.el6_5 will be installed                           
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-5.3.3
--> Processing Dependency: php-cli(x86-64) = 5.3.3-27.el6_5 for package: php-5.3.3-27
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5 will be installed                  
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-mbstr
---> Package php-pear.noarch 1:1.9.4-4.el6 will be installed                         
--> Finished Dependency Resolution                                                   
Error: Package: php-5.3.3-27.el6_5.x86_64 (updates)                                  
           Requires: php-common(x86-64) = 5.3.3-27.el6_5                             
           Installed: php-common-5.4.27-1.el6.remi.x86_64 (@remi)                    
               php-common(x86-64) = 5.4.27-1.el6.remi                                
           Available: php-common-5.3.3-26.el6.x86_64 (base)                          
               php-common(x86-64) = 5.3.3-26.el6                                     
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)                     
               php-common(x86-64) = 5.3.3-27.el6_5                                   
Error: Package: php-mbstring-5.3.3-27.el6_5.x86_64 (updates)                         
           Requires: php-common(x86-64) = 5.3.3-27.el6_5                             
           Installed: php-common-5.4.27-1.el6.remi.x86_64 (@remi)                    
               php-common(x86-64) = 5.4.27-1.el6.remi                                
           Available: php-common-5.3.3-26.el6.x86_64 (base)                          
               php-common(x86-64) = 5.3.3-26.el6                                     
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)                     
               php-common(x86-64) = 5.3.3-27.el6_5                                   
Error: Package: php-5.3.3-27.el6_5.x86_64 (updates)                                  
           Requires: php-cli(x86-64) = 5.3.3-27.el6_5                                
           Installed: php-cli-5.4.27-1.el6.remi.x86_64 (@remi)                       
               php-cli(x86-64) = 5.4.27-1.el6.remi                                   
           Available: php-cli-5.3.3-26.el6.x86_64 (base)                             
               php-cli(x86-64) = 5.3.3-26.el6                                        
           Available: php-cli-5.3.3-27.el6_5.x86_64 (updates)                        
               php-cli(x86-64) = 5.3.3-27.el6_5                                      
 You could try using --skip-broken to work around the problem                        
 You could try running: rpm -Va --nofiles --nodigest                                 
[root@ioi ~]#                                                              

我不明白为什么会出现错误。

我已经尝试使用 --skip-brokerpm -Va --nofiles --nodigest 但这并没有解决问题。我有 PHP-FPM php-common 和 php-cli 运行有人知道如何解决这个问题吗?

最佳答案

我遇到了和你一样的错误,我按照以下步骤在 CentOS 6 上下载并安装 Squirrelmail 设法解决了这个问题:

1- yum -y update
// Downloading the file 
2- wget http://downloads.sourceforge.net/project/squirrelmail/stable/1.4.22/squirrelmail-webmail-1.4.22.zip
// unzip the file
3- unzip squirrelmail-webmail-1.4.22.zip -d /var/www/html/
// copy this to your project main path, you can also make a vhost
4- mv /var/www/html/squirrelmail-webmail-1.4.22/ /home/www.mywebsite.com/public_html/squirrelmail
// Set the correct permissions
5- chown -R apache: /home/www.mywebsite.com/public_html/squirrelmail/
// Create the configuration file
6- cd /home/www.mywebsite.com/public_html/squirrelmail/config 
    cp -p config_default.php config.php
// example of minimum configuration that you will need
$domain = 'mywebsite.com';
$data_dir = '/home/www.mywebsite.com/public_html/squirrelmail/data/';
$attachment_dir = '/home/www.mywebsite.com/public_html/squirrelmail/attach/';
$smtpServerAddress = 'localhost';
$imapServerAddress = 'localhost';

关于php - 在 CentOs 上安装 squirrelmail,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23079494/

相关文章:

java - Glassfish 在完成请求时不关闭线程

c - 如何像 ps -e 那样显示进程

linux - 列出 yum 组中的所有包

php - 从 fb :comments widget (Facebook) 检索评论数

php - 将字符串保存到数据库

reactjs - 错误 : Child Compilation failed - Module. createRequire 不是函数

php - Centos 7 Apache 如何允许自定义 php.ini 文件

php - 我需要在 arsort() 之后 reset() 吗?

php - 如何在 PHP 中将 utf-8 编码转换为 GSM 03.38 编码以用于 SMS?

linux - 使用 EC2 实例创建 AWS EC2 Own AMI 时出错