Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal 8 need php 5.5.9+ - CentOS installed 5.4.6 #754

Closed
DigitLib opened this issue Nov 10, 2017 · 13 comments
Closed

Drupal 8 need php 5.5.9+ - CentOS installed 5.4.6 #754

DigitLib opened this issue Nov 10, 2017 · 13 comments

Comments

@DigitLib
Copy link

TASK [drupal : Generate Drupal project with composer package.] *****************
Friday 10 November 2017 19:53:27 +0100 (0:00:00.333) 0:03:56.784 *******
fatal: [default]: FAILED! => {"changed": true, "cmd": ["/usr/local/bin/composer", "create-project", "drupal-composer/drupal-project:8.x-dev", "/var/www/html/drupal", "--prefer-dist", "--stability", "dev", "--no-interaction"], "delta": "0:01:19.526405", "end": "2017-11-10 18:54:46.980154", "failed": true, "msg": "non-zero return code", "rc": 2, "start": "2017-11-10 18:53:27.453749", "stderr": "Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory\nInstalling drupal-composer/drupal-project (8.x-dev 89a6e99a1a536a9bbd5bb5af65b92f68855348ab)\n - Installing drupal-composer/drupal-project (8.x-dev 89a6e99): Downloading (connecting...)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (100%) \b\b\b\b\b\b\b\b\b\nCreated project in /var/www/html/drupal\n> DrupalProject\composer\ScriptHandler::checkComposerVersion\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\nYour requirements could not be resolved to an installable set of packages.\n\n Problem 1\n - drupal/console 1.1.0 requires php ^5.5.9 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.\n - drupal/console 1.0.2 requires php ^5.5.9 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.\n - Installation request for drupal/console ^1.0.2 -> satisfiable by drupal/console[1.0.2, 1.1.0].", "stderr_lines": ["Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory", "Installing drupal-composer/drupal-project (8.x-dev 89a6e99a1a536a9bbd5bb5af65b92f68855348ab)", " - Installing drupal-composer/drupal-project (8.x-dev 89a6e99): Downloading (connecting...)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (100%) \b\b\b\b\b\b\b\b\b", "Created project in /var/www/html/drupal", "> DrupalProject\composer\ScriptHandler::checkComposerVersion", "Loading composer repositories with package information", "Updating dependencies (including require-dev)", "Your requirements could not be resolved to an installable set of packages.", "", " Problem 1", " - drupal/console 1.1.0 requires php ^5.5.9 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.", " - drupal/console 1.0.2 requires php ^5.5.9 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.", " - Installation request for drupal/console ^1.0.2 -> satisfiable by drupal/console[1.0.2, 1.1.0]."], "stdout": "", "stdout_lines": []}

@DigitLib
Copy link
Author

DigitLib commented Nov 10, 2017

Do we need to import new repos for CentOS to solve this issue, if yes then maybe to add additional repo https://github.com/geerlingguy/ansible-role-repo-remi where is php7?

@dannylamb
Copy link
Contributor

@DigitLib++ I was pretty sure we'd run into this. Personally, I'd say PHP 7 since you're already having to reach out to non-standard repos. I'll let others speak up, though.

@ajs6f @whikloj?

@DigitLib
Copy link
Author

php 7 installed via https://github.com/geerlingguy/ansible-role-repo-remi
but need to be enabled in geerlingguy.php to use remo-php70

@whikloj
Copy link
Member

whikloj commented Nov 14, 2017

I'm 👍 for PHP 7.0 if we are going out anyways.

@ajs6f
Copy link

ajs6f commented Nov 15, 2017

Sorry for missing this-- this would be a problem for SI, but I don't know how big of one. We definitely cannot deploy PHP 7 now, and I'm not sure how long it will take. I will go do some research.

@seth-shaw-unlv
Copy link
Contributor

@DigitLib commented on the selinux thread regarding PHP, which is relevant here. The linked solution works for me with the exception of the line php_executable: "php56" in webserver.yml which causes geerlingguy.composer to fail.

@DigitLib
Copy link
Author

@seth-shaw-unlv Yes geerlingguy.composer failed, but with regular php drupal fail. We must find some solution....

@seth-shaw-unlv
Copy link
Contributor

Huh, it passed for me (well, it got all the way to openseadragon, another issue). Let me destroy and do a fresh provision to see if it fails this time.

@DigitLib
Copy link
Author

Huh! Is it pass fresh provision?

@seth-shaw-unlv
Copy link
Contributor

vagrant destroy, vagrant up based on this commit got me all the way to openseadragon. I already have a fix for that based on the old unified playbook that I'm working on getting a patch ready for.

@DigitLib
Copy link
Author

Great!

@DigitLib
Copy link
Author

@seth-shaw-unlv composer failed again and again, just removed a line php_exexutable: "php56".
It works!
Fix it in pull.

@whikloj
Copy link
Member

whikloj commented Feb 5, 2018

Resolved with Islandora-Devops/islandora-playbook@d4990d3

@whikloj whikloj closed this as completed Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants