Archive for the ‘php’ Category

Finding php configuration string from php binary installed.

March 25, 2008

Enter the command:
strings `which php` | grep ./configure | sed s#”‘”#””#g

Horde error : Warning: send(Net/SMTP.php) [function.send]: failed to open stream: No such file or directory in /usr/local/lib/php/Mail/smtp.php

January 16, 2008

Horde was displaying the following error when trying to send emails.

===
Warning: send(Net/SMTP.php) [function.send]: failed to open stream: No such file or directory in /usr/local/lib/php/Mail/smtp.php on line 206

Warning: send() [function.include]: Failed opening ‘Net/SMTP.php’ for inclusion (include_path=’/usr/local/cpanel/base/horde/lib:.:/usr/lib/php:/usr/local/lib/php’) in /usr/local/lib/php/Mail/smtp.php on line 206

===

#pear install Net_SMTP

fixed the issue for me.

Fatal error: Unknown function: eaccelerator_get() in somefile

January 15, 2008

eAccelerator_get and eAccelerator_put functions are now disabled by default. These functions have been disabled because when leaving them on without any precautions these functions can be used for a local DoS attack by keep putting data in shared memory.

Please refer: http://eaccelerator.net/ticket/37

You can, if you iesh to, enable it is configure with the following attribute

--with-eaccelerator-shared-memory

Installation.
————


export PHP_PREFIX="/usr"

$PHP_PREFIX/bin/phpize

./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config --with-eaccelerator-shared-memory

make

make install