Error while installing PHP 5.3.2


Verified User
Oct 10, 2009
Hello ,

I have been trying to install PHP 5.3.2 but I have no clue what is wrong with it I have searched the forums before posting this here ..

I am getting the following error :

Apache is failing first if I change php from cli to cgi

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe

I followed the link but still no luck

If I am trying to install as cli then I am getting the following error

Generating phar.php
/bin/sh: line 1: 16607 Segmentation fault ` if test -x "/usr/local/directadmin/custombuild/php-5.3.2/sapi/cli/php"; then /usr/local/directadmin/custombuild/php-5.3.2/build/shtool echo -n -- "/usr/local/directadmin/custombuild/php-5.3.2/sapi/cli/php -n"; if test "x" != "x"; then /usr/local/directadmin/custombuild/php-5.3.2/build/shtool echo -n -- " -d extension_dir=/usr/local/directadmin/custombuild/php-5.3.2/modules"; for i in bz2 zlib phar; do if test -f "/usr/local/directadmin/custombuild/php-5.3.2/modules/$"; then . /usr/local/directadmin/custombuild/php-5.3.2/modules/$; /usr/local/directadmin/custombuild/php-5.3.2/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /usr/local/directadmin/custombuild/php-5.3.2/build/shtool echo -n -- "/usr/local/directadmin/custombuild/php-5.3.2/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /usr/local/directadmin/custombuild/php-5.3.2/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139

I want to have php running as CLI on my system.

I am not sure how to proceed now.