Skip to main content
Welcome guest. | Register | Login | Post

Need Help Compiling PHP

5 replies [Last post]
supermike's picture
Offline
Joined: 2006-02-17

Guys, I need help compiling a custom PHP4 so that it is self-contained in its own directory and includes another project, Lighthttpd. It needs to not interfere with my existing Ubuntu PHP4/Apache installation. To fire up the service, one will need to switch to that directory and run a command -- it's not going to be installed in /etc/init.d, nor use any files from there, nor interfere with the /var share. It needs to live on its own in standalone mode.

If you have experience doing this, let me know. I'd like to attempt it with your help.

This is for the XPSL project I'm going to write a doc on.

dylunio's picture
Offline
Joined: 2005-12-20

Hmm, I'm not sure, but you may want to look into chroot for this - this changes the directory you give to root, it can be useful for such things as working on distros other than the one you've booted, create jails, and maybe even help you with this problem - but I'm not sure.

dylunio

free-zombie's picture
Offline
Joined: 2006-03-08

I would hazard a guess at configuring lighttpd accordingly and making the user start the configured lighttpd.

supermike's picture
Offline
Joined: 2006-02-17

I guess nobody here has compiled PHP and lighthttpd then into a separate, isolated directory. I'm in the same boat.

a thing's picture
Offline
Joined: 2005-12-20

chroot looks like what you want. You could grab a Gentoo stage 2 to get the base system and compiler, then remove those and just leave PHP & lighthttpd when it's finished.

free-zombie's picture
Offline
Joined: 2006-03-08

or... link them statically - that should make them relaticely location-independant...