the title says a lot I guess, I want to install my lamp serve with:
apt-get install lamp-server^And after that I want to recompile the php to add the pthreads,
it is possible install the lamp server without install all server from the source?
1 Answer
Install the various utilities needed
sudo apt-get install apache2-dev apache2 build-essentialThen compile PHP as-per instructions at with any modifications you desire.
I'd recommend keeping the source in /usr/src so that you can recompile and relink apache anytime you apt-get update apache, (as you may have to recompile your version of PHP to ensure the versions match up). Also make a little "install.sh" script or README there with your configure parameters for future use.
Bonus points if you want both the distro version and source version of PHP available and installed, use the --prefix=/usr/local/php5x flag on configure to install to a different directory than the system default.