Open dvorka opened 8 years ago
The app should now be finished and compatible with PHP 5.4.* @dvorka
No action needed - I will investigate
I can see in the log the following error (I checked that vendor/autoload.php is not present, therefore I attempt to run composer:
[19/Apr/2016:01:25:12 -0400] "GET / HTTP/1.0" 500 - "-" "-"
[Tue Apr 19 01:25:14 2016] [error] [client 127.7.91.129] PHP Fatal error: require(): Failed opening required '/var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/app/../vendor/autoload.php' (include_path='.:/var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/lib:/var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/libs:/var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/libraries:/var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/src:/var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/vendor:/var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/vendors:/var/lib/openshift/570a0e5e0c1e66133900004c/php/phplib/pear/pear/php:/usr/share/pear') in /var/lib/openshift/570a0e5e0c1e66133900004c/app-root/runtime/repo/app/bootstrap.php on line 5
I attempt to re-deploy the application:
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/var/lib/openshift/570a0e5e0c1e66133900004c/php/usr/bin/composer self-update" to get the latest version.
... but got exception:
[Composer\Downloader\FilesystemException]
Filesystem exception:
Composer update failed: the "/var/lib/openshift/.cartridge_repository/redhatphp/0.0.28/usr/bin/composer.phar" file could not be written
The "This development build of composer is over 30 days old" warning shouldn't be an issue as composer supposedly installs any required packages nevertheless.
To run composer self-update, you need super-user permissions.
Problem: composer install
Problem: missing Mongo dependency
Installation request for mongodb/mongodb 1.0.2 -> satisfiable by mongodb/mongodb[1.0.2]
mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
cd php/configuration/etc
emacs php.init
... search for "extension" and read remarks, then add last line: extension=mongo.so
cd ...
composer.jsonRemarks:
composer show -p
finds ext-mongo 1.4.5 The mongo PHP extension
i.e. old driver composer require mongodb/mongodb
@dvorka Does last Thoronir patch solve this issue?
@Lweek there is still problem with the deployment - PHP admin application uses "new" Mongo driver, while OpenShift provides "old" driver pre-installed on gear. I need to find a way how to install other driver or migrate the application. It also seems that PHP compose
must be run locally prior uploading to cloud when experimenting w/ dependencies (i.e. I need to install PHP 5.4 locally, unfortunately it's no longer available for my Linux distro).
... busy days, but I hope to solve these problems soon :wink:
I finally got to reimplement the database interface to use legacy mongo driver.
Sorry for delays + all the mishmash I caused, at first I got really confused about all the mongo terminology and stuffs.
Check log below please: