How to change php source code and recompile it?

Hi for my research, I am modifying the c code that php does (and not the code written with php, but the one that php actually does). I want to somehow compile it and make it work with apache. How to do it?

0
source share
2 answers

The manual is your friend:

http://www.php.net/manual/en/install.unix.apache2.php

./configure --with-apxs2=/usr/local/apache2/bin/apxs --other-options
make
make install
+2
source

Take the archive from the PHP source and release it.

Make sure you can compile it. See the INSTALL file from tarball. The basic process is typical:

./configure --with-some-options...
make
make install

, , , - Linux.

, .

, .

+1

All Articles