P
P
Pavel Belyaev2020-09-06 11:18:20
linux
Pavel Belyaev, 2020-09-06 11:18:20

How can PHP be compiled to be system independent?

Hello everyone, there was such a question, is it possible to compile PHP7 so that it searches for system libraries somewhere in /opt/php/syslibs ... So that when you transfer the compiled version from one server to another, it does not say that you have it here such and such is not installed or that you have a different version ...
In general, I want a completely portable package, of course you can use the same docker, but I have more sports interest ... Here, on the same Windows, I unpacked the ZIP archive and run it, and in linux, when moving from one computer to another, everything crashes ...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
SOTVM, 2020-09-06
@sotvm

it's called AppImage - FSE in one bottle)))

N
Nikita Rukavkov, 2020-09-06
@nicosha

docker to help you

A
Adamos, 2020-09-06
@Adamos

And in Linux, when you transfer from one computer to another, everything falls ...

Maybe because it never occurs to anyone to carry Puff on a flash drive?
It is natural for a server to be highly integrated with the environment in which it is installed. At least due to the fact that while you are doing weird things with the portable version, in the very libs that you zip into it, they find and close holes.

A
Alexey Dmitriev, 2020-09-07
@SignFinder

Static compilation will help you. Then there will be no dependence on system libraries at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question