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

php72 on centos8 problems #2854

Closed
ghost opened this issue Mar 14, 2020 · 1 comment
Closed

php72 on centos8 problems #2854

ghost opened this issue Mar 14, 2020 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Mar 14, 2020

i am trying to install gravecms 1.6.22 on a centos 8.1.1911 (Core) with the default php (version 7.2) in his repository.
unfortunatly the installation crashed every time.
if i install all requirements of php and navigate to the site in a browser, its occured the notification:

"Please run: bin/grav install"

when i start bin/grav install, then i receive this notification:

Preparing to install vendor dependencies...

Fatal error: Uncaught Error: Call to undefined function Composer\Json\json_decode() in phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Json/JsonFile.php:153
Stack trace:
#0 phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Factory.php(290): Composer\Json\JsonFile->validateSchema(1)
#1 phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Factory.php(576): Composer\Factory->createComposer(Object(Composer\IO\ConsoleIO), './composer.json', false)
#2 phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Console/Application.php(345): Composer\Factory::create(Object(Composer\IO\ConsoleIO), NULL, false)
#3 phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Console/Application.php(458): Composer\Console\Application->getComposer(false, false)
#4 phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Console/Application.php(156): Composer\Console\Application->getPluginCommands()
#5 phar:///var/www/gravecmstest.net/bin/composer.phar/vendor/symfony/console/Application.php(117): Composer\Console\Ap in phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Json/JsonFile.php on line 153
#5 phar:///var/www/gravecmstest.net/bin/composer.phar/vendor/symfony/console/Application.php(117): Composer\Console\Ap in phar:///var/www/gravecmstest.net/bin/composer.phar/src/Composer/Json/JsonFile.php on line 153

my installed php modules:

[PHP Modules]
apcu
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
openssl
pcntl
pcre
Phar
readline
Reflection
session
SimpleXML
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

my php version:

PHP 7.2.11 (cli) (built: Oct 9 2018 15:09:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

what is the solution?

@rhukster
Copy link
Member

First, I suggest trying the pre-packaged version of Grav which includes all the vendor libraries already: https://getgrav.org/downloads

If that works, then the problem is not with Grav, but more likely your installation of composer or PHP itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants