* "Mark A. Hershberger" mhershberger@wikimedia.org [Tue, 15 Nov 2011 11:21:34 -0500]:
Dmitriy Sintsov questpc@rambler.ru writes:
However, they (Ubuntu or Debian) built their own custom script which removes this ./configure line from phpinfo() output, so one have to find proper options manually. However it was easier than trying to build the package on my own, anyway. Dmitriy
The whole idea of using packages is to outsource the job of
maintenance
of those packages. Sometimes you need to wrest control, though, and take over the outsourced job.
When that time comes with Debian packages, its good to understand how the build process works. If you want to build your own package, getting the configure args is pretty straight-forward.
$ apt-get source php5 $ cd php5*/debian $ less rules # look for the configure options
You can even modify the rules file (just a glorified makefile) to
update
the build to your needs and then build it:
$ sudo apt-get install devscripts $ sudo apt-get build-dep php5 $ cd .. # make sure you're above the debian dir $ debuild -uc -us -b $ dpkg -i ../php5*deb
That's all,
Mark.
Thanks, but I didn't just want to build the same version of PHP from source. I've apt-get source php5 and replaced their PHP source code with the version from newer tarball from php.net. Their script probably has some patches which weren't applying to newer version, so I gave up and just compiled from php.net tarball, fiddling with configure options.
Also, they have very weird default setup for apache vhosts: instead of placing them into one includable httpd-vhosts.conf, they make lots of small separate files one for each vhost and include the whole dir with * wildcard. That might have unpredictable results, because in such way it's hard to control the sequence of vhosts inclusion, and the order of vhosts is important. Dmitriy