How Can I Determine Which ./configure Options are Currently “Activated”?

I ran ./configure on a project a long time ago after tweaking multiple options, but now I want to add an option to the rather long list of current options. I do not remember what options I used, so I don’t know what options the new command should use. I still have the build directory, … Read more

build memcached source on centos6.4 64bit fails

I’d like to build memcached from source on centos 6.4 x86_64 but only get following error. checking build system type… x86_64-unknown-linux-gnu checking host system type… x86_64-unknown-linux-gnu checking target system type… x86_64-unknown-linux-gnu checking for a BSD-compatible install… /usr/bin/install -c checking whether build environment is sane… yes checking for a thread-safe mkdir -p… /bin/mkdir -p checking for … Read more

How to compile php and curl-extension with custom version libcurl?

I want compile php-5.6.15 with custom version of libcurl. Why? There was a bug with curl which makes some https requests failed. My distro’s repositories contains just version with bug. So I guess I need to make such steps as: compile curl dependencies(libssl) compile curl with those dependencies compile php with custom curl My main … Read more

Compile PHP with the setting and extensions of the system one

My client has a server on Ubuntu with PHP 5.4. Currenctly I want to add PHP 5.6 + PHP-FPM to give the possibility to use a newer version of PHP. The question is : Is there a simple / quick way to get the system’s PHP configuration to use as parameter for ./configure Answer AttributionSource … Read more

PHP compile issues – stuck at ‘Generating phar.phar’

I’ve encountered problems compiling PHP from source at one ‘a bit custom’ Centos 6/cPanel server.In general it worked in the past, right now it does not. There were many different PHPs compiled at this box and without greater problems. Right now, any version of PHP is stuck at: ‘Generating phar.phar’. Some output: Prerequisite `/root/php-7.0.13/ext/phar/phar/phar.inc’ is … Read more

Disribute PHP files after compiling from source

I have compiled and installed multiple version of PHP on my system. When I compile my PHP, there are a few files that are not copied to to their location. For example, when I compile my PHP v7.1(PHP-FPM), its service file (./sapi/fpm/init.d.php-fpm) is not copied to /etc/init.d. Is there any way to do this automatically? … Read more

Replace Existing XMLTooling Library w/ Compiled Version

To remediate an Shibboleth SSO vulnerability (https://shibboleth.net/community/advisories/secadv_20180227.txt) I’m attempting to replace the existing libxmltooling7 library with a newer version (from 1.6.0-4 to 1.6.3). I’ve successfully downloaded source, built dependencies, complied and verified the new library is installed in /usr/local…though dkpg -l is still showing the old version: # Output of dkpg -l | grep xmlt… … Read more

Different results for json_encode in WordPress with php compiled with same configuration and libmbfl version

I have an older Debian server and a local install of WordPress; I’m trying to track down why calling: echo json_encode(‘😀’); on the Debian server results in “\ud83dde00” but on my local install, calling the same json_encode line results in “\ud83d\ude00” (which is what I’d expect to see on the Debian server too)… Both versions … Read more

Compiling and running untrusted code on a server

In teaching CS, students submit their code to our server and we compile and run with unit tests. Similar to Codeforces, Codewars, and HackerRank. How should we be configuring servers for this? Launch a new minimal VM for each code submission? Is there a VM system and linux distribution ideal for this? Or is there … Read more