# build sapi's separately

- Thread: https://externals.io/message/49908
- Original archive: https://news-web.php.net/php.internals/49908
- Started by Enrico Weigelt on 2010-10-14T11:04:45+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #49908 — Enrico Weigelt — 2010-10-14T11:04:45+00:00

URL: https://externals.io/message/49908#49908

Hi folks,


is it already possible to build the sapi modules separately ?
I'd like to split them off into completely separate packages
for easier systems maintenance.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme

---

## #49910 — Dave Ingram — 2010-10-15T11:27:07+00:00

URL: https://externals.io/message/49908#49910 · In reply to: #49908

> is it already possible to build the sapi modules separately ?
> I'd like to split them off into completely separate packages
> for easier systems maintenance.

Various distros already do this. See for example the Red Hat PHP RPM. It
depends which packaging system you use, but if you're familiar with RPM
then this would perhaps be a good starting point.


Dave

---

## #49911 — johannes@schlueters.de — 2010-10-15T11:44:22+00:00

URL: https://externals.io/message/49908#49911 · In reply to: #49910

> 
> > […]
> 
> Various distros already do this. See for example the Red Hat PHP RPM. It
> depends which packaging system you use, but if you're familiar with RPM
> then this would perhaps be a good starting point.

They are still building SAPIs as part of the main PHP build.

Building "stand-alone" SAPIs is not really supported. The closest one
can do is build the embedded SAPI and then link against the created lib
(either .a or .so) I was successful in the past ignoring the "embedded"
stuff in the lib and register your own SAPI. But as said: That's not
really supported.

For this reason we're a bit less strict about adding SAPIs, like we did
with lightspeed and fpm.

johannes
