Websoft9Archive / ansible-phpapps

Automatic installation for phpApps on Linux(PHP应用自动安装程序)
Other
1 stars 3 forks source link

Update suitecrm.yml #33

Closed laozhou0731 closed 3 years ago

qiaofeng1227 commented 3 years ago

The var suitecrm_download_url is: "https://suitecrm.com/files/162/SuiteCRM-7.11/525/SuiteCRM-7.11.18.zip" I found an another URL: https://github.com/salesagility/SuiteCRM/archive/v7.11.19.zip from SuiteCRM release

qiaofeng1227 commented 3 years ago

If we use https://github.com/salesagility/SuiteCRM/archive/v7.11.19.zip to replace the var suitecrm_download_url, SuiteCRM install failed.

The reason is that when download file from https://github.com/salesagility/SuiteCRM/archive/v7.11.19.zip is not SuiteCRM***.zip, which will cause ansible task not unzip it.

[root@VM-81-187-centos test]# wget https://github.com/salesagility/SuiteCRM/archive/v7.11.19.zip
--2021-05-19 09:29:07--  https://github.com/salesagility/SuiteCRM/archive/v7.11.19.zip
Resolving github.com (github.com)... 52.74.223.119
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/salesagility/SuiteCRM/zip/v7.11.19 [following]
--2021-05-19 09:29:07--  https://codeload.github.com/salesagility/SuiteCRM/zip/v7.11.19
Resolving codeload.github.com (codeload.github.com)... 54.251.140.56
Connecting to codeload.github.com (codeload.github.com)|54.251.140.56|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘v7.11.19.zip’

    [                   <=>                                                                                                                                                                     ] 35,058,353  8.78MB/s   in 3.9s   

2021-05-19 09:29:12 (8.67 MB/s) - ‘v7.11.19.zip’ saved [35058353]

[root@VM-81-187-centos test]# ls
v7.11.19.zip
[root@VM-81-187-centos test]# 
qiaofeng1227 commented 3 years ago

Use the URL: https://udomain.dl.sourceforge.net/project/suitecrm/SuiteCRM-7.11.19.zip

qiaofeng1227 commented 3 years ago

Done

qiaofeng1227 commented 3 years ago
TASK [phpapps : Download suitecrm from https://github.com/salesagility/SuiteCRM/archive/v7.11.19.zip] ******************************************************************************************************************************
changed: [47.242.194.125]

TASK [phpapps : Rename dir name] ***************************************************************************************************************************************************************************************************
changed: [47.242.194.125]

TASK [phpapps : create crontab task] ***********************************************************************************************************************************************************************************************
changed: [47.242.194.125]
qiaofeng1227 commented 3 years ago

image

qiaofeng1227 commented 3 years ago
[root@iZj6cavtctajcry7veuiahZ wwwroot]# cd suitecrm/
[root@iZj6cavtctajcry7veuiahZ suitecrm]# ls
Api                   cron.php         deprecated.php        export.php          include      json_server.php  log_file_restricted.html  modules          README.md     service            sugar_version.json    TreeData.php     XTemplate
campaign_tracker.php  crossdomain.xml  dictionary.php        files.md5           index.php    jssource         maintenance.php           pdf.php          RoboFile.php  soap               sugar_version.php     upload           Zend
composer.json         custom           download.php          HandleAjaxCall.php  install      lib              metadata                  phpcs.xml        robots.txt    soap.php           suitecrm_version.php  vcal_server.php
composer.lock         data             emailmandelivery.php  ical_server.php     install.php  LICENSE.txt      ModuleInstall             php_version.php  run_job.php   SugarSecurity.php  themes                vCard.php
[root@iZj6cavtctajcry7veuiahZ suitecrm]# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? ^C^H^C
[root@iZj6cavtctajcry7veuiahZ suitecrm]# 
[root@iZj6cavtctajcry7veuiahZ suitecrm]# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - wikimedia/composer-merge-plugin is locked to version v1.4.1 and an update of this package was not requested.
    - wikimedia/composer-merge-plugin v1.4.1 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
qiaofeng1227 commented 3 years ago

image

qiaofeng1227 commented 3 years ago

结论:Github上的源码还需要通过composer下拉外部依赖包,如果PHP环境没有安装 composer 或 composer 版本不符合要求,就会导致 SuiteCRM 无法安装。官方安装文档上建议的是:http://suitecrm.com/download