I am having trouble deploying an example laravel 5.2 application to openshift.
I've found this quickstart on github and tried the manual installation that is listed below.
rhc app create laravelapp php-5.4 mysql-5.5 --from-code=https://github.com/lucho2d7/openshift-quickstart-laravel5.2
But I get an error claiming that this quickstart needs a php 5.6 version. Then I found this php 5.6 cartridge, but I don't know how to install this cartridge before creating the app.
Installing php 5.6 in the openshift gears could be really easy.
Follow the steps in this repo :
https://github.com/boekkooi/openshift-cartridge-php/
or this one :
https://djordjekovacevic.com/articles/run-laravel-5.1-on-openshift
Hope this could be helpful.
Related
After I installed Laravel 9 in Ubuntu 20.04 (php 7.4 and composer 2.3.10) I run
laravel new proyect1
but it does not work. I got this error: In RequestException.php line 113: Server error: GET http://cabinet.laravel.com/latest.zip resulted in a 522 response
When I searched for the error message, I found this question in StackOverflow:
Why do I get a laravel error while creating a new project?
But the solutions suggested on it did not work for me. Basically, it recommends removing the laravel installer and requiring it again, Basically, it recommends removing the laravel installer and requiring it again, but even when I followed the solution that was suggested, laravel/installer version 1.5.0 appears when I ask for the laravel installer version instead of laravel/installer 4.2.13 version
[InvalidArgumentException]
Could not find package /laravel/laravel/var/www/html/my_laravel with stabil
ity stable.
No idea how you're getting that directory in your server, Apache2 defaults to /var/www/html, but either way just follow the Laravel Installation guide using Composer. You shouldn't need many commands to install it after setting up a LAMP stack on your server
LAMP Install: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
Laravel Install: https://laravel.com/docs/5.6
I'm testing an OpenShift cartridge with laravel 4.2.
When I try to execute the command
composer selfupdate
I get this error:
[Composer\Downloader\FilesystemException]
Filesystem exception:
Composer update failed: the "/var/lib/openshift/.cartridge_repository/redhat-php/0.0.24/usr/bin/composer.phar" file could not be written
When you run composer self-update this updates composer itself. If you have globally installed composer then you likely need to use sudo to have permission to overwrite that file.
If you're just wanting to update/install laravel then you can run composer update and composer install as appropriate.
First off - no the OpenShift PHP cartridge cannot be updated using composer self-update. Updating Composer requires root privileges.
The Laravel 5 QuickStart uses a custom version of OpenShift's PHP 5.4 cartridge. The only change with the custom PHP 5.4 cartridge is Composer has been updated. You can either switch over to Laravel 5, or simply run Laravel 4.2 using the custom PHP 5.4 cartridge.
To run Laravel 5.0 with the custom cartridge using the QuickStart:
rhc app create laravelapp https://raw.githubusercontent.com/luciddreamz/openshift-php/master/metadata/manifest.yml mysql-5.5 --from-code=https://github.com/luciddreamz/laravel
If you want to Run Laravel 4.2, you can create an empty PHP 5.4 app with MySQL using the custom cartridge:
rhc app create laravelapp https://raw.githubusercontent.com/luciddreamz/openshift-php/master/metadata/manifest.yml mysql-5.5
Unable to install typo3 neos on openshift.
my git repository https://github.com/ynagarjuna1995/neos
but when I execute rhc create app appname php-5.3 mysql-5.1 --from-code=https://github.com/ynagarjuna1995/neos
it has initialized the gear .but no result .
Please make repository of Typo3 Neos to install on Openshift
I'm going to try TYPO3 Neos on OpenShift too (and then share my expirience of course), but haven't done it yet.
Any particular reason you try this with (almost deprecated) PHP 5.3? Have you tried PHP 5.4/5.5? Neos works perfectly on PHP 5.5.
I have downloaded laravel from github. I also have composer installed. My problem is when i type in
composer install
I got the following error. I can't fix it.
Have a look at the free laracasts series, this will guide you through the install - without any hiccups!
www.laracasts.com