F
F
Fyodor Dostoyevsky2015-03-10 11:04:59
linux
Fyodor Dostoyevsky, 2015-03-10 11:04:59

How to install Yii2 with PHP 5.5 installed as an Apache module?

Good morning, colleagues.

I want to install yii2 on a server (linux) with PHP 5.5 installed as an apache module .

The server itself is running PHP 5.3. I want to fully use composer and php init .

It is not possible to deploy the project on the server exactly, since the actual version is PHP 5.3.

UPD : This is hosting, I forgot to mention. PHP 5.5 is installed as an apache module and when using the conmposer install command , yii complains that the version is less than 5.4.

PS I know about the way to copy the project to the server. It doesn't suit me :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
He11ion, 2015-03-12
@frops

composer - a regular phar executable by a php binary, you need to find where the binary of the desired php version is located on the server (5.5 in your case) and run a command like

/путь/к/бинарнику/php /путь/к/композеру/composer.phar аргументы_композера

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question