N
N
nixischev2014-02-24 20:13:39
linux
nixischev, 2014-02-24 20:13:39

How to properly build PHP5 from sources under nginx (php-fpm), without using absolute paths?

Good day!
The next question is how to correctly build PHP5 from sources under nginx (php-fpm), without using absolute paths (I'm making a portable version of the server)?
Required (from repositories):
php5-cli php5-common php5-mysql php5-suhosin php5-gd php5-fpm php5-cgi php5-fpm php-pear php5-mcrypt php5-json
The most important condition is to build from sources without using absolute paths and dependencies from repositories, i.e. so that you can run it from a USB flash drive and from a PC, etc.
I really hope for your help!
PS: If anyone is interested, here's what has already happened: https://github.com/agmanix/lempo

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentine, 2014-02-24
@nixischev

For each tarball, you look in ./configure --help, pay attention to the location, prefix, path options and specify them. This is if long.
If it's fast: you make a separate directory, chroot there, create a basic set of folders in it (var, usr, etc...), and build without options.

@
@mgyk, 2014-02-26
_

Can you put everything in the docker? Will be fully portable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question