I need different PHP version on the same machine - php

I'm working on symfony2 project, the same time, I have many projects are working on the same server On PHP 5.2, however symfony2 works just with PHP version 5.3 or newer.
I'm asking about a way to work with 5.2 and 5.3 in the same time.
It is possible to setup two servers with different PHP version on the same machine?

Related

host a website built using Laravel Framework version 5.6

I want to host a website built using Laravel Framework version 5.6 that requires at least PHP version 7.1. Unfortunately, the only supported PHP versions that we've found in the CPanel are 7.0 downwards.
How do I add support for PHP v 7.1 onwards in cPanel? or this is povider-dependent, i.e. the hoster?
There's no actual question here, but CPanel supports higher versions of PHP. I am currently running several Laravel websites on version 7.1. I can't answer more in depth as to your situation without more information. Here is the link to the CPanel instructions on how to add new PHP versions to your account. CPanel Documentation

Is it possible to convert Laravel 5.5 project into laravel 5.4 without any harm to that project

I am facing a problem with my hosting server where php 5.6 has been installed which can't be upgrade to php 7. But my project has been completed in laravel 5.5 which need php 7 to run. Is there any solution to switch laravel 5.5 to laravel 5.4
In fact there is no easy way to do that. If application is using Laravel 5.5 features some parts of it won't work and you might waste a lot of time to finding and fixing those issues.
In my opinion much cheaper way would be changing hosting and in fact it would me more reasonable to use PHP 7.x than 5.6 in 2017/2018. If you look at PHP versions you will see, that for 5.6 only security fixes are applied at the moment

Will Laravel work on php 5.3.3 server

good day! Just a quick question about laravel since we are planning to use laravel on our new project, the problem is the client is using php 5.3.3 on their server. I know that laravel works on php 7 but the question is will it still work on php 5.3.3? Thank you in advance.
Looking at the oldest version available in the documentation located at https://laravel.com/docs/4.2/#server-requirements
It states
PHP >= 5.4
So I would say No.
This is due to found security risks in various versions of PHP so Laravel has a baseline for PHP.
If you can use Docker, you can use a PHP7 Docker container with the latest stable version of Laravel, and then you will not touch the PHP 5.3 version

How to setup PHP nginx development environment with multiple versions of PHP in the right way

I want to develop PHP applications with different PHP requirements especially with Laravel 5.1 (which requires php 5.5.9) and Laravel 4.2 (which requires php 5.4). I want to be able to specify which php version is running per application (I mean per virtual host). There are many articles on the web about that setup with nginx and fastcgi, but it seems to be outdated.
For me the setup from http://coderoncode.com/2014/04/18/flexible-php-development-phpfarm.html is the best and the easiest.

Downgrade Cakephp from latest version to 1.3.15

I am trying to downgrade a Cakephp project from latest version to 1.3.15 so it could work on my current server setup, I don't want to upgrade my PHP version because I don't want to screw with my server design, security and infrastructure besides I have a lot of projects on the same server which were designed to work with this exact PHP version, I am a total Cakephp noob but I am working with CodeIgniter, any ideas ?

Categories