how to install TYPO3 NEOS on openshift - composer-php

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.

Related

How do I run commands in the Vapor UI after deploying Laravel 8 App in Vapor using Docker runtime?

I have been using Laravel Vapor for several years now using native runtimes and have never had an issue until recently when needing to use the Imageick PHP extension. Native runtimes don't support PHP extensions so I decided to try using a docker runtime on a staging server and everything went smoothly until I tried to run the migrate command in the Vapor UI. Getting the following error in Vapor-UI:
sh: /opt/bin/php: not found
Have tried unsuccessfully searching for the location of php in the staging deployment as well as adding alias for php in my dockerfile. Here is my current staging.Dockerfile:
ARG VERSION=php81
FROM laravelphp/vapor:${VERSION}
RUN apk add imagemagick imagemagick-dev php81-pecl-imagick \
&& pecl install imagick \
&& docker-php-ext-enable imagick
COPY . /var/task
Has anyone run in to this issue before? Seems too simple but I have zero experience with Docker and after reading through some documentation I could understand why it wouldn't be available, but then during deployment on vapor I would have thought there would be issues... and if its not available is there any way to access php in the Vapor UI by adding something to the Dockerfile or elsewhere?

Should I use homestead for an exact Laravel replication?

My client is running Laravel 5.2 and PHP version 5.6 (all obviously several years old).
I tried to clone the git into Valet with relative success in that the application ran but a bunch of pages threw errors which I am certain is due to me running the latest version of PHP.
So, my question is it better to directly clone the project on Homestead?
Does Homestead offer a more "native environment" for a situation like I am in?
you should try to use an environment that is the closest possible to production.
If your customer uses apache, try xampp. Else adapt to his environment and PHP version, so you can concentrate on code production instead of keep the solution working on more than one environment.
One year later, I came across with the exact same problem; php 5.6.31 and Laravel 5.2.
I managed to simulate the environment with homestead 6, following these steps:
copy the project files to a new folder
Unzip php 5.6 to my local pc (remove php7)
run: composer update (must run with php 5.6 on local pc)
run: composer require laravel/homestead:~6.6.0
run: vendor\\bin\\homestead make
edit Homestead.yml as needed (.ssh path, add php: "5.6" one line below the site sync)
run: vagrant up
run: vagrant ssh
make appropriate changes (google them) according to problems faced on homestead.test (edit xdebug for 502 BAD GATEWAY, edit my.cnf for adding utf8, etc)

Laravel 5.2 openshift

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.

How do you specify PHP version for Composer so that it won't download the latest builds?

I have shared hosting with PHP 5.3.8 where I cannot run Composer.
Yesterday I have installed Composer to my own computer and then I have "build" Restler with it. It has downloaded Illuminate too. Then I've uploaded them to my shared hosting and it didn't work because apparently Illuminate requires minimum PHP 5.4.
So, is there any possibility to specify PHP version for Composer? Or I should have switched PHP 5.6 off, and then PHP 5.3.x on on my PC.
Looks like you are using Restler 3 RC5, RC6 already have those dependencies removed
Restler uses illuminate only when you use blade templates, so you can saf. You can run composer update with no dev option
composer update --no-dev
For more details see https://getcomposer.org/doc/03-cli.md#update
This will install only the packages needed for production environment. Then you can upload the files to server and all should be fine.

Laravel installed but confusion remains

I have ubuntu 14.04 and LAMPP is installed. I was learning Laravel 4, but get a lot of confusion on it's documentation, below I list few of issue.
How to install laravel?
what I did :
copy github repository into /opt/lampp/htdocs/larva and run composer install, Laravel is installed and I can access it with http://localhost/larva
What is homestead? is that another way to install laravel or this is additional thing?
What is artisan? if I use artisan then do we need to use homestead also?
what I did ( in terminal )
cd /opt/lampp/htdocs/larva
php artisan serve
it started the service and I can access laravel with htpp://localhost:8000 BUT if i close this terminal then URL is lost
and there is one other way is using vagrant? do we need to use vagrant if we installed it already?
one more thing is Nginx?
overall these vagrant, Nginx, Homestead, artisan,and composer methods create such a mess.
Please clear the clouds and please do not mention what is vagrant Nginx and all. I just want to know that do I need to do something with Homestead and vagrant if i have installed using git repository and composer way?
Thanks
Laravel Homestead is an official, pre-packaged Vagrant "box" that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine.
Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application. It is driven by the powerful Symfony Console component.
When you close the terminal, you are stopping the service on port 8000. You always can create a virtual host, and point its root to your larval installation /public directory
you dont have to use vagrant to run laravel. Vagrant is just your 'bridge' to Virtual Mashine.
If you installed LAravel via composer and you got it work on localhost:8000 then you dont need neither homestead or vagrant

Resources