gahelm

Active Member
Jun 21, 2003
37
0
156
Florida
I have deployed a very complex CRM web based application for one of my clients. It works well although somewhat slow, in reading it's manual it discusses the need to implement PHP-JSON in order to significantly speed up the application. I tried to install that via PEAR and then was re-directed to PECL, however PECL fails when it attempts to run the size command. Here is it's output;

# pecl install json
downloading json-1.2.1.tgz ...
Starting to download json-1.2.1.tgz (17,780 bytes)
......done: 17,780 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20050606
/usr/local/bin/phpize: /tmp/tmpSgFQPK/json-1.2.1/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

ERROR: `phpize' failed


Any help here would be appreciated!

Forgot to mention that I am running PHP 4.4.4
 
Last edited:

rhenderson

Well-Known Member
Apr 21, 2005
785
2
168
Oklahoma
cPanel Access Level
Root Administrator
gahelm said:
I have deployed a very complex CRM web based application for one of my clients. It works well although somewhat slow, in reading it's manual it discusses the need to implement PHP-JSON in order to significantly speed up the application. I tried to install that via PEAR and then was re-directed to PECL, however PECL fails when it attempts to run the size command. Here is it's output;

# pecl install json
downloading json-1.2.1.tgz ...
Starting to download json-1.2.1.tgz (17,780 bytes)
......done: 17,780 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20050606
/usr/local/bin/phpize: /tmp/tmpSgFQPK/json-1.2.1/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

ERROR: `phpize' failed


Any help here would be appreciated!

Forgot to mention that I am running PHP 4.4.4
My guess would be /tmp being mounted as nonexec.
 

nettigritty

Well-Known Member
PartnerNOC
Jan 21, 2004
192
0
166
Bangalore, India
1. Login to SSH
2. Make tmp and var/tmp exec

mount -v -o remount,exec /tmp
mount -v -o remount,exec /var/tmp

3. No go ahead and install JSON

pecl install json

4 . And finally, make tmp and var/tmp noexec again

mount -v -o remount,noexec /tmp
mount -v -o remount,noexec /var/tmp