简体   繁体   English

在CentO上安装squirrelmail

[英]Installing squirrelmail on CentOs

I am trying to install squirrelmail in CentOs 6.5 and I am getting the below error. 我试图在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 ~]#                                                              

I don't understand why the error is appearing. 我不明白为什么会出现错误。

I have tried both using --skip-broke and rpm -Va --nofiles --nodigest But it is not solving the problem. 我已经尝试过使用--skip-brokerpm -Va --nofiles --nodigest但这都不能解决问题。 I have PHP-FPM php-common and php-cli running anyone knows how to fix this problem? 我有运行PHP-FPM php-common和php-cli的人,知道如何解决此问题?

I Faced the same error as you and I manage to solve it by downloading & installing Squirrelmail on CentOS 6 following the next steps : 我遇到了与您相同的错误,并设法按照以下步骤在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';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM