0

Hello I made a small gear to Openshift with php 5.4 and Postgresql and I try to make my first Symfony app to work But somehow I get this weird logs:

PHP Fatal error:  require(): Failed opening required '/var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/app/../vendor/autoload.php' (include_path='.:/var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/lib:/var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/libs:/var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/libraries:/var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/src:/var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/vendor:/var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/vendors:/var/lib/openshift/56bf2dba0c1e663957000163/php/phplib/pear/pear/php:/usr/share/pear') in /var/lib/openshift/56bf2dba0c1e663957000163/app-root/runtime/repo/app/autoload.php on line 9

Also I noticed that the installed composer is quite an old one. So when I login via ssh to my gear and I execute:

cd app-root/repo/
composer install

I get the following Errors:

Problem 1
- This package requires php >=5.5.9 but your PHP version does not satisfy that requirement.
Problem 2
- Installation request for doctrine/cache v1.6.0 -> satisfiable by doctrine/cache[v1.6.0].
- doctrine/cache v1.6.0 requires php ~5.5|~7.0 -> your PHP version does not satisfy that requirement.
Problem 3
- Installation request for doctrine/common v2.6.1 -> satisfiable by doctrine/common[v2.6.1].
- doctrine/common v2.6.1 requires php ~5.5|~7.0 -> your PHP version does not satisfy that requirement.
Problem 4
- Installation request for symfony/symfony v3.0.2 -> satisfiable by symfony/symfony[v3.0.2].
- symfony/symfony v3.0.2 requires php >=5.5.9 -> your PHP version does not satisfy that requirement.
Problem 5
- doctrine/cache v1.6.0 requires php ~5.5|~7.0 -> your PHP version does not satisfy that requirement.
- doctrine/orm v2.5.4 requires doctrine/cache ~1.4 -> satisfiable by doctrine/cache[v1.6.0].
- Installation request for doctrine/orm v2.5.4 -> satisfiable by doctrine/orm[v2.5.4].

Even if I change the Settings on my composer.json file: http://pastebin.com/X5bYnPM4

Also from various tyutorials and lokking around I made these files:

.openshift/action_hooks/build:

# Symfony deploy
export COMPOSER_HOME="$OPENSHIFT_DATA_DIR/.composer"
if [ ! -f "$OPENSHIFT_DATA_DIR/composer.phar" ]; then
curl -s https://getcomposer.org/installer | php -- --install
dir=$OPENSHIFT_DATA_DIR
else
php $OPENSHIFT_DATA_DIR/composer.phar self-update
fi

cd $OPENSHIFT_REPO_DIR
php `find -name build_bootstrap.php`
.openshift/action-hooks: http://pastebin.com/iVBmvY4X

Both of them are executable.

3 Answers 3

0

you need to upgrade you PHP to 5.5.9

#composer.json
 "require": {
        "php": ">=5.5.9",

or install previous release of openshift

what is the full name of openshift package ?

1
  • I do not know I installed a free small Gear with php 5.4 and Postgresql. I think if by package tyou mean the plan is the free plan of the Openshift. I think maybe I should go to EC2 with a t2 micro instance where I can run easily an Ubuntu machine that has php 5.5. Feb 13, 2016 at 23:42
0

please check my starter project on github, it is a diy (do it yourself) app on openshift , with symfony3 and php5.6

2
  • You have Broken Link Feb 15, 2016 at 20:16
  • sorry @DimitriosDesyllas , i fixed it
    – user2601376
    Feb 16, 2016 at 1:09
0

I should make a custom catridge in order to run php 5.5 or later.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.